@cachly-dev/mcp-server 0.10.61 β 0.10.64
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/CHANGELOG.md.tmp +0 -0
- package/PROGRESS.md +137 -0
- package/README.md +210 -180
- package/VISION_10X.md +133 -0
- package/dist/src/__tests__/brain-flow.test.js +102 -1
- package/dist/src/__tests__/brain-flow.test.js.map +1 -1
- package/dist/src/__tests__/utils.test.d.ts +1 -0
- package/dist/src/__tests__/utils.test.js +83 -0
- package/dist/src/__tests__/utils.test.js.map +1 -0
- package/dist/src/handlers/brain.js +118 -64
- package/dist/src/handlers/brain.js.map +1 -1
- package/dist/src/handlers/fedbrain.js +4 -2
- package/dist/src/handlers/fedbrain.js.map +1 -1
- package/dist/src/index.js +3 -3
- package/dist/src/tools.d.ts +17 -0
- package/dist/src/tools.js +16 -0
- package/dist/src/tools.js.map +1 -1
- package/dist/src/utils.d.ts +33 -0
- package/dist/src/utils.js +76 -0
- package/dist/src/utils.js.map +1 -1
- package/package.json +2 -2
- package/server.json +3 -3
- package/src/__tests__/brain-flow.test.ts +119 -1
- package/src/__tests__/utils.test.ts +81 -0
- package/src/handlers/brain.ts +130 -60
- package/src/handlers/fedbrain.ts +3 -2
- package/src/index.ts +3 -3
- package/src/tools.ts +17 -0
- package/src/utils.ts +80 -0
package/README.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
# π§ cachly AI Brain β MCP Server
|
|
2
2
|
|
|
3
|
-
>
|
|
4
|
-
>
|
|
3
|
+
> ### Your AI is brilliant for one session. Then it forgets you.
|
|
4
|
+
> Every morning you re-explain your architecture, your deploy process, the bug you
|
|
5
|
+
> already fixed last week. **cachly gives your AI β and your whole team β a permanent,
|
|
6
|
+
> shared brain that gets smarter with every commit.**
|
|
5
7
|
|
|
6
8
|
<p align="center">
|
|
7
9
|
<a href="https://www.npmjs.com/package/@cachly-dev/mcp-server">
|
|
@@ -20,24 +22,60 @@
|
|
|
20
22
|
<img src="https://img.shields.io/badge/GDPR-EU%20servers-green" alt="GDPR: EU servers" />
|
|
21
23
|
</a>
|
|
22
24
|
|
|
23
|
-
<img src="https://img.shields.io/badge/
|
|
25
|
+
<img src="https://img.shields.io/badge/101%20MCP%20tools-violet" alt="101 MCP tools" />
|
|
24
26
|
|
|
25
27
|
<img src="https://img.shields.io/badge/License-Apache--2.0-yellow" alt="License: Apache-2.0" />
|
|
26
|
-
|
|
27
|
-
<a href="https://cachly.dev">
|
|
28
|
-
<img src="https://img.shields.io/badge/Brain%20badge-embed%20in%20README-7c3aed" alt="Brain badge" />
|
|
29
|
-
</a>
|
|
30
28
|
</p>
|
|
31
29
|
|
|
32
30
|
---
|
|
33
31
|
|
|
34
|
-
##
|
|
32
|
+
## The story you already live every day
|
|
33
|
+
|
|
34
|
+
You are a good engineer. You want to **ship**, not babysit a forgetful assistant.
|
|
35
|
+
|
|
36
|
+
But every session starts at zero. Your AI doesn't remember the race condition you
|
|
37
|
+
chased for three hours on Tuesday. It doesn't know your deploy gotchas. It can't tell
|
|
38
|
+
you that **Carol already solved this exact bug in March** β because Carol's knowledge
|
|
39
|
+
lives in Carol's head, and yours in yours.
|
|
40
|
+
|
|
41
|
+
So you re-explain. You re-research. Your team makes the same mistake in five different
|
|
42
|
+
branches. And when someone leaves, their hard-won knowledge walks out the door with them.
|
|
43
|
+
|
|
44
|
+
> **The villain isn't your AI. It's amnesia.** Context death between sessions, and
|
|
45
|
+
> knowledge silos between people. The average developer loses **~45 minutes a day**
|
|
46
|
+
> re-establishing context that should already exist.
|
|
47
|
+
|
|
48
|
+
You don't need a smarter model. **You need a memory that doesn't reset β and one that
|
|
49
|
+
your whole team shares.**
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Meet your guide
|
|
54
|
+
|
|
55
|
+
cachly is the brain layer that sits under whatever AI you already use. We've watched
|
|
56
|
+
hundreds of teams lose the same knowledge the same way, and we built the fix:
|
|
57
|
+
|
|
58
|
+
- **It learns automatically** β from every commit, every fix, every session. No extra calls.
|
|
59
|
+
- **It arrives pre-briefed** β your AI opens each session already knowing your stack.
|
|
60
|
+
- **It's shared** β one engineer's solved bug becomes the whole team's reflex.
|
|
61
|
+
- **It's provable** β quality-aware recall beats raw text search by **+22.2 % Precision@1**
|
|
62
|
+
([see the benchmark](./BENCH.md)). A claim without a number is marketing; this is the number.
|
|
63
|
+
- **It's neutral** β speaks [MCP](https://modelcontextprotocol.io), so it works with
|
|
64
|
+
Claude, Cursor, Copilot, Windsurf, Cline, Zed. Switch models anytime β **your brain stays.**
|
|
65
|
+
|
|
66
|
+
We're not the hero of this story. **You are.** cachly is the thing that makes you the
|
|
67
|
+
engineer whose AI never forgets and whose team compounds knowledge instead of losing it.
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Taste it first β no account, no risk
|
|
35
72
|
|
|
36
73
|
```bash
|
|
37
74
|
npx @cachly-dev/mcp-server@latest demo
|
|
38
75
|
```
|
|
39
76
|
|
|
40
|
-
Run it in any project folder. It
|
|
77
|
+
Run it in any project folder. It reads YOUR git history and shows what your AI *would*
|
|
78
|
+
know β your bugs fixed, your patterns, your past decisions. Nothing leaves your machine.
|
|
41
79
|
|
|
42
80
|
```
|
|
43
81
|
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
@@ -46,12 +84,6 @@ Run it in any project folder. It scans your git history and shows a preview of w
|
|
|
46
84
|
β Commits: 847 Lessons: 634 Contributors: 7 β
|
|
47
85
|
β Date range: 2024-01-12 β 2026-05-14 β
|
|
48
86
|
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
|
|
49
|
-
β Category breakdown: β
|
|
50
|
-
β fix ββββββββββββββββββββ 312 β
|
|
51
|
-
β feat βββββββββββββββ 189 β
|
|
52
|
-
β security ββ 18 β
|
|
53
|
-
β deploy ββ 15 β
|
|
54
|
-
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
|
|
55
87
|
β Security fixes your AI would know: β
|
|
56
88
|
β β’ fix(auth): JWT expiry check before signature validation β
|
|
57
89
|
β β’ security: sanitize webhook payload before JSON.parse β
|
|
@@ -60,143 +92,118 @@ Run it in any project folder. It scans your git history and shows a preview of w
|
|
|
60
92
|
β β’ fix: Redis pub/sub race condition under high concurrency β
|
|
61
93
|
β β’ fix: k8s readinessProbe threshold too low for cold start β
|
|
62
94
|
β β’ fix: Stripe idempotency_key missing on retry path β
|
|
63
|
-
β β’ fix: tRPC context not forwarded to background jobs β
|
|
64
95
|
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
|
|
65
96
|
β With cachly, your AI arrives pre-briefed every session. β
|
|
66
|
-
β No more re-explaining. No more repeated mistakes. β
|
|
67
97
|
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
68
|
-
|
|
69
|
-
Make this permanent (free, 1β5 minutes):
|
|
70
|
-
$ npx @cachly-dev/mcp-server@latest setup
|
|
71
|
-
|
|
72
|
-
Works with: Claude Code Β· Cursor Β· Windsurf Β· Copilot Β· Cline Β· Zed
|
|
73
|
-
Free forever Β· GDPR Β· German servers Β· No credit card
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
---
|
|
77
|
-
|
|
78
|
-
## Already in Claude / Cursor / Copilot? Just paste this
|
|
79
|
-
|
|
80
|
-
Skip the setup guide β copy the prompt below and paste it directly into your AI. It will run the command and configure everything automatically:
|
|
81
|
-
|
|
82
|
-
```
|
|
83
|
-
Set up cachly for this project. Run this in the terminal:
|
|
84
|
-
npx @cachly-dev/mcp-server@latest setup
|
|
85
|
-
|
|
86
|
-
It gives you persistent memory across sessions β your AI recalls past
|
|
87
|
-
decisions, avoids repeated bugs, and arrives briefed every time you
|
|
88
|
-
open it. Follow the browser login (one click, no credit card), then
|
|
89
|
-
restart your editor. Free forever.
|
|
90
98
|
```
|
|
91
99
|
|
|
92
|
-
|
|
100
|
+
Like what you see? Make it permanent in the next step.
|
|
93
101
|
|
|
94
102
|
---
|
|
95
103
|
|
|
96
|
-
## The
|
|
97
|
-
|
|
98
|
-
Every morning, you open your AI coding assistant. It doesn't remember yesterday.
|
|
99
|
-
You explain your architecture. You explain the deployment process. You explain the bug you fixed last week.
|
|
104
|
+
## The plan β three steps, then it's automatic
|
|
100
105
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
---
|
|
104
|
-
|
|
105
|
-
## One Command. Fully Automatic.
|
|
106
|
+
### 1. Run one command
|
|
106
107
|
|
|
107
108
|
```bash
|
|
108
109
|
npx @cachly-dev/mcp-server@latest setup
|
|
109
110
|
```
|
|
110
111
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
2. **Detects your editors** β Claude Code, Cursor, Windsurf, VS Code, Copilot, Cline & Zed
|
|
115
|
-
3. **Writes the MCP config** for every detected editor automatically
|
|
116
|
-
4. **Creates `CLAUDE.md`** with Brain rules so your AI acts autonomously
|
|
117
|
-
5. **Reads your git history** β extracts lessons from years of commits before your first session
|
|
118
|
-
6. **Installs a git hook** β learns from every future commit automatically
|
|
119
|
-
|
|
120
|
-
**Restart your editor.** From now on your AI arrives pre-briefed β every session.
|
|
112
|
+
It signs you in (one browser click, no password, no credit card), detects every AI
|
|
113
|
+
editor you use, writes the MCP config, seeds your brain from git history, and installs
|
|
114
|
+
a git hook so it keeps learning.
|
|
121
115
|
|
|
122
|
-
|
|
116
|
+
### 2. Restart your editor
|
|
123
117
|
|
|
124
|
-
|
|
118
|
+
That's it. From now on your AI arrives pre-briefed β every session.
|
|
125
119
|
|
|
126
|
-
|
|
127
|
-
|---------|----------------------------------|
|
|
128
|
-
| First tool call | Session starts, project gets indexed in background |
|
|
129
|
-
| Before every task | AI recalls relevant past lessons |
|
|
130
|
-
| During debugging | AI traces root causes through causal memory |
|
|
131
|
-
| Before deploys | AI predicts failure risks from past patterns |
|
|
132
|
-
| After every fix | AI stores the lesson with commands and file paths |
|
|
133
|
-
| Every git commit | Hook extracts lessons from commit message |
|
|
134
|
-
| Editor closes | Session summary saved for next time |
|
|
120
|
+
### 3. Just work
|
|
135
121
|
|
|
136
|
-
|
|
122
|
+
cachly learns in the background. You never have to "remember to save." Every fix,
|
|
123
|
+
every commit, every session feeds the brain automatically.
|
|
137
124
|
|
|
138
|
-
|
|
125
|
+
> **Already inside Claude / Cursor / Copilot?** Paste this to your AI and it configures everything itself:
|
|
126
|
+
> ```
|
|
127
|
+
> Set up cachly for this project. Run: npx @cachly-dev/mcp-server@latest setup
|
|
128
|
+
> It gives my AI persistent memory across sessions. Follow the browser login
|
|
129
|
+
> (one click, no credit card), then restart the editor.
|
|
130
|
+
> ```
|
|
139
131
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
| Session start | "What's your architecture?" | "Ready. 23 lessons, last session: deployed API." |
|
|
143
|
-
| Known bug hits again | Re-researches from scratch | "You fixed this March 12, here's the exact command" |
|
|
144
|
-
| After holiday / handoff | Context dead | Fully briefed in < 10 seconds |
|
|
145
|
-
| New team member | Weeks to onboard | `setup` gives full context instantly |
|
|
146
|
-
| Pre-deploy check | Hope nothing breaks | Brain predicts failures before they happen |
|
|
132
|
+
**Our agreement with you:** Free forever tier. GDPR, EU servers. No model lock-in β
|
|
133
|
+
leave anytime and take your data. No code content is ever stored.
|
|
147
134
|
|
|
148
135
|
---
|
|
149
136
|
|
|
150
|
-
##
|
|
137
|
+
## What changes the moment you turn it on
|
|
151
138
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
npx @cachly-dev/mcp-server@latest index . # Index a project's code into the Brain (CI-friendly)
|
|
161
|
-
npx @cachly-dev/mcp-server@latest learn-git # Auto-learn lessons from recent git commits (PR-merge ready)
|
|
162
|
-
```
|
|
139
|
+
| The moment | Without cachly | With cachly |
|
|
140
|
+
|-----------|----------------|-------------|
|
|
141
|
+
| Session start | *"What's your architecture again?"* | *"Ready. 23 lessons. Last session: deployed API."* |
|
|
142
|
+
| A known bug returns | Re-researches from scratch | *"You fixed this March 12 β here's the exact command."* |
|
|
143
|
+
| You open an unfamiliar file | Cold start | *"Carol fixed 3 bugs here. Related: `fix:stripe-retry`."* |
|
|
144
|
+
| A teammate leaves | Their knowledge leaves too | Their lessons stay, attributed, searchable |
|
|
145
|
+
| New hire, day one | Weeks to onboard | `setup` β full team context instantly |
|
|
146
|
+
| Pre-deploy | Hope nothing breaks | Brain predicts failure risks from past patterns |
|
|
163
147
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
148
|
+
This is the transformation: from the engineer who **re-explains everything every
|
|
149
|
+
morning** β to the team whose **collective brain never forgets and gets sharper with
|
|
150
|
+
every commit.**
|
|
167
151
|
|
|
168
152
|
---
|
|
169
153
|
|
|
170
|
-
##
|
|
171
|
-
|
|
172
|
-
|
|
154
|
+
## cachly vs. Claude's built-in memory
|
|
155
|
+
|
|
156
|
+
Anthropic now ships memory for Claude β and it's genuinely good for **one developer,
|
|
157
|
+
using only Claude, alone.** That's not the game we're playing. Here's the honest map:
|
|
158
|
+
|
|
159
|
+
| | **cachly** | **Claude built-in memory** |
|
|
160
|
+
|--|------------|----------------------------|
|
|
161
|
+
| Works across **teams** | β
one engineer's fix β everyone's reflex | β per-user / per-agent only |
|
|
162
|
+
| Works across **models & tools** | β
MCP β Claude, Cursor, Copilot, Windsurf, Zedβ¦ | β Claude + Anthropic API only |
|
|
163
|
+
| **Structured** knowledge | β
topic Β· outcome Β· severity Β· causal graph | β οΈ flat text files, read linearly |
|
|
164
|
+
| **Causal root-cause** (`causal_trace`) | β
problem β chain β proven fix | β |
|
|
165
|
+
| **Provable recall quality** | β
+22.2 % Precision@1 vs. BM25 ([benchmark](./BENCH.md)) | β no public metric |
|
|
166
|
+
| **Governance** (review, attribution, audit) | β
`team_confirm`, roles, audit trail | β |
|
|
167
|
+
| **Self-hosting / BYOK / VPC** | β
data stays in your infra | β Anthropic-hosted |
|
|
168
|
+
| Survives a **model switch** | β
your brain is yours | β memory is gone or fragmented |
|
|
169
|
+
| Zero-setup for one solo user | β οΈ ~1 command | β
built in |
|
|
170
|
+
|
|
171
|
+
**The honest takeaway:** if you're a solo dev who only ever uses Claude, the built-in
|
|
172
|
+
memory is great β use it. If you work on a **team**, switch tools, care about **proof**,
|
|
173
|
+
or need **governance and data residency**, that's a gap Anthropic structurally can't
|
|
174
|
+
close without breaking its own lock-in. **That gap is where cachly wins.**
|
|
175
|
+
*(Full strategic analysis: [STRATEGY.md](./STRATEGY.md).)*
|
|
173
176
|
|
|
174
|
-
|
|
175
|
-
npx @cachly-dev/mcp-server@latest badge
|
|
176
|
-
```
|
|
177
|
+
---
|
|
177
178
|
|
|
178
|
-
|
|
179
|
+
## vs. other memory tools
|
|
179
180
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
181
|
+
| | cachly | mem0 | MemGPT / Letta | Plain CLAUDE.md |
|
|
182
|
+
|--|--------|------|----------------|-----------------|
|
|
183
|
+
| Persistent memory | β
| β
| β
| Manual |
|
|
184
|
+
| MCP server (no code changes) | β
| β
| β | β
|
|
|
185
|
+
| Causal root cause analysis | β
| β | β | β |
|
|
186
|
+
| Fully automatic (no explicit calls) | β
| β | β | β |
|
|
187
|
+
| Team knowledge graph + attribution | β
| Paid | β | β |
|
|
188
|
+
| Provable recall lift (published) | β
| β | β | β |
|
|
189
|
+
| Git-ambient learning | β
| β | β | β |
|
|
190
|
+
| GDPR / EU servers | β
| β | β | β
|
|
|
191
|
+
| Free tier forever | β
| Limited | β | β
|
|
|
185
192
|
|
|
186
193
|
---
|
|
187
194
|
|
|
188
|
-
##
|
|
195
|
+
## The standout moves
|
|
189
196
|
|
|
190
|
-
|
|
|
197
|
+
| Capability | What it does |
|
|
191
198
|
|---------|-------------|
|
|
192
|
-
| **`causal_trace`** | Root
|
|
193
|
-
| **`
|
|
194
|
-
| **`
|
|
195
|
-
| **`
|
|
196
|
-
|
|
|
197
|
-
|
|
|
198
|
-
|
|
|
199
|
-
| **
|
|
199
|
+
| **`causal_trace`** | Root-cause analysis *through memory*: problem β causal chain β the fix that worked, with date and commands. **No other system builds and queries a causal graph.** |
|
|
200
|
+
| **`brain_who_knows`** | *"Who on my team knows about Kubernetes deploys?"* β ranked experts π₯π₯π₯, built automatically from authorship. |
|
|
201
|
+
| **`brain_file_map`** | Before you touch a file: who's worked on it and which lessons reference it. |
|
|
202
|
+
| **`team_expertise_map`** | The whole team's skills matrix in one table β onboarding and bus-factor insurance. |
|
|
203
|
+
| **`brain_from_git`** | Reads your entire git history and populates the team knowledge graph (people + files + lessons) β zero setup, retroactively. |
|
|
204
|
+
| **`brain_coverage` / `skill_gaps`** | A 0β100 health score for your knowledge + a ranked list of blind spots to fix. |
|
|
205
|
+
| **`brain_predict`** | Predicts likely failures *before* they happen, from past incident patterns. |
|
|
206
|
+
| **Ambient Git** | A git hook auto-extracts lessons from every commit. Zero extra calls. |
|
|
200
207
|
|
|
201
208
|
**`causal_trace` in action:**
|
|
202
209
|
```
|
|
@@ -210,100 +217,117 @@ causal_trace(problem="auth breaks after restart")
|
|
|
210
217
|
|
|
211
218
|
---
|
|
212
219
|
|
|
213
|
-
##
|
|
220
|
+
## What runs automatically after setup
|
|
214
221
|
|
|
215
|
-
|
|
|
216
|
-
|
|
217
|
-
|
|
|
218
|
-
|
|
|
219
|
-
|
|
|
220
|
-
|
|
|
221
|
-
|
|
|
222
|
-
|
|
|
223
|
-
|
|
|
224
|
-
| 11-language search | β
| β | β | β |
|
|
225
|
-
| GDPR / EU servers | β
| β | β | β
|
|
|
226
|
-
| Free tier forever | β
| Limited | β | β
|
|
|
222
|
+
| Trigger | What the Brain does β no prompting |
|
|
223
|
+
|---------|----------------------------------|
|
|
224
|
+
| First tool call | Session starts; project indexed in background |
|
|
225
|
+
| Before every task | Recalls relevant past lessons |
|
|
226
|
+
| During debugging | Traces root causes through causal memory |
|
|
227
|
+
| Before deploys | Predicts failure risks from past patterns |
|
|
228
|
+
| After every fix | Stores the lesson with commands + file paths + author |
|
|
229
|
+
| Every git commit | Hook extracts a lesson from the commit |
|
|
230
|
+
| Editor closes | Session summary saved for next time |
|
|
227
231
|
|
|
228
232
|
---
|
|
229
233
|
|
|
230
|
-
##
|
|
234
|
+
## CLI Commands
|
|
235
|
+
|
|
236
|
+
```bash
|
|
237
|
+
npx @cachly-dev/mcp-server@latest demo # Preview your Brain (no account needed)
|
|
238
|
+
npx @cachly-dev/mcp-server@latest setup # Wire up all your AI editors (1β5 minutes)
|
|
239
|
+
npx @cachly-dev/mcp-server@latest health # Check token, API, editors, git hook
|
|
240
|
+
npx @cachly-dev/mcp-server@latest digest # Weekly Brain summary β shareable
|
|
241
|
+
npx @cachly-dev/mcp-server@latest share # Generate a shareable stats card + tweet
|
|
242
|
+
npx @cachly-dev/mcp-server@latest badge # Get a live README badge for your Brain
|
|
243
|
+
npx @cachly-dev/mcp-server@latest invite # Invite a teammate to share your Brain
|
|
244
|
+
npx @cachly-dev/mcp-server@latest index . # Index a project's code into the Brain (CI-friendly)
|
|
245
|
+
npx @cachly-dev/mcp-server@latest learn-git # Auto-learn lessons from recent git commits
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
> **Tip β auto-learn on every merged PR:** run `learn-git` in CI via the
|
|
249
|
+
> [cachly-brain-setup GitHub Action](https://github.com/cachly-dev/cachly/tree/main/sdk/github-action)
|
|
250
|
+
> with `mode: learn`. Each merged PR teaches your Brain automatically.
|
|
251
|
+
|
|
252
|
+
---
|
|
253
|
+
|
|
254
|
+
## MCP Tools (100 total)
|
|
231
255
|
|
|
232
256
|
### π§ Session & Memory (most used)
|
|
233
257
|
|
|
234
258
|
| Tool | What it does |
|
|
235
259
|
|------|-------------|
|
|
236
|
-
| **`session_start`** | Full briefing: last session
|
|
237
|
-
| **`session_end`** | Save what you built
|
|
238
|
-
| **`learn_from_attempts`** | Store structured lessons after any fix, deploy, or discovery |
|
|
260
|
+
| **`session_start`** | Full briefing: last session, open failures, recent lessons, brain health |
|
|
261
|
+
| **`session_end`** | Save what you built; auto-extract lessons from summary + git log |
|
|
262
|
+
| **`learn_from_attempts`** | Store structured lessons after any fix, deploy, or discovery (with `author`, `visibility`) |
|
|
239
263
|
| **`recall_best_solution`** | Best known solution for a topic β with success/failure history |
|
|
264
|
+
| **`smart_recall`** | Hybrid BM25 + semantic + causal-graph search β 11 languages, quality-reranked |
|
|
240
265
|
| **`remember_context`** | Cache architecture findings, decisions, file summaries |
|
|
241
|
-
| **`
|
|
242
|
-
| **`causal_trace`** | Root cause analysis through memory |
|
|
243
|
-
| **`brain_predict`** | Predict likely failures before they happen |
|
|
244
|
-
| **`brain_from_git`** | Bootstrap from git history β incremental, only new commits each run |
|
|
245
|
-
| **`memory_consolidate`** | Deduplicate and expire stale lessons |
|
|
246
|
-
| **`compact_recover`** | Full context recovery after hitting context window limit |
|
|
266
|
+
| **`compact_recover`** | Full context recovery after hitting the context-window limit |
|
|
247
267
|
|
|
248
|
-
### π₯ Team Brain
|
|
268
|
+
### π₯ Team Brain & Org Knowledge Graph
|
|
249
269
|
|
|
250
270
|
| Tool | What it does |
|
|
251
271
|
|------|-------------|
|
|
252
272
|
| `team_learn` / `team_recall` | Share lessons across the team with author attribution |
|
|
253
|
-
| `
|
|
254
|
-
|
|
|
273
|
+
| `team_confirm` | A reviewer confirms a lesson (π‘οΈ senior / βοΈ peer) β ranks higher in recall |
|
|
274
|
+
| **`brain_who_knows`** | Find your team's experts on any topic β ranked π₯π₯π₯ |
|
|
275
|
+
| **`brain_file_map`** | Experts + lessons per file, before you touch it |
|
|
276
|
+
| **`team_expertise_map`** | Full team skills matrix in one table |
|
|
277
|
+
| **`skill_gaps`** | Knowledge blind spots: unresolved failures, missing attribution |
|
|
278
|
+
| **`brain_coverage`** | 0β100 knowledge-health score for your codebase |
|
|
279
|
+
| `madc_deliberate` | Specialist AI agents vote to resolve contradictory lessons |
|
|
255
280
|
| `memory_crystalize` | Distill all lessons into a Crystal for instant team context |
|
|
256
|
-
| `brain_doctor` | Health check: lesson count, IQ boost %, open failures |
|
|
257
|
-
| `autopilot` | Generate a self-managing `CLAUDE.md` from Brain content |
|
|
258
|
-
| `global_learn` / `global_recall` | Cross-project universal lessons |
|
|
259
281
|
|
|
260
|
-
###
|
|
282
|
+
### 𧬠Causal Intelligence
|
|
261
283
|
|
|
262
284
|
| Tool | What it does |
|
|
263
285
|
|------|-------------|
|
|
264
|
-
|
|
|
265
|
-
| `
|
|
286
|
+
| **`causal_trace`** | Root-cause analysis through the Causal Knowledge Graph |
|
|
287
|
+
| **`brain_predict`** / `brain_predict_failures` | Predict likely failures before they happen |
|
|
288
|
+
| **`brain_from_git`** | Bootstrap people + files + lessons from git history β incremental |
|
|
289
|
+
| `memory_consolidate` | Detect contradictions, merge duplicates, expire stale lessons |
|
|
290
|
+
| `ckg_inspect` | Inspect the causal graph around any concept |
|
|
266
291
|
|
|
267
|
-
### βοΈ Infrastructure
|
|
292
|
+
### π Knowledge Commons Β· βοΈ Infrastructure Β· π Roadmap
|
|
268
293
|
|
|
269
294
|
| Tool | What it does |
|
|
270
295
|
|------|-------------|
|
|
296
|
+
| `syndicate` / `fedbrain_search` | Contribute to / search the global Knowledge Commons |
|
|
297
|
+
| `cache_get` / `cache_set` / `semantic_search` / `index_project` | Cache + semantic ops |
|
|
271
298
|
| `list_instances` / `create_instance` / `delete_instance` | Manage Brain instances |
|
|
272
|
-
| `
|
|
273
|
-
| `semantic_search` | Find cached entries by meaning |
|
|
274
|
-
| `index_project` | Index source files for semantic retrieval |
|
|
299
|
+
| `roadmap_add` / `roadmap_next` | Persistent project roadmap stored in the Brain |
|
|
275
300
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
| Tool | What it does |
|
|
279
|
-
|------|-------------|
|
|
280
|
-
| `roadmap_add` / `roadmap_update` | Persistent project roadmap stored in Brain |
|
|
281
|
-
| `roadmap_list` / `roadmap_next` | List items or get the single most important next action |
|
|
301
|
+
*β¦and ~70 more. Run `health` to see what's wired up in your editor.*
|
|
282
302
|
|
|
283
303
|
---
|
|
284
304
|
|
|
285
305
|
## FAQ
|
|
286
306
|
|
|
287
|
-
**Does my AI need to call `session_start` manually?**
|
|
307
|
+
**Does my AI need to call `session_start` manually?**
|
|
288
308
|
No. Sessions start and end automatically on the first tool call and when the editor closes.
|
|
289
309
|
|
|
290
|
-
**
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
Yes. Use `team_learn` / `team_recall` or run `npx @cachly-dev/mcp-server@latest invite teammate@example.com`.
|
|
310
|
+
**How is this different from Claude's built-in memory?**
|
|
311
|
+
Claude's memory is per-user, Claude-only, flat-file, and unbenchmarked. cachly is
|
|
312
|
+
team-shared, model-neutral (any MCP client), structured + causal, governed, and has a
|
|
313
|
+
[published recall benchmark](./BENCH.md). See the comparison table above.
|
|
295
314
|
|
|
296
|
-
**
|
|
297
|
-
|
|
315
|
+
**Can my whole team share one Brain?**
|
|
316
|
+
Yes β that's the point. `team_learn` / `team_recall`, or
|
|
317
|
+
`npx @cachly-dev/mcp-server@latest invite teammate@example.com`.
|
|
298
318
|
|
|
299
|
-
**
|
|
300
|
-
|
|
319
|
+
**Is my code sent to cachly servers?**
|
|
320
|
+
No code content is stored. cachly stores lesson text, commit messages, session
|
|
321
|
+
summaries, and key-value context. All data on EU servers, GDPR-compliant.
|
|
301
322
|
|
|
302
|
-
**
|
|
303
|
-
|
|
323
|
+
**What is `causal_trace` and why is it unique?**
|
|
324
|
+
Given any error, it walks the Causal Knowledge Graph to find root cause, intermediate
|
|
325
|
+
causes, and the exact fix that worked β including date and commands. No other memory
|
|
326
|
+
system builds or queries a causal graph.
|
|
304
327
|
|
|
305
|
-
**What if I hit the context
|
|
306
|
-
Call `compact_recover`. It reconstructs full context from Memory Crystal + recent
|
|
328
|
+
**What if I hit the context-window limit mid-session?**
|
|
329
|
+
Call `compact_recover`. It reconstructs full context from Memory Crystal + recent
|
|
330
|
+
sessions + WIP registry β typically one tool call.
|
|
307
331
|
|
|
308
332
|
---
|
|
309
333
|
|
|
@@ -370,7 +394,7 @@ On the first tool call your AI will prompt you to sign in β takes 10 seconds.
|
|
|
370
394
|
| **Speed** | 900 MB + Dragonfly | β¬79/mo | AI-heavy workloads |
|
|
371
395
|
| **Business** | 7 GB | β¬199/mo | Scale-ups |
|
|
372
396
|
|
|
373
|
-
β
All plans: **
|
|
397
|
+
β
All plans: **EU servers Β· GDPR-compliant Β· 99.9% SLA Β· No credit card for Free**
|
|
374
398
|
|
|
375
399
|
---
|
|
376
400
|
|
|
@@ -385,18 +409,24 @@ On the first tool call your AI will prompt you to sign in β takes 10 seconds.
|
|
|
385
409
|
|
|
386
410
|
---
|
|
387
411
|
|
|
388
|
-
## π οΈ Ecosystem
|
|
412
|
+
## π οΈ Ecosystem & Docs
|
|
389
413
|
|
|
390
414
|
| Package | What it does |
|
|
391
415
|
|---------|-------------|
|
|
392
416
|
| **[`@cachly-dev/mcp-server`](https://www.npmjs.com/package/@cachly-dev/mcp-server)** | β you are here |
|
|
393
417
|
| **[`@cachly-dev/openclaw`](https://www.npmjs.com/package/@cachly-dev/openclaw)** | Cut LLM costs 60β90% in JS/TS apps |
|
|
394
418
|
|
|
395
|
-
---
|
|
396
|
-
|
|
397
|
-
## Links
|
|
398
|
-
|
|
399
419
|
- π [cachly.dev](https://cachly.dev) β Dashboard & free signup
|
|
400
420
|
- π [Docs](https://cachly.dev/docs/ai-memory) β Full documentation
|
|
401
|
-
-
|
|
402
|
-
-
|
|
421
|
+
- π [BENCH.md](./BENCH.md) β The recall-quality proof
|
|
422
|
+
- π§ [STRATEGY.md](./STRATEGY.md) Β· [VISION_10X.md](./VISION_10X.md) Β· [PROGRESS.md](./PROGRESS.md)
|
|
423
|
+
- π¬ [GitHub Issues](https://github.com/cachly-dev/cachly-mcp/issues) β Bugs & feature requests
|
|
424
|
+
|
|
425
|
+
---
|
|
426
|
+
|
|
427
|
+
> **Stop re-explaining yourself to your own tools.** Give your AI β and your team β a
|
|
428
|
+
> brain that remembers, learns, and gets sharper with every commit.
|
|
429
|
+
>
|
|
430
|
+
> ```bash
|
|
431
|
+
> npx @cachly-dev/mcp-server@latest setup
|
|
432
|
+
> ```
|