CodeLedger

Deterministic context selection and local repository memory for AI coding agents.

codeledgerecf 8 ↓ 9.2k
Claude CodeClaude DesktopGeneric
View source ↗

CodeLedger is a local context control plane for AI coding agents that scores repository files across weighted signals and delivers bounded, task-relevant context bundles within a token budget. It records successful patterns as institutional memory for session continuity and cross-agent learning, and includes governance features like scope-violation and edit-loop detection. The server exposes MCP tools for Claude Code, Cursor, and Windsurf, runs entirely locally via stdio with no external transmission, and stores state in a per-repository directory.

Source

Repository: https://github.com/codeledgerecf/codeledger

Maintain CodeLedger?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

CodeLedger on getagentictools
[![CodeLedger on getagentictools](https://getagentictools.com/badge/mcp/codeledgerecf-codeledger.svg)](https://getagentictools.com/mcp/codeledgerecf-codeledger?ref=badge)