/agent-strace:agent-stracefrom AgentTrace
Traces and investigates Claude Code, Copilot CLI, or Codex sessions. Captures activity, replays sessions, explains decisions, diagnoses repeated tool calls, inspects cost, audits recordings, and reviews PRs with evidence.
Ships in AgentTrace. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use the local agent-strace executable. The plugin contributes lifecycle hooks,
but the Python package must also be installed and available on PATH.
Run agent-strace --version. If it is unavailable, stop and provide one of:
uv tool install agent-strace
pip install agent-strace
Do not silently substitute another tracing tool.
Installed plugin hooks automatically record new Claude Code, Copilot CLI, or
Codex sessions to .agent-traces/. Codex runs plugin hooks only after the user
reviews and trusts them in /hooks, and again after each plugin update; until
then it records nothing. Do not also install provider-specific manual hooks
with a different redaction mode because both handlers can run. With the Codex
plugin, do not run agent-strace setup --cli codex at all: Codex runs the same
command from both sources, so every event would be recorded twice.
Choose the smallest command set that answers the request:
agent-strace list
agent-strace inspect <session-id>
agent-strace replay <session-id>
agent-strace explain <session-id>
agent-strace timeline <session-id>
agent-strace why <session-id> <event-number>
agent-strace lint <session-id>
agent-strace audit <session-id>
agent-strace cost <session-id>
agent-strace diff <session-a> <session-b>
agent-strace compare <session-a> <session-b>
Resolve an omitted session ID with agent-strace list. Prefer text output for
interactive analysis and JSON only when structured processing is necessary.
Report exact session IDs and event numbers for material findings.
Check what the sessions linked to this branch did and did not prove, and put the result in the PR body:
agent-strace review --format markdown
It reports rationale, scope, validation, stewardship, and evidence health from
captured evidence only: validation counts checks run inside the session, not
CI results, and no LLM writes or judges any of it. Paste the output as
printed. If a finding is missing or partial, fix the gap or say why in the
PR.
If CI runs the agent-trace Action with review, publish the findings for it
after the last commit, and push the note when you push the branch:
agent-strace review --publish-note
git push origin refs/notes/agent-strace
The trace directory stays local. The note holds the findings, session IDs and event hashes, not prompts or tool content. CI shows its findings as reported by your machine.
Before handing evidence to a reviewer, preview what the packet would include, then write it:
agent-strace share --dry-run
agent-strace share
share uses the latest session; pass an ID from a Session: line of
agent-strace review to pick another. The packet is written to
session-<id>.html and omits prompts, responses, commands, paths, and tool
values. Do not commit it. Never paste raw prompts or tool output into the PR.
why or clearly label the
conclusion as an inference.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub siddhant-k-code/agent-trace --plugin agent-straceOther plugins' skills for the same job