CLI Reference¶
Complete reference for all AgentProbe command-line commands.
Global Options¶
agentprobe init¶
Initialize a new AgentProbe configuration file.
| Option | Short | Default | Description |
|---|---|---|---|
--output |
-o |
agentprobe.yaml |
Output file path |
Example:
agentprobe test¶
Discover and run agent test scenarios.
| Option | Short | Default | Description |
|---|---|---|---|
--config |
-c |
Auto-detect | Path to config file |
--test-dir |
-d |
From config | Directory containing test files |
--pattern |
-p |
test_*.py |
Glob pattern for test files |
--parallel |
Run tests in parallel | ||
--sequential |
Run tests sequentially |
Examples:
agentprobe test
agentprobe test -d tests/agent_tests/
agentprobe test -p "check_*.py"
agentprobe test --parallel
agentprobe test -c custom-config.yaml -d tests/ --parallel
agentprobe trace¶
Inspect and manage execution traces.
agentprobe trace list¶
List recorded traces.
| Option | Short | Default | Description |
|---|---|---|---|
--config |
-c |
Auto-detect | Path to config file |
--agent |
-a |
All agents | Filter by agent name |
--limit |
-n |
20 |
Maximum traces to show |
Examples:
agentprobe trace show¶
Show details for a specific trace.
| Argument | Description |
|---|---|
TRACE_ID |
The trace identifier |
| Option | Short | Default | Description |
|---|---|---|---|
--config |
-c |
Auto-detect | Path to config file |
Example:
Output includes: trace ID, agent name, model, input/output text, token counts, latency, tags, timestamps, and tool call details.
agentprobe safety¶
Run safety scans against agents.
agentprobe safety scan¶
Run safety test suites.
| Option | Short | Default | Description |
|---|---|---|---|
--suite |
-s |
All configured | Suite names (repeatable) |
--severity |
All | Filter by severity level |
Examples:
agentprobe safety list¶
List available safety test suites.
agentprobe cost¶
Track and manage execution costs.
agentprobe cost report¶
Generate a cost report.
| Option | Short | Default | Description |
|---|---|---|---|
--agent |
-a |
All | Filter by agent name |
--format |
-f |
terminal |
Output format |
agentprobe cost budget¶
Check budget status.
| Option | Short | Default | Description |
|---|---|---|---|
--max-cost |
From config | Maximum cost in USD | |
--max-tokens |
None | Maximum token count |
agentprobe baseline¶
Manage regression testing baselines.
agentprobe baseline list¶
List all saved baselines.
| Option | Short | Default | Description |
|---|---|---|---|
--dir |
-d |
.agentprobe/baselines |
Baselines directory |
agentprobe baseline save¶
Create a new baseline from the latest test run.
| Option | Short | Default | Description |
|---|---|---|---|
--dir |
-d |
.agentprobe/baselines |
Baselines directory |
agentprobe baseline delete¶
Delete a saved baseline.
| Option | Short | Default | Description |
|---|---|---|---|
--dir |
-d |
.agentprobe/baselines |
Baselines directory |
agentprobe snapshot¶
Manage trace snapshots for golden-file testing.
agentprobe snapshot list¶
List all saved snapshots.
| Option | Short | Default | Description |
|---|---|---|---|
--dir |
-d |
.agentprobe/snapshots |
Snapshots directory |
agentprobe snapshot delete¶
Delete a saved snapshot.
agentprobe snapshot diff¶
Show diff information for a snapshot.
agentprobe metrics¶
View metric data and summaries.
agentprobe metrics list¶
List available metrics.
agentprobe metrics summary¶
Show metric summary statistics.