Skip to content

Superchat 2.1.0

Latest

Choose a tag to compare

@yibie yibie released this 04 Dec 06:34

Superchat 2.1.0 makes memory across conversations much faster and more reliable — measured against a real 20-day Tape — and adds Org workflows, ghost-text completion, and several everyday Emacs fixes.

Finding past work is faster and stops missing things

After three weeks of daily use (7,202 entries across 47 conversations), we audited how Superchat actually remembered and searched past work and fixed four real failure modes:

  • Notes no longer crowd each other out. Before, Superchat pasted full note bodies into the prompt up to 2,000 characters, dropping older ones first. Two long notes were enough to push out every other note — including every project note. Now the prompt lists one line per note (#ID date title), and the agent reads a note's body only when it is relevant. Standing rules that should apply on every turn still belong in AGENTS.md.
  • Multi-word and Chinese searches actually match. Searching for two words used to look for that exact phrase, spaces and all, and short two-character Chinese words failed inside longer queries. Searches now match individual words and rank entries that match more of them first.
  • Long search results keep the best matches. When search output hit the 6,000-character limit, older entries were dropped first — often throwing away the top match. Now the best matches stay and weaker matches are dropped instead.
  • Jumping to a past conversation or reading around a hit takes one step. The agent can now filter searches by entry kind, jump directly into another conversation, or read the entries around a specific #ID (including an uncut tool result) without falling back to hand-written SQL.
  • Citing a note no longer hides it. Previously, naming an earlier note as a source silently replaced it — which accidentally hid unrelated notes (more than half of past replacements on our Tape were accidental). Evidence (sources) is now separate from replacement (replaces), outdated notes can be retired (retire) without writing a dummy note, and project runs can no longer replace user-level home notes.

Measured results (2.0.0 vs 2.1.0)

Tested on isolated copies of a real 20-day Tape (7,202 entries, 47 conversations).

Offline replay of 38 real past searches and prompt builds:

Check 2.0.0 2.1.0 Change
Notes visible in prompt (home / project / notes) 1 / 1 / 1 17 / 20 / 20 All active notes visible
Empty search results (out of 38 real queries) 13 (34%) 1 (3%) -92%
Top match dropped when clipped to 6,000 chars 7 / 17 (41%) 0 / 18 (0%) Eliminated

Live 10-question cross-session benchmark (deepseek-flash, 10 real questions drawn from past conversations):

Metric (10 questions total) 2.0.0 2.1.0 Change
Answered correctly 10 / 10 10 / 10 Same
Total model rounds 65 25 -62%
Total recall calls 73 18 -75%
Empty recall calls 24 1 -96%
Fell back to raw SQL (tape_query) 1 (3 tool loads) 0 -100%
Total wall time 151.2 s 52.7 s 2.9× faster

On one real question ("how much disk space did my first cleanup free?"), 2.0.0 wandered through 20 rounds and 17 searches (10 empty) in 46.4 s; 2.1.0 spotted the note title immediately and answered in 2 rounds and 1 lookup in 3.8 s.

One honest caveat: on a progress-tracking question, 2.1.0 stopped right after reading a slightly older progress note in 8.7 s, while 2.0.0 wandered through 28 raw searches (49.1 s) and happened to uncover a later raw message. Retiring finished progress notes with the new retire option avoids leaving stale snapshots around.

Also new since 2.0.0

  • Org workflows. Write repeatable multi-step tasks as plain Org files mixing prompts, Emacs Lisp, and shell steps. Tag a shell check with :fix: so the model fixes failures and re-runs it, and resume interrupted workflows from the Tape.
  • Ghost-text completion. M-x superchat-complete-mode shows inline completions at point (TAB to accept, C-g to dismiss).
  • Rework tracking. Superchat notices when you edit or undo text a tool just changed and records it on the Tape.
  • Everyday Emacs fixes.
    • The chat input area stays aligned at the left margin under org-indent-mode, and its separator spans the full window width.
    • eval_elisp and learned tools print shared/cyclic structures safely instead of freezing Emacs.
    • Failed grep commands report their error instead of looking like empty matches.
    • Stray non-Unicode characters no longer break API requests.

Upgrading from 2.0.0

Update the package and restart Emacs — your existing Tape works as-is with no migration.

Because citing a note in sources no longer hides earlier notes, any old notes previously hidden that way will appear in the one-line catalog once; you (or /dream) can retire the obsolete ones cleanly.

All 580 tests pass (7398/7400 lines of Emacs Lisp).

Full Changelog: v2.0.0...v2.1.0