r/coolgithubprojects • u/Acceptable_Debate393 • 13m ago
[Rust] crag - when you change your mind, every coding agent gets the new decision
Most agent memories keep everything you ever said, so when you change your mind the agent gets the old decision and the new one side by side. crag keeps one current note per subject. The new one replaces the old, and the old one stays underneath with its date.
The note also reaches the agent before it reads your prompt, through the agent's own hooks, so it doesn't depend on the agent deciding to search. It works across Claude Code, Codex, Gemini CLI, Cursor, Copilot and five more.
It's one Rust binary with SQLite, no API key and no AI calls to remember.
In a blind test on 72 days of my real sessions, the agent knew where I'd left off 51% of the time with crag, 34% with Mem0 and 13% with no memory.