Sharing Traces
Sharing via Agent Hooks
Automatically share agent sessions as an agent works.
Set up agent hooks only for selected agents with:
traces setup agents --hooksAgent hooks fire when:
- A session starts
- A prompt is submitted
- An agent completes
They track active traces in traces-active.json inside the git directory and upload traces in the background as the agent works.
Agent hooks are supported for Claude Code, Cursor, Codex, Copilot, Cline, OpenCode, Pi, Amp, OpenClaw, and Hermes.
To remove the agent integration (agent skills and agent hooks) from the current project, run:
traces remove agentsFor commit-to-trace links, also set up Git hooks.