Deterministic context selection for AI coding agents. Local memory that compounds across sessions.
Most knowledge and memory work still happens through a UI a human drives. Codeledger MCP server moves it into the conversation instead. Deterministic context selection for AI coding agents. Local memory that compounds across sessions.
CodeLedger turns every coding action into a persistent, compounding asset.
The server publishes 13 tools. What each one is for:
query_ledger — Search for verified patterns before codingget_active_context — Get the task-specific context bundlerecord_interaction — Report outcomes for memory compoundingAppend — only memory of engineering activityOutcome — linked learning (what worked vs what failed)Cross — agent continuityRemember — VerifyFeature — Individual (Free)Hook — WhenSessionStart — Session opensPreToolUse — Before edit/writePreCompact — Before compressionThe server ships on npm as @codeledger/cli, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.
This sits in the knowledge and memory group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Codeledger's toolset — query_ledger, get_active_context, record_interaction and 10 more — is a fair guide to whether it matches your workflow. It is maintained by codeledgerECF; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| query_ledger | Search for verified patterns before coding |
| get_active_context | Get the task-specific context bundle |
| record_interaction | Report outcomes for memory compounding |
| Append | only memory of engineering activity |
| Outcome | linked learning (what worked vs what failed) |
| Cross | agent continuity |
| Remember | Verify |
| Feature | Individual (Free) |
| Hook | When |
| SessionStart | Session opens |
| PreToolUse | Before edit/write |
| PreCompact | Before compression |
| Stop | Session ends |
{
"mcpServers": {
"codeledger": {
"command": "npx",
"args": ["-y", "@codeledger/cli"]
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
A knowledge graph your assistant keeps between sessions — entities, relations and observations that persist.
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Your workspace, on speaking terms with AI — search, read and write Notion pages and databases.
A structured scratchpad for hard problems — stepwise reasoning with revisions, branches and visible logic.
Symbol-level code navigation, refactoring and memory for coding agents — the IDE brain your assistant has been missing.
Chat with your second brain — search, read and write vault notes through the Local REST API.