Skip to content
STIRUP

TECHNOLOGY INTELLIGENCE

Understand what's next.

Offline Memory Engine for Coding Agents with Append-Only Logging

The memory engine for coding agents is implemented without API keys or vector databases, using an append-only log for immutable memory operations and eight tools like memory_search and memory_add.

Share
AI-generated conceptual illustration accompanying: Offline Memory Engine for Coding Agents with Append-Only Logging
AI-generated editorial illustration of the article topic; not a photograph, product screenshot or measured result.

Implementation and Setup of the Memory Engine

The implementation of the memory engine for coding agents requires no API keys or vector databases, making it accessible for offline use. As described in the research, the memory engine is dependency-free and can be deployed quickly on any project. To set it up, users can clone the repository using the command git clone https://github.com/krapcys1-maker/adaptive-agent-memory-research ~/aamr, then launch the server with claude mcp add project-memory -- python ~/aamr/tools/project_memory/server.py --root .. Once running, the agent gains access to eight tools, including memory_search, memory_add, and memory_timeline, which operate by writing to a single append-only file, memory/events.jsonl, within the repository. This approach ensures that all memory operations are logged and accessible without external dependencies.

Architecture and Components of the Memory System

The architecture of the memory system is built around an append-only log, which serves as immutable evidence and is never rewritten. This log is managed by a memory controller responsible for writing, preserving, consolidating, revising, and archiving data. The controller organizes information into four categories: episodic, semantic, procedural, and failure. The system also includes a retrieval mechanism that connects the memory system to the agent. According to Hacker News Show, APEX-MEM (ACL 2026, Amazon) implements entity-property-value triplets over an append-only store with query-time temporal resolution, achieving 88.88% LoCoMo and 86.2% LongMemEval performance. The append-only log, memory controller, and retrieval components are already built and running, as demonstrated by the two-minute setup described in the project.

Verification and Integrity Checks

Verification and integrity checks are central to ensuring the reliability of this offline project memory system for coding agents. Users can inspect the memory and assemble context bundles within strict character limits using commands like python tools/project_memory/cli.py context "what is blocking independent review" --char-budget 4000. An append-only log is verified for consistency without requiring a model, network, or external reviewer via python scripts/verify_memory_integrity.py. A full repository audit is also possible with python scripts/audit_repository_claims.py, which identifies claims that no longer hold. According to Hacker News Show, the audit fails only on critical findings, such as a declared hash that does not match the working copy or Git blob, indicating a change to a frozen artifact. One example of a low explained-drift finding is noted in Hacker News Show, where a script was edited shortly after a freeze, and the audit re-derives from Git to ensure accuracy, without altering the freeze to pass the audit.

Research Findings and Experimental Results

Research findings indicate that verbatim chunks outperform lossy artifact extraction in long-conversation LLM memory by 15.9 points on the LoCoMo benchmark, according to Fidelity Before Structure: Verbatim Chunks Beat Lossy Artifact Extraction in Long-Conversation LLM Memory (v4, July 2026). This study attributes 78.8% of the 3,121 missing keywords in failed questions to extraction gaps. Experimental tracking reveals that of 74 registered experiments, 39 are completed or retracted, 20 are blocked (with four awaiting independent review), 7 were invalidated or only partly valid, and 8 are designs or review packets awaiting execution, as noted in the python script registry_summary.py. A corpus repair made 34 minutes after the baseline was written (commit cd5c3f4) significantly improved probe distinctness, increasing the number of distinct questions from 24 to 84.

Additional Research Context and Verification Status

Additional research context highlights the importance of verifying memory retention mechanisms in coding agents. A study noted 85.7% abstention from a deterministic extractor, suggesting consistency in findings across different corpora [Hacker News Show]. The A-MAC (March 2026) framework introduces a verified method for memory admission, incorporating an LLM-estimated future utility as one of five factors, indicating that future utility is already considered a retention criterion [Hacker News Show]. Regarding implementation challenges, frozen hashes were found to be reproducible only on Windows due to Git's end-of-line conversion, which caused discrepancies in 843 of 1348 files under the data/ directory. This issue has been resolved by disabling conversion repository-wide via .gitattributes [Hacker News Show].

Sources and reporting notes

Based on published source material. No independent hands-on testing is claimed.

Read more