diagnose
Attribute the failure in a pre-captured trace to specific pipeline spans.Arguments
| Argument | Description |
|---|---|
trace_file | Path to a JSON file containing an AgentTrace (AgentTrace.to_dict()) |
Options
| Flag | Default | Description |
|---|---|---|
--score | (required) | Judge score for this trace (typically 0.0–1.0) |
--rubric | (required) | Path to a text file containing the evaluation rubric. Use - to read from stdin |
-m, --model | anthropic/claude-sonnet-4-5 | Model for attribution in provider/model format. Examples: anthropic/claude-sonnet-4-5, openrouter/qwen/qwen3-8b, openai/gpt-4o, ollama/qwen3:8b |
--method | all | Attribution method: critic, decomposition, ablation, or all |
--output | — | Write full Attribution JSON to this file |
--runner | — | Path to a Python file exporting runner and judge functions. Required for ablation |
--run-dir | .origin/ at repo root | Directory for run history and checkpoints |
--resume | false | Resume the latest interrupted run |
--resume-from | — | Resume a specific run by ID (e.g. 001) |
--version | — | Show version and exit |
Examples
Ablation runner file
When using--runner, the file must define two functions:
Output format
The render always goes to stdout:runs
List all past diagnostic runs with their status and token usage.Options
| Flag | Default | Description |
|---|---|---|
--run-dir | .origin/ at repo root | Run history directory |
Output
completed (green) or interrupted (yellow, resumable with --resume).