Give Your Coding Agents a Memory You Own
funes is an open-source, single-binary memory layer that indexes the session traces of coding agents (Claude Code, Codex, pi, Hermes) so any agent can recall past decisions and rationale with exact provenance. A deterministic pipeline parses traces into a common turn-and-block shape, chunks and embeds them locally into an append-only Lance dataset, and answers queries with hybrid vector+BM25 search, rank fusion, cross-encoder reranking, recency reweighting and neighbor-chunk expansion. Memories can be published to a private Hugging Face dataset with secret redaction, letting them follow you across machines, agents and teammates. On a handoff-vs-recall benchmark, recall was 4-8x cheaper than a written handoff, while compaction failed on one task because its summary flattened key findings.
Related posts
- How to build a retrieval system for agents
Turso mediumAdeptMemelord is a fully local memory system for coding agents that keeps a per-project SQLite database (via Turso) of corrections, insights and user-requested memories, embedded with all-MiniLM-L6-v2 and retrieved by cosine vector search at task start. Each memory carries a weight updated by exponential moving average from the agent's 0-3 usefulness ratings, plus time decay for unused memories, and memories flagged as wrong are deleted immediately. Integration with Claude Code uses an MCP server and lifecycle hooks, and a TypeScript SDK accepts a bring-your-own embedding function for custom agents. The argument is that retrieval beats dumping lessons into .md system prompts, which wastes the finite context window.
- Introducing Loom: agent memory that keeps up with your code
ClickHouse mediumAdept
Loom is an open-source agent memory system that stores memories alongside a code index (functions, classes, call graph) in a single ClickHouse database, so facts about code are linked to definitions and flagged when that code is renamed or rewritten. Facts are versioned rather than overwritten, conflicts are flagged, and namespaces support one-way, N-way and personal-to-shared promotion sharing between agents like Claude Code and Codex. Retrieval fuses vector search, BM25, verbatim chunks and an entity graph scoped by permissions inside the query, and reports when the best match is too weak to answer from. On ClickHouse code questions, mean answer score rose from 0.78 to 0.84 with cost per question falling from $0.212 to $0.17, and memory.ask scored 96.6% on LongMemEval.
- The components of agent memory
Anthropic Engineering mediumAdeptAgent memory works best as a layered hierarchy: transcripts as an event log, notes Claude writes in-session, richer representations such as wikis, and context injected into every session, with an offline "dreaming" pass that reflects on transcripts to correct and reorganize memory. On a CL-Bench database task, newer Claude models closed the learning loop by recording validated rules, raising mean reward from about 0.56–0.66 to about 0.83. In Pokémon Red, a model that kept 10 focused files earned four badges, while one that logged everything into 413 files earned one. Stronger models do better when told what memory is for rather than given fixed rules, and dreaming caught a wrong navigation note that otherwise trapped the agent in a loop.
- CoderForge-Preview: SOTA open dataset for training efficient coding agents
Together AI hardMasterCoderForge-Preview is an open dataset of 258K test-verified coding agent trajectories (155K passing) covering 51K tasks across 1,655 repositories from R2E-Gym, SWE-Smith and SWE-Rebench. The trajectories were generated with Qwen3-Coder-480B in OpenHands Docker environments, filtered by rejection sampling and permissive-license audits, and cost about $130K to produce at a ~90% prompt cache hit rate. Fine-tuning Qwen3-32B on the passing trajectories, using Ulysses sequence parallelism, multipacking and token-level loss normalization at 128K context, reaches 59.4% pass@1 on SWE-Bench Verified, and a 4B model reaches 43.0%. Ablations show a repetition penalty helps only early checkpoints, so later checkpoints should be run without one.
- Trace and evaluate Cursor agents with Langfuse, powered by ClickHouse
ClickHouse mediumAdept
The Langfuse Observability plugin for Cursor captures each agent prompt as a `Cursor Turn` trace containing LLM observations, tool executions, subagents and token usage, stored in a wide ClickHouse observations table that avoids trace/observation joins for cost and latency aggregation. Setup is a Marketplace install plus a `~/.cursor/langfuse.json` key file. File-content capture is off by default, and because Cursor reports tokens once per turn, cost should be read from the trace total. A worked loop shows finding expensive turns caused by repeated file reads and retried shell commands, fixing them with a project rule, and validating the fix with dataset-based evaluations, which can also gate CI via a GitHub Action.