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

Librarian MCP: Local AI Server for Persistent Context with Documents
Librarian MCP is an open-source Model Context Protocol server that runs locally and connects to Jan, LM Studio, or Claude Desktop, enabling AI models to search and analyze document collections while maintaining full conversation context and data privacy.

MemAware benchmark shows RAG-based agent memory fails on implicit context retrieval
The MemAware benchmark tests whether AI agents can surface relevant past context when users don't explicitly ask for it, revealing that current memory systems score only 2.8% accuracy on hard implicit queries versus 0.8% with no memory.

Transforming Claude Code into an Autonomous Engineering Team
The ~/.claude/ configuration turns Claude Code into an autonomous build system, generating and testing code autonomously.

Stanford Researchers Release OpenJarvis: A Local-First Framework for On-Device AI Agents
Stanford researchers have released OpenJarvis, a local-first framework for building on-device personal AI agents with tools, memory, and learning capabilities. The project includes GitHub repository and website links for developers to explore.