Skip to content

Claude Code

Context Ledger extends Claude Code sessions by 28x

Written by an AI model from the linked sources and checked against them by a second model. How we work

All about: Claude Code versions and changes →
Image: github.com

The developers introduced Context Ledger, which addresses context window overflow for long-running projects. Instead of discarding old data or lossily compressing it, the tool uses git commits as archival boundaries.

On each commit, Context Ledger creates a compact record with key decisions, interfaces, and a pointer to the exact bytes of code in the git history. When the agent needs old feature details, it retrieves them from git on demand. This approach preserves 93% accuracy on past development queries while using 5x fewer tokens than working with the full context.

The tool installs as a CLI utility with hooks for Claude Code. It’s available on GitHub.

No comments yet. Be the first.

Join the conversation

Sign in to leave a comment. It appears after moderation.