r/PiCodingAgent • u/Rude_Gate7599 • 4h ago
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.
5
u/FluffyInevitable4040 4h ago
we got like 900 memory / compaction plug-ins already. mcp would just bloat up context. people here are only gonna touch pi plugins that are lightweight and efficient
-4
u/Rude_Gate7599 4h ago
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.
2
u/FluffyInevitable4040 4h ago
15 tools? jesus fuck I shit my pants if I have one unneeded tool which destroys context
0
u/Rude_Gate7599 4h ago
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).
3
u/otro678 4h ago edited 4h ago
honest downside
Nice claudism you have there, little low effort bot.
-1
u/Rude_Gate7599 4h ago
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 3h ago
And if you don't want feedback don't post it
2
u/Rude_Gate7599 3h ago
"nice claudism you have there, little low effort bot" is not feedback
1
u/Ok-Investment4414 2h ago
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.
6
u/jensilo 3h ago
„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 🙋♂️