sebastian
Founder @3ngram + AI Lead @RDG
- Joined
- Nov 20, 2026
Comments
What are your solutions for agent memory?🤖
I started building 3ngram (github.com) at the beginning of the year because I was frustrated with context rot in .md files and with agents missing the brief I’d given them. Maintaining CLAUDE.md, AGENTS.md and other .md files, along with GH issues, specs and the like, had become a second full-time job.
3ngram is an MCP server, so any agent can connect to it, read from it and write to it. The small dashboard mainly serves as a control panel and provides an overview. Memories have types, including decisions, commitments, blockers, facts and preferences. Nothing gets overwritten: when a revision replaces a memory, the old version stays readable in the audit trail. Commitments stay open until they’re resolved.
Every Claude Code or Codex session starts with a briefing on the project’s overdue commitments, stale items and recent decisions, so the agent picks up where we left off. I can’t really work without it anymore. My account has around 9,000 active memories, 850+ superseded memories and more than 1,700 resolved commitments.
The most useful thing I’ve learned is how much easier retrieval is than getting agents to write things down and follow up. When I checked which open commitments my agents had seen in their briefings, I found that only a handful had been updated or closed during the session. I keep working on that, and it’s improving week by week. I’m also testing 3ngram against LongMemEval, and I reproduced the paper’s BM25 baseline.
3ngram is open source (Apache-2.0). You can self-host it with docker compose or use the hosted SaaS at 3ngram.ai. I keep extending it based on my own use and as new models and tools come out.
How are you getting agents to write down the relevant parts? The most interesting approach I’ve seen so far is chicagobuss’s: recording everything and slicing it afterwards.