Skip to content
Edit this page

agent-trace

Before you merge an agent's pull request, see what its session did and did not prove.

agent-trace records Claude Code, Copilot CLI, Codex, Gemini CLI and Cursor sessions as local traces. review then checks a branch against them for rationale, scope, validation, stewardship and evidence health. It runs no model and has no runtime dependencies.

Install

uv tool install agent-strace
# Or --cli claude, codex, gemini or cursor
agent-strace setup --cli copilot

Get started covers pipx and pip, each agent's setup, and your first session. The command reference lists every flag.

Start: review an agent pull request

Share your use case

How do you review agent pull requests today? Choose your closest current use in the use-case poll. You can also reply with a question you want the docs to answer. Participation is optional.

Main use Start here
Review an agent-produced change PR evidence workflow
Debug an agent run Session replay and evidence health
Evaluate agents Evaluation command and limits
Integrate or export evidence Integrations and OTLP export

Still exploring? Choose the last poll option. Use public or synthetic examples in replies. Do not post private code, transcripts, customer information, or contact details. The poll and replies are public; voting and posting require a GitHub account. Voting or commenting does not opt you into outreach.

Capture

A review can only use what the agent's session recorded.

  • Setup: hook, proxy, and library capture paths.
  • Capture matrix: provider event coverage, verification status, and known gaps.
  • Live capture verification: local recorded-evidence verification for Claude Code and Codex.
  • Evidence health: what a trace could not prove, and external evidence from Entire, Copilot cloud agent commits, Claude Code session links, Assisted-by, Generated-by and agent co-author trailers, and Claude Code OpenTelemetry.
  • git-ai notes and Agent Trace records: line attribution other tools record, read by review and cognitive-debt. This project is not the Agent Trace spec.
  • Platform-team install: machine-wide, metadata-only capture through Copilot CLI policy hooks and Claude Code managed settings.

Provider guides:

Reference

Privacy and telemetry

  • Security: local data, redaction, authentication, and sharing boundaries.
  • Product telemetry: what the CLI and editor extension send, when sending starts, and how to turn it off.

Labs

Labs lists the commands that agent-strace --help does not show. They work as before. Run agent-strace labs to list them. Their pages:

Labs reports are review aids. They do not prove causation, task success, policy compliance, or complete provider capture.