r/orgmode • • 23h ago

Superchat 2.1.0: Audited 3 weeks of my own Emacs chat logs, fixed 4 silly memory bugs, recall is 2.9× faster

0 Upvotes

Just released Superchat 2.1.0 — an Emacs-native agent that keeps all past chats and tool calls in one SQLite file.

Instead of building a fancier memory system, I read The Bitter Lesson for Agent Memory and audited 20 days of my own logs (~7,200 entries, 47 chats). Turns out four simple bugs were doing most of the damage:

  • Two long notes hid everything else**.** Pasting full note text into the prompt filled the budget immediately and pushed out every other note. Now the prompt just lists one line per note (#ID date title), and the agent opens one only when relevant.
  • Multi-word searches rarely matched**.** Searching "diary journal" looked for that exact phrase, and 2-character Chinese words failed inside longer queries. Now searches match individual words and rank entries matching more of them first.
  • Trimming threw away the best match**.** Long search results used to drop older entries first, often cutting the #1 hit. Now the best matches stay.
  • Citing a note accidentally deleted it. Over half of past note replacements in my logs were accidents. Citations and replacements are now separate, and old notes can be retired cleanly.

I re-ran 10 real questions from my own past chats on isolated copies of the database (deepseek-flash):

10 real questions (total)2.0.02.1.0
Answered correctly10 / 1010 / 10
Model rounds6525 (-62%)
Memory lookups73 (24 empty)18 (1 empty)
Total time151.2 s52.7 s (2.9× faster)

On one question ("how much disk space did my first cleanup free?"), 2.0.0 wandered for 20 rounds / 46s; 2.1.0 saw the title right away and answered in 2 rounds / 3.8s.

One caveat: on a progress-tracking question, 2.1.0 stopped right after reading a slightly older progress note (8.7s), whereas 2.0.0 stumbled onto a later message after 28 searches (49s). Good reminder to retire finished progress notes.

Also new since 2.0.0: Org-file workflows (with :fix: retry loops and resume), ghost-text completion (superchat-complete-mode), and org-indent-mode no longer shifting the chat prompt right. Needs Emacs 30.1+ and curl, ~7,400 lines of Elisp, 580 tests.

Feedback welcome!