throughline
Continuous, state-aware session memory for Claude Code, Codex CLI, OpenCode, OMP, and Hermes Agent.
Captures what you did and what is - commands, file changes, decisions, live git/PR
state - then hands it off with judgment when the session wraps. Your artifacts stay
readable, editable, and yours.
Why throughline
Most "memory" tools for AI agents replay the conversation. throughline captures the
work and the state, separates cheap automatic capture from deliberate curated
handoff, and binds into Claude Code's native memory system.
| conversation-replay tools | throughline |
|---|
| What it captures | chat transcript, lossy summaries | actions + state - commands, files, decisions, git/PR |
| Capture vs. distill | one lossy step | separated: continuous capture, judged handoff |
| Project state | none | live git/branch/PR/issue at load |
| Artifacts | opaque blobs | human-readable, editable, plain text |
| Storage | per-machine, pollutes git | local by default, clean gitignore, commit when you choose |
| Native memory | ignored | binds to Claude Code's memory (curated promotion) |
Why not just...
- a manual
HANDOFF.md? You have to remember to write it, and you write it
from memory, which after a long session is itself reconstructed from a compacted
transcript. throughline captures continuously and distills from a buffer that
does not forget.
CLAUDE.md? That is for durable preferences and project conventions, the
things that are true every session. throughline is for per-session work state:
what you did today, where you stopped, what is still open.
- native
/memory? Native memory holds global facts. throughline holds
project work state and live git/PR/issue context, and it promotes the genuinely
durable facts up into native memory rather than competing with it.
How it works
Five capture points, each doing what it's actually capable of. Every harness wires
all five to its own hook/event API - the mechanism differs, the behavior doesn't:
| Capture point | What it does |
|---|
| Session start | Injects a HANDOFF.md pointer + live git state into context, and warns if the handoff looks stale against the branch's latest commit. Mechanical and cheap. |
| User intent | Appends a redacted, truncated one-liner per prompt to the per-session buffer - the "why" behind the work that otherwise lives only in the (compactable) conversation. |
| Action | Appends a structured one-liner per captured action: the command, file, search, fetch, or delegated task, flagged if it was interrupted, with obvious secrets masked before anything is written. Mutating actions (bash/edit/write) plus high-signal read-side actions (grep/fetch/search/delegated tasks) and MCP tool calls are captured; the noisiest (plain file reads/globs) are deliberately skipped so the buffer stays skimmable. |
| Compaction boundary | Stamps a marker into the buffer at the moment of compaction, so a later handoff knows to distill the actions above it from the buffer text rather than from summarized conversation recall - and re-injects the buffer's tail into context right after, so the current session doesn't lose its own recent history to the compaction. |
| Session end | A safety-net stamp so a session that ended without a handoff is surfaced next time for retroactive distillation. Nothing is ever silently lost. |
You never see any of this directly; it just protects you. The judgment sits one
layer up, in the handoff skill: at wrap-up, the agent distills the buffer +
context into a durable HANDOFF.md and a timestamped session log, and promotes any
durable facts into native memory (where the harness has one). It runs proactively
at detected wrap-up and reports the diff for your review. The onboard skill
does the full orientation pass (open PRs/issues, deep read) on demand.
Per-harness mechanism (click to expand)
| Capture point | Claude Code / Codex CLI / OMP | OpenCode | Hermes Agent |
|---|
| Session start | SessionStart hook | session.created event + experimental.chat.system.transform | on_session_start precompute, injected by pre_llm_call on the first turn |
| User intent | UserPromptSubmit hook | chat.message hook | pre_llm_call hook |
| Action | PostToolUse hook | tool.execute.after hook | post_tool_call hook |
| Compaction boundary | PreCompact hook, then SessionStart re-fires with source=compact | session.compacted event, which queues the recovery block for the next context injection | post_compaction hook, re-injected on the next pre_llm_call |
| Session end | SessionEnd hook | session.idle event (fires after every turn, not once at exit - see docs/INSTALL.md#opencode) | on_session_finalize and on_session_reset hooks |