Open Source / Developer Tool

Releases

TRACE

Transcript Recall And Continuity Engine

Conversation memory,
kept by code.

For work with Claude Code and Codex CLI/TUI. A local record of your words, decisions and unfinished work.

Pick up the thread.
Built By
Diego Liñan
Made With
Go / SQLite
Works With
Claude Code / Codex CLI/TUI
License
Apache 2.0

01 / The Problem

The Work Continues.
The Context Doesn’t.

A new session can inherit a summary and still miss the detail that matters: an exact path, a rejected approach, the user’s own words, or the point where the work stopped.

I built TRACE to keep the underlying record available. It imports session transcripts locally, makes them searchable, and supplies a quoted handoff for the next session. The record is kept by code, without asking another model to rewrite it.

02 / The Mechanism

Keep. Find. Continue.

  1. 01

    Keep the Record

    Import transcript events into a local SQLite database. Claude Code transcripts also get raw gzip copies; Codex retains its own source files.

  2. 02

    Find the Evidence

    Search by words, a date or a time window, including the current session. Open a result with the events before and after it.

  3. 03

    Resume the Thread

    Bring the user’s last words and recent replies into the next session as quoted reference material.

03 / Engineering Choices

Continuity Has
Moving Parts.

Identity before Labels

Sessions are identified by ID rather than their display names. For Codex, events are keyed by thread and ordinal to avoid duplicating history when compressed copies or reverts are encountered. Continuity follows the folder where a session ran; optional marker-based roles can preserve its identity when folders move or change names. TRACE does not depend on Git.

Automatic Hooks, Explicit Trust

Claude Code and Codex CLI/TUI use native hooks to capture completed turns and supply a quoted handoff when a session starts or resumes. Codex also captures interrupted turns. Its hooks must be reviewed and trusted in Codex before they run. An explicit manual mode remains available through AGENTS.md; it depends on the agent following that instruction.

Local Storage, Explicit Scope

The database stays on the user’s machine. Each memory has its own home, which the installed hooks keep using across sessions. Configuration can select folders and disable Claude sources for a Codex-only memory. Scope matches normalized path fragments; it is not a Git repository boundary or a per-message topic filter.

Checks That Reach the Agent

Configured checks can report failures after matching tool calls. In Claude Code, a check with before enabled can instead run before the call and deny it when the check fails. Every run is logged, including passes. Checks before an action are not installed on Codex.

Rules and Decisions in Your Own Words

The agent identifies a rule or decision and records a quote from your message with trace rule add. TRACE verifies that the words occur in your message and keeps the original wording and when you said it. Replacing or dropping a rule preserves its history. Recorded rules lead the next session’s context and the opt-in rule card. On Claude Code, rules linked to files or commands can also return before a matching action. Whether this reduces rule violations has not yet been measured.

A Board for Unfinished Work

Tasks can stay tied to the message that requested them, with dependencies, completion criteria and due times. Open tasks appear in the startup handoff. The agent manages the board; you can inspect a browser snapshot with trace task board. An alarm can deliver a timed reminder into a live session, even when nobody is typing.

04 / A Real Continuity Check

Across a Clear.
Without a Search.

In a real Windows Codex session, a unique control phrase was recorded automatically. After /clear opened a new thread, a short question recovered the phrase without repeating it, running a command or searching files.

The import log and the new thread’s tool-call count confirmed that path. This checks one concrete capture-and-recall cycle; it does not establish perfect recall or the effectiveness of the rule card.

Search and inspection remain available when the quoted handoff is not enough. See the command implementation.

  1. 01 / Original SessionRecord a Control Phrase

    The completed turn is captured by the Stop hook.

  2. 02 / After /clearStart a New Thread

    SessionStart supplies the quoted context.

  3. 03 / New ReplyRecover the Phrase

    The model returns it with no search or tool call.

Author-reported acceptance check on Windows, 14 November 2026. This diagram describes the documented sequence; it is not a transcript or a new test. Read the versioned check ↗

Command Reference

Ways Back into the Record.

trace search -who user -zone UTC-3 -since "2026-11-22 11:20" -until "2026-11-22 11:40"

List user messages around 11:30 in the stated time zone, without needing search words.

trace show <session>#<seq>

Open a search hit with surrounding events from the same session.

trace rule list

Inspect the rules and decisions recorded from the user’s own words.

trace import

Read new transcript material into the local record.

trace search paper-edge

Look for an earlier discussion using a concrete term from the work.

trace resume

Retrieve a quoted handoff for the current folder.

trace stats

Inspect imports, check results, delivery failures and how much context TRACE wrote into recent sessions.

trace task board

Open a local browser snapshot of tasks, dependencies and completion criteria.

trace alarm

Deliver timed reminders into a live session; host-specific delivery details are in the README.

05 / The Limits

A Record Still
Needs Judgment.

Preserving a statement does not make it true or current. Retrieved history is reference material; the agent still needs to inspect the present state of the project and follow current instructions.

Search results and resume blocks are selections from the record, not the whole history. Experimental approval, rejection and correction markers use code rules; they are not reliable substitutes for interpreting the conversation.

Codex support covers CLI/TUI, not Desktop. Codex hooks cannot steer the compaction summary or replace tool output. An abrupt kill or crash runs no hook; transcript material left on disk can be picked up by a later import.

Secret redaction applies to searchable events. Raw transcript copies retain the original bytes and are not redacted. They need the same care as the source transcripts.

The Windows check above is one acceptance test. The README also documents a fresh installation on macOS 15.1.1, Apple silicon, with Claude Code 2.1.329 and TRACE v0.3.42 on 20 November 2026: a separate session returned the earlier codeword from its startup context without a tool call. The macOS report also covers alarm delivery into an interactive session and a manual compaction that retained the reminder text, task number and time. Codex was not checked there. Linux has CI coverage; live acceptance there remains pending.