Project Ledger: Human-in-the-Loop Memory System for AI Coding Agents

A GitHub project called project-ledger provides a human-in-the-loop system for managing what AI coding agents remember about your codebase. The core problem it addresses: agents can't judge what matters—they treat implementation bugs the same as architectural flaws and log what they changed rather than what's important.
How It Works
The system has three main components:
- A YAML ledger with structured entries containing summaries, confidence levels, tags, and cross-references
- A
/ledgerskill that publishes entries and automatically spawns a Haiku auditor to review them cold - A UserPromptSubmit hook that runs TF-IDF search on every prompt and injects matching entries automatically before the agent starts thinking
The hook is critical—without it, you're just writing YAML into the void. As noted in the source: "Agents never go read reference docs unprompted—the hook runs on every prompt, searches the ledger, and injects relevant entries before the agent starts thinking."
Practical Example
The creator describes a real-world use case: weeks after fixing a color rendering issue on an embedded project, they asked an agent "remember what we did where we fixed this before?" The hook surfaced the exact entry about 8-bit quantization crushing color fidelity at low values, including root cause, thresholds, and affected components.
Comparison & Approach
Compared to OpenViking, this system requires manual work but has a simpler architecture: just a YAML file plus a shell hook with no backend. The philosophy is that for projects where insights are hard-won, humans should decide what gets carried forward.
The system is designed to prevent technical debt accumulation as AI agents operate in codebases—each change gets harder to get right without proper context about what matters.
📖 Read the full source: r/ClaudeAI
👀 See Also

Claude Code Skill Converts Stitch Designs to Next.js with Zero Pixel Drift
A Claude Code skill converts Google Stitch AI designs to Next.js components with mandatory verification checkpoints to prevent pixel drift, preserving exact values and handling assets.

Crag: Open-source tool generates unified AI agent rules from project configs
Crag is an open-source compiler that analyzes project configurations and generates a single governance.md file, then compiles it into multiple AI agent rule files to prevent configuration drift across tools like Claude Code, Cursor, and Copilot.

Sitefire Automates AI Search Optimization with Content Agents
Sitefire's platform monitors AI search results, analyzes which pages get cited, and uses content agents to draft improvements or create new pages that get pushed directly to clients' CMS. One client saw AI bot requests increase from ~200/day to ~570/day within ten days.

ReasonDB: Open-Source Document Database Using LLM-Guided Tree Navigation Instead of Vector Search
ReasonDB is an open-source document database that preserves document structure as a hierarchy and uses LLM-guided tree traversal for retrieval instead of vector search. It uses BM25 for initial search, tree-grep for structure filtering, and beam-search traversal where the LLM visits ~25 nodes out of millions.