Agent Trace
by wcook04
README.md
# 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.
[](docs/images/agent-trace.png)
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](#try-the-example).
[Introduction to the projects](https://www.youtube.com/watch?v=FwgaZYH2otY) · [Agent Trace walkthrough](https://www.youtube.com/watch?v=Auuntr4bido) · [Short demo](https://www.youtube.com/watch?v=aszOPe52j6M)
## Try it
From a terminal on macOS or Linux, with Git and Python 3.10 or later installed:
```sh
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:
```powershell
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:
```sh
.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](docs/workbench.md) · [Release files](https://github.com/wcook04/agent-trace-mechanism/releases).
## Try the example
Open **History folders**, set **Codex home** to the absolute path of [examples/checkout-review](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](docs/studies/reviewer-visibility.md)). 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:
```sh
.venv/bin/python -m pip install '.[mcp]'
.venv/bin/python -m trace_mechanism.setup list --provider codex
```
Follow the [registration and host connection guide](skills/agent-trace/references/install.md) or give your agent the [installation skill](skills/agent-trace/SKILL.md). 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](docs/mcp.md) · [Data access and privacy](SECURITY.md).
## Explore and contribute
- [Example recordings](examples/README.md) include a failed test investigation, a coordinator with two workers, and a cross-provider review.
- [All documentation](docs/README.md) lists the guides and the write-ups of specific runs, including [what a second model is told about a copy that leaves things out](docs/studies/reviewer-visibility.md).
- [How the reader works](docs/mechanism.md) and [reader provenance](docs/records/provenance.json) describe the supported formats and their origins.
- [Development and source map](docs/development.md) and [contributing](CONTRIBUTING.md) cover local checks, packaging and reporting bugs.
[Apache 2.0 licence](LICENSE) · [Attribution](NOTICE) · [Cite Agent Trace](CITATION.cff)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues