mrwick/notebook

drag or arrow keys to move · scroll to zoom · esc to exit

One session library across three machines

I keep long chat threads with coding agents alive, because a new chat starts with no context. That is a bad habit. I built a library so a new chat can look up what an old one decided.

The problem

Context sits in four places: memory files, worklogs, docs/ files, and handoff files. Memory is tied to the folder of a session, so a new git worktree starts empty. Agents also re-read raw transcripts to recover context. A scan on 2026-10-10 found 507 such reads in 112 sessions. That is about 225k tokens of results.

The design

The lookup

A library skill tells the agent the order:

  1. Read INDEX.md.
  2. Read the entries that match the topic.
  3. Run lib search "<keywords>", at most three times.
  4. Open the full transcript of a cited session.

After three empty searches, the agent says there is no prior work. The lib CLI also has lib index and lib build-index. The search is a per-machine SQLite FTS5 keyword index over condensed, redacted transcripts. It has no MCP server and no embeddings.

The test

I tested 24 sessions and 12 questions with Haiku, one run per setup. The score is correct answers out of 12.

One run per cell is a small sample. The misses came from capture quality, not from retrieval.

What is still open