@rely-ai/caliber 1.20.0 → 1.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,26 +32,25 @@ No API key required — works with your existing **Claude Code** or **Cursor** s
|
|
|
32
32
|
| New team members start with no AI context | `caliber init` gives any contributor a complete setup in seconds |
|
|
33
33
|
| Configs diverge across AI tools | Cross-platform parity — Claude, Cursor, and Codex stay consistent |
|
|
34
34
|
| No idea if your config is actually helping | Score your setup (A–F grade) and see exactly what to improve |
|
|
35
|
+
| AI keeps making the same mistakes | Session learning captures patterns and corrections automatically |
|
|
35
36
|
|
|
36
37
|
## ⚙️ How It Works
|
|
37
38
|
|
|
38
39
|
```
|
|
39
40
|
caliber init
|
|
40
41
|
│
|
|
41
|
-
├─ 1. 🔌
|
|
42
|
+
├─ 1. 🔌 Setup Choose your LLM provider — Claude Code seat, Cursor seat,
|
|
42
43
|
│ or an API key (Anthropic, OpenAI, Vertex AI)
|
|
43
44
|
│
|
|
44
|
-
├─ 2.
|
|
45
|
-
│
|
|
45
|
+
├─ 2. 🛠️ Engine Fingerprint your project, generate configs in parallel,
|
|
46
|
+
│ search community skills, and auto-refine against
|
|
47
|
+
│ deterministic scoring checks (up to 2 iterations)
|
|
46
48
|
│
|
|
47
|
-
├─ 3.
|
|
48
|
-
│ (heavy model for docs, fast model for skills)
|
|
49
|
-
│
|
|
50
|
-
├─ 4. 👀 Review See a diff of every proposed change — accept, refine
|
|
49
|
+
├─ 3. 👀 Review See a diff of every proposed change — accept, refine
|
|
51
50
|
│ via chat, or decline. All originals are backed up
|
|
52
51
|
│
|
|
53
|
-
└─
|
|
54
|
-
|
|
52
|
+
└─ 4. ✅ Finalize Write files, install auto-refresh hooks, and set up
|
|
53
|
+
session learning for continuous improvement
|
|
55
54
|
```
|
|
56
55
|
|
|
57
56
|
Already have a setup? If your existing config scores **95+**, Caliber skips full regeneration and applies targeted fixes to the specific checks that are failing.
|
|
@@ -60,6 +59,7 @@ Already have a setup? If your existing config scores **95+**, Caliber skips full
|
|
|
60
59
|
|
|
61
60
|
**Claude Code**
|
|
62
61
|
- `CLAUDE.md` — Project context, build/test commands, architecture, conventions
|
|
62
|
+
- `CALIBER_LEARNINGS.md` — Patterns learned from your AI coding sessions
|
|
63
63
|
- `.claude/skills/*/SKILL.md` — Reusable skills ([OpenSkills](https://agentskills.io) format)
|
|
64
64
|
- `.mcp.json` — Auto-discovered MCP server configurations
|
|
65
65
|
- `.claude/settings.json` — Permissions and hooks
|
|
@@ -126,17 +126,31 @@ Every failing check includes structured fix data — when `caliber init` runs, t
|
|
|
126
126
|
|
|
127
127
|
</details>
|
|
128
128
|
|
|
129
|
+
### 🧠 Session Learning
|
|
130
|
+
Caliber watches your AI coding sessions and learns from them. Hooks capture tool usage, failures, and your corrections — then an LLM distills operational patterns into `CALIBER_LEARNINGS.md`.
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
caliber learn install # Install hooks for Claude Code and Cursor
|
|
134
|
+
caliber learn status # View hook status, event count, and ROI summary
|
|
135
|
+
caliber learn finalize # Manually trigger analysis (auto-runs on session end)
|
|
136
|
+
caliber learn remove # Remove hooks
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Learned items are categorized by type — **[correction]**, **[gotcha]**, **[fix]**, **[pattern]**, **[env]**, **[convention]** — and automatically deduplicated. ROI tracking shows how much time and tokens the learnings save across sessions.
|
|
140
|
+
|
|
129
141
|
### 🔄 Auto-Refresh
|
|
130
142
|
Keep configs in sync with your codebase automatically:
|
|
131
143
|
|
|
132
144
|
| Hook | Trigger | What it does |
|
|
133
145
|
|---|---|---|
|
|
134
|
-
| **Claude Code** | End of each session | Runs `caliber refresh` and updates docs |
|
|
135
146
|
| **Git pre-commit** | Before each commit | Refreshes docs and stages updated files |
|
|
147
|
+
| **Claude Code session end** | End of each session | Runs `caliber refresh` and updates docs |
|
|
148
|
+
| **Learning hooks** | During each session | Captures events for session learning |
|
|
136
149
|
|
|
137
150
|
```bash
|
|
138
|
-
caliber hooks --install # Enable
|
|
139
|
-
caliber hooks --remove # Disable
|
|
151
|
+
caliber hooks --install # Enable refresh hooks
|
|
152
|
+
caliber hooks --remove # Disable refresh hooks
|
|
153
|
+
caliber learn install # Enable learning hooks
|
|
140
154
|
```
|
|
141
155
|
|
|
142
156
|
The `refresh` command analyzes your git diff (committed, staged, and unstaged changes) and updates config files to reflect what changed. Works across multiple repos when run from a parent directory.
|
|
@@ -152,11 +166,12 @@ Every change Caliber makes can be undone:
|
|
|
152
166
|
|
|
153
167
|
| Command | Description |
|
|
154
168
|
|---|---|
|
|
155
|
-
| `caliber init` | Full setup wizard — analyze, generate, review, install
|
|
169
|
+
| `caliber init` | Full setup wizard — analyze, generate, review, install hooks |
|
|
156
170
|
| `caliber score` | Score config quality (deterministic, no LLM) |
|
|
157
171
|
| `caliber regenerate` | Re-analyze and regenerate configs (aliases: `regen`, `re`) |
|
|
158
172
|
| `caliber refresh` | Update docs based on recent code changes |
|
|
159
173
|
| `caliber skills` | Discover and install community skills |
|
|
174
|
+
| `caliber learn` | Session learning — install hooks, view status, finalize analysis |
|
|
160
175
|
| `caliber hooks` | Manage auto-refresh hooks |
|
|
161
176
|
| `caliber config` | Configure LLM provider, API key, and model |
|
|
162
177
|
| `caliber status` | Show current setup status |
|
package/package.json
CHANGED