AiSlackin
Entry
024 / 028
Filed
2026.11.11
Reading
2 min

[ GoneBy ]

memory that works backward

Retroactive project memory for LLM agents — an encrypted WAL that captures every turn before compaction eats it, then filters it backward from the shipped product into semantic recall.

GoneBy: memory that works backward
Fig. 00 / GoneByHover to pull the color proof

Every long agent session has the same quiet tragedy: context fills up, the transcript gets compacted, and the reasoning that produced the working code is rewritten out of existence. Memory systems try to fix this by deciding in the moment what matters. The hard part isn’t what matters — it’s that you don’t know yet.

GoneBy inverts that. Capture everything cheaply now, decide what mattered later, judged backward from what actually shipped.

The four phases

  1. Capture — every turn is appended to an encrypted per-project Write-Ahead Log at pre_llm_call boundaries, before the host compacts the transcript. ChaCha20-Poly1305 per entry, append-only, no LLM calls. Zero token cost.
  2. Backward walk — at project close, the newest-to-oldest filter pass uses the shipped product as the oracle: which of these entries actually contributed to what got built?
  3. Store — survivors get embedded with Qwen3-Embedding-0.6B via llama.cpp (local, no API) and upserted into Valkey or Qdrant. Matryoshka truncation runs 1024 → 512 dims: half the storage, roughly 97% of retrieval quality.
  4. Retrieve — later sessions query semantically.

Three ways to run it

  • Python library, CLI (goneby status, goneby serve), or MCP server exposing wall_append, walk_backward, store_memory, query_memory
  • Hermes plugin for the hands-off version: a pre_llm_call hook captures automatically, a post_compaction hook records the boundary. Capture is idempotent, keyed by message UID, so nothing double-writes
  • Per-project WALs (~/.goneby/wal/<project>.wal) so one project’s backward walk never sees another’s evidence

What it costs

The capture phase is free — no tokens, no model calls. All the inference is deferred to one judging pass and an embedding call at store time. Auto-recall every turn exists (GONEBY_AUTO_RECALL=true) but ships off by default, because a semantic search per turn costs latency; the query_memory tool is right there when you want it.

Where to get it

bash
git clone https://github.com/rahlquist/goneby
uv venv .venv && uv pip install --python .venv/bin/python -e ".[mcp,valkey,qdrant]"
export GONEBY_ENCRYPTION_KEY=$(goneby generate-key | awk '{print $NF}')

Needs Python 3.11+, any OpenAI-compatible /v1/embeddings endpoint, and Valkey or Qdrant. docs/SETUP.md walks the whole stack from zero. Apache-2.0. One warning inherited from the design, stated plainly: losing the key means losing the WAL — keep it in your vault, not the repo.

End of entry 024

>
↑ ↓ moveEnter open/ opens search anywhere