Skip to main content
Glama

Agent Trace

Find a local Codex or Claude Code conversation, see what its workers actually ran, and take just the context you need into your next chat. Agent Trace opens in your browser or a native Mac window and reads recordings already on your computer. Either provider works on its own.

A test worker’s pytest command exited with code 1. Its output shows expected 8.25, got 8.24. A git diff and a second pytest run follow.

In this example the checkout total was off by a cent. Click the first pytest tile to see the failed assertion, git to see the rounding change, and the second pytest to see the test pass. Back in the parent conversation, Choose sessions… lets you copy the investigation and its test worker while leaving out the documentation worker. Try the synthetic recording.

Introduction to the projects · Agent Trace walkthrough · Short demo

Try it

From a terminal on macOS or Linux, with Git and Python 3.10 or later installed:

git clone https://github.com/wcook04/agent-trace-mechanism.git
cd agent-trace-mechanism
python3 -m venv .venv
.venv/bin/python -m pip install .
.venv/bin/agent-trace-app

On Windows, clone the repository and run these commands in PowerShell from its directory:

py -3 -m venv .venv
.\.venv\Scripts\python.exe -m pip install .
.\.venv\Scripts\agent-trace-app.exe

The workbench opens on this computer. Its Missions list contains recorded conversations and agent runs from all projects in the configured history folders, including archived Codex chats. Open History folders to choose a custom provider home. Hide from list changes the workbench view. Archived in Codex describes where Codex stored the recording.

On a Mac, the native window adds a floating capsule and system pasteboard. From the same checkout, install the desktop extra and launch it:

.venv/bin/python -m pip install '.[desktop]'
.venv/bin/agent-trace-app --desktop

The current release is a technical preview. The native window is available from source. A notarized Mac download is pending. Workbench guide · Release files.

Related MCP server: chat-history-db

Try the example

Open History folders, set Codex home to the absolute path of examples/checkout-review in your clone, and save. Select Investigate a checkout total, choose Test runner, then Open thread. Clicking a command shows its recorded outcome, an output excerpt when available, and its location in the source file. Clear the folder setting to return to your own histories.

Preview copy lists the sources and shows the exact text. Copy this text copies that snapshot even if another event arrives. Refresh + Copy reads the recordings again. Each copy of a conversation starts with a counted note of what it leaves out, such as thinking, tool results and earlier turns, and Copy note for the coding chat gives the matching note to paste beside a reviewer's answer (why, and one small test). Compact views leave out tool bodies and mark each one at its call with its length. Detailed views can excerpt large native outputs. You can also select unrelated recordings together or save a personal Markdown prompt on the prompt shelf.

Let an agent read selected files

For a one-off handoff, paste the preview into your next chat. For repeated queries, the optional MCP server lets Codex or Claude Code read only the files you explicitly register. Browsing, previewing, or pinning a chat grants no MCP access. A connected host may send retrieved text to its model provider.

Install the extra, then list local recordings:

.venv/bin/python -m pip install '.[mcp]'
.venv/bin/python -m trace_mechanism.setup list --provider codex

Follow the registration and host connection guide or give your agent the installation skill. A host can search registered recordings, read an exact selection by recording ID, or page through a native Codex command’s output. MCP tools and examples · Data access and privacy.

Explore and contribute

Apache 2.0 licence · Attribution · Cite Agent Trace

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      F
      maintenance
      Enables AI coding agents to persistently store and retrieve conversation history with hybrid semantic and keyword search, cross-encoder reranking, session filtering, and archiving through MCP tools.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables searching and retrieving ChatGPT and Claude conversation exports locally, allowing assistants to fetch handoff context and continue conversations through read-only MCP tools.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables agents to search a local saved-post library with keyword, semantic, and deep queries, retrieve individual records by ID, and inspect status through stdio MCP tools.
      MIT