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¶
- AI agent pull request evidence: the workflow, in CI with the GitHub Action or without CI in the pull request body.
- PR reviewability check: the five findings, how sessions are linked to a branch, the threshold, the Action, and its artifacts.
- Review PRs from Entire users:
grade the sessions in Entire checkpoints with
review --entire, in CI or a local clone, and import them forshareandcognitive-debt. - Share disclosure preview: what
shareputs in the evidence packet you hand to a reviewer, before it writes anything. - Cognitive debt and review coverage: how much agent-written code merged with review evidence, by repository or branch, and the report schema and badge.
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-byand agent co-author trailers, and Claude Code OpenTelemetry. - git-ai notes and Agent Trace records: line
attribution other tools record, read by
reviewandcognitive-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:
- Claude Code session replay and the Claude Code plugin
- OpenAI Codex trace viewer and verified capture and the OpenAI Codex plugin
- GitHub Copilot CLI observability and the Copilot CLI plugin
- Copilot cloud agent capture: partial, unverified repository hooks that stream events to a collector.
- GitHub Agentic Workflows runs: import a run's
aw_session.jsonl. - Setup: Gemini CLI and Cursor are also covered here.
Reference¶
- Command reference: every command and flag. Run
agent-strace --helpfor the core commands. - Action inputs and the Action section of the review guide.
- MCP client setup and published server metadata
- VS Code evidence review and the session evidence review schema it shares with the dashboard.
- Local review workflow
- Public trace schema and validator
- Maintainer release runbook: independent core and VS Code release lines, version parity, publishing, and recovery.
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:
- Export and integration: OTLP GenAI and OpenInference export, Telemetry.dev export and its limits, collector server, framework integrations, MCP trace recording and trace-reader server, Agent Evidence Corpus.
- Analysis: AGENTS.md and CLAUDE.md instruction compliance, instruction compliance benchmark, skill adoption, skill trigger evaluation, organization reporting.
- Other evidence handoff: compliance evidence crosswalk, assignment review.
Labs reports are review aids. They do not prove causation, task success, policy compliance, or complete provider capture.