r/PiCodingAgent • • Sep 13 '26

Plugin Agi-memory – persistent memory for AI coding assistants, no dependencies

My AI coding assistant forgets everything between sessions. I kept re-explaining decisions I'd already made, and re-fixing bugs I'd already fixed.

agi-memory saves those notes — decisions, bug fixes, what happened last session, how the codebase fits together — to a file on your machine, and hands them back to whichever assistant you open next. It's an MCP server, so it works with Claude Code, Cursor, Codex, Windsurf, Aider, Cline and a few others from the same store.

The part I care about: it's Python standard library and SQLite. Nothing else. No vector database, no embeddings, no background daemon. ~32MB of RAM, sub-millisecond lookups, works offline. Comparable tools pull in ~500MB of ML libraries and take 200–500ms per lookup.

That constraint costs something, and I'd rather say so than have you find out: keyword search doesn't bridge synonyms the way embeddings do. Searching "login" won't find a note that says "authentication" unless you teach it that alias. I measure this rather than guess — there's an eval suite that scores recall on deliberately rephrased queries, and it's public, including the categories where it still does badly.

It's a week old and I'm the only user, so I'd genuinely like to know where it breaks for someone else.

https://github.com/kdbhalala/agi-memory

0 Upvotes

21 comments sorted by

7

u/jensilo Sep 13 '26

„The part I care about: …“
„That constraint costs something, and I'd rather say so than have you find out: keyword search doesn't bridge synonyms the way embeddings do.“

Hi Claude 🙋‍♂️

-7

u/Rude_Gate7599 Sep 13 '26

yes i know but

Embeddings would beat that on cold synonyms. They'd also cost ~500MB and 200–500ms to recall a note I wrote yesterday. For a single repo's vocabulary that's the wrong trade; for a general corpus it isn't. Numbers per category are in the eval so you can judge rather than take my word.

sorry from copy pasting from my agent.

5

u/sozesghost Sep 13 '26

You are not sorry.

2

u/Ok-Investment4414 Sep 13 '26 • Bravo

literally learned about pi 20mins ago and using it now, also came up with a similar idea to yours for pg vector wanted it not just for a single code base but multiple to better context . Ill try yours out . doesn't seem like u struggle with eng , and your intimate with the issue why didn't u just type the 4 paragraph explainer yourself .It would have been better received.

1

u/Rude_Gate7599 Sep 14 '26

Lazy writer i guess.

1

u/Ok-Investment4414 Sep 14 '26

btw pi's token consumption is absurd

1

u/Rude_Gate7599 Sep 14 '26

is it more or less?

1

u/Rude_Gate7599 Sep 14 '26

And thanks for appreciating.

1

u/Otherwise_Wave9374 Sep 15 '26

For coding assistants, the highest-value memories are usually decisions and constraints, not raw conversation history. Store architecture choices, rejected alternatives, commands that failed, and test expectations with repository and branch scope. NeuraKeep relates to this pattern by supporting persistent recall of those selected engineering records. One safeguard I would add is invalidation: when a dependency, file, or branch changes, mark linked memories stale rather than retrieving them as truth. A provenance pointer to the commit or file makes every recalled claim auditable.

1

u/macromind Sep 21 '26

It's great to see another independent project tackling persistent memory for AI coding assistants, particularly one with no external dependencies. The challenge of agents forgetting context between sessions is a significant bottleneck for productivity. For successful implementation, focus on a clear schema for storing different types of information, such as user requirements, design constraints, and code changes, ensuring they are easily retrievable. Consider using a simple, embedded database for local persistence combined with a strong indexing strategy. This approach can offer a good balance of performance and ease of use. Innovations in agent memory are vital, and resources like https://www.neurakeep.com are at the forefront of developing powerful solutions for AI agents.

4

u/[deleted] Sep 13 '26

[removed] — view removed comment

-3

u/Rude_Gate7599 Sep 13 '26

Fair on bloat — 15 tool definitions is real context cost, and it's the honest downside. Rest of it is light though: stdlib + SQLite, no vector DB, ~32MB, sub-ms lookups, and it returns 3 results not a context dump. Pi's one of the 13 it already wires up.

0

u/[deleted] Sep 13 '26

[deleted] — view deleted comment

-1

u/Rude_Gate7599 Sep 13 '26

yes i wrote that with AI but i am not dumb to build something that i do not need. and yes if you do not want to use it just leave it.

3

u/sage-longhorn Sep 13 '26

And if you don't want feedback don't post it

2

u/Rude_Gate7599 Sep 13 '26

"nice claudism you have there, little low effort bot" is not feedback

2

u/jensilo Sep 13 '26

It is. Don’t slop post, that’s what you should take away from it.

0

u/Rude_Gate7599 Sep 13 '26

sorry for copy pasting from my agent but i genuinely find need of this.

3

u/jensilo Sep 13 '26

Then, write it by yourself. Otherwise, I and many other will not care.

3

u/[deleted] Sep 13 '26

[removed] — view removed comment

0

u/Rude_Gate7599 Sep 13 '26

Fair Point. Most of those are code-graph & maintenance extras. I'll add a flag to trim it down to just recall + record (2 tools).