Labs commands¶
The agent-strace job is this: before you merge an agent's pull request, see
what its session did and did not prove. agent-strace --help lists the commands for
that job: review, share and
cognitive-debt, and the capture and session commands
they need.
The commands on this page are labs: experimental or specialist commands outside that job. They keep their names, flags, output and exit codes, and print no warning unless they are deprecated. They are left out of the default help, and that is the only change.
List them with one-line help:
List every command, labs and plumbing included:
Plumbing¶
These stable commands are also left out of the default help, because other tools call them rather than people:
| Command | Called by |
|---|---|
hook |
Agent hook configs and the plugins |
pr-comment |
The GitHub Action, to post the review |
export |
Scripts that read sessions as JSON or NDJSON |
inspect |
Debugging capture |
tree |
Subagent trees, which share embeds |
annotate |
Notes that share puts in the packet |
validate |
Other tools that write traces in the public schema |
backfill-meta |
Repairing sessions so health and review can read them |
Capture without hooks¶
| Command | What it does |
|---|---|
record |
Record an MCP server session over stdio |
record-http |
Record a remote MCP server session over HTTP or SSE |
auto |
Run a command with auto-instrumentation for agent frameworks |
record and record-http proxy an MCP server. They write no prompt and no git
branch, so review can link their sessions to a pull request only by commit
time or as the latest session. For review, capture with
setup hooks instead.
Session analysis¶
| Command | What it does |
|---|---|
stats |
Session statistics |
timeline |
Chronological view of a session by phase |
diff |
Compare two sessions structurally |
why |
Trace the causal chain for one event |
compare |
Session-to-session regression report |
lint |
Bad behavior patterns in a session |
postmortem |
Structured postmortem for a failed session |
standup |
Plain-English summary of what the agent did. Deprecated: use explain |
Context and skills¶
| Command | What it does |
|---|---|
context-score |
Efficiency stats across AGENTS.md or CLAUDE.md versions |
skills |
Skill availability, loads and follow signals |
skills-eval |
Same as skills eval. Deprecated: use skills eval |
compaction |
Context compaction events |
token-budget |
Context window use for a session |
freshness |
How stale the agent context is since the last session |
config-watch |
AGENTS.md and config changes between sessions |
optimize |
Instruction file changes proposed from trace failures |
a2a-tree |
Agent-to-agent call graph for a session |
Evaluation and fixtures¶
| Command | What it does |
|---|---|
eval |
Score, compare and regression-test sessions |
score |
Review assignment bundle telemetry against a rubric |
baseline |
Build and check statistical session baselines |
freeze |
Freeze a session's tool-call sequence as a fixture |
regression |
Compare a session against a frozen fixture |
sample |
Export sessions as a JSONL regression suite |
drift |
Behavior drift across sessions |
fingerprint |
An agent's behavior profile |
Guardrails and security¶
| Command | What it does |
|---|---|
watch |
Monitor a live session with circuit breakers |
approval |
Human-in-the-loop approval requests |
audit |
Check session tool calls against a policy file |
audit-tools |
Which AI tools are active in a repository |
mcp-scan |
Runtime MCP tool poisoning indicators |
policy |
Generate and test .agent-scope.json policies |
verify |
Session or exported trace integrity |
identity |
Agent machine identity and session signing |
workspace |
Isolated workspaces |
Cost and reports¶
| Command | What it does |
|---|---|
cost |
Estimated token cost for a session |
budget-report |
Weekly spend digest across sessions |
team-report |
Cost by git author, branch or pull request |
dashboard |
Aggregate view across sessions |
oncall |
Agent-modified files you have not reviewed |
curve |
Personal cost-efficiency curve by task type. Deprecated |
inflation |
Tokenizer cost across model versions. Deprecated |
Collector, administration and compliance¶
| Command | What it does |
|---|---|
server |
Server-side event collector |
auth |
Sign in to a hosted collector with SSO |
rbac |
Role-based access control assignments |
apply |
Apply .agent-strace.yaml to a store or collector |
config-diff |
Drift between .agent-strace.yaml and the store |
tenant |
Report, export or delete tenant trace data |
retention |
Session data retention |
org-report |
Organization-wide usage and cost digest |
compliance |
Compliance report exports |
compliance-report |
Heuristic framework evidence crosswalk |
audit-readiness |
EU AI Act audit export readiness |
OpenTelemetry export (export --format otlp, --format otlp-genai and
--backend) is labs too, though export itself is plumbing. See
production.md.
Labs freeze¶
No new labs commands. The default help is for reviewing an agent's pull
request, and most returning installs still stop at replay and explain.
Until review use shows up in the real-installs cohort of
product telemetry, new work goes into the core commands, as a
flag or a subcommand, not into a new labs command. The maintainer lifts the
freeze based on that cohort.
A labs command can still move into the default help, or be deprecated as
described below. Before 1.0.0, the same cohort data decides which labs
commands are kept, moved into the default help or deprecated. stats and
watch are the first candidates to move.
What changes later¶
A labs command that is later deprecated prints a one-line warning on stderr, never on stdout, for at least two minor releases first. Nothing is removed before 1.0.0. The release notes announce each change.
Deprecated commands¶
These labs commands are deprecated and will be removed in 1.0.0. Each still
parses and runs as before, with the same flags, output and exit code.
agent-strace labs and agent-strace --help-all mark them (deprecated).
| Command | Use instead |
|---|---|
skills-eval |
agent-strace skills eval, the same command |
standup |
agent-strace explain |
curve |
No replacement |
inflation |
No replacement |
When one of them runs, it prints one line on stderr, never on stdout, so JSON output still parses:
Set AGENT_STRACE_NO_DEPRECATION=1 to leave the line out. skills eval, spelled
as two words, prints no line.