CLI Reference¶
LongTracer installs a longtracer command for verification and trace inspection.
longtracer check — Verify from the command line¶
Output:
✗ FAIL trust=0.50 hallucinations=1
0/1 claims supported, 1 hallucination(s) detected.
✗ The Eiffel Tower is in Berlin. [HALLUCINATION]
↳ source: The Eiffel Tower is in Paris.
Options¶
| Option | Description |
|---|---|
--json |
Output results as JSON |
--threshold 0.7 |
Set verification threshold (default: 0.5) |
JSON output¶
{
"verdict": "FAIL",
"trust_score": 0.5,
"summary": "0/1 claims supported, 1 hallucination(s) detected.",
"hallucination_count": 1,
"claims": [...]
}
Commands¶
longtracer view¶
List recent traces:
View a specific trace¶
View the most recent trace¶
Export to JSON¶
Export to HTML report¶
Options¶
| Option | Description |
|---|---|
--id <trace_id> |
View a specific trace by ID |
--last |
View the most recent trace |
--project <name> |
Filter traces by project name |
--limit N |
Max number of traces to list (default: 10) |
--export <trace_id> |
Export trace to JSON file |
--html <trace_id> |
Export trace to self-contained HTML report |
HTML Report¶
The HTML report is a self-contained single file with:
- Summary cards: verdict, trust score, total duration, claim count
- Waterfall timeline of all pipeline spans
- Per-claim verification table with scores and source evidence
- No external dependencies — works offline
Environment Variables¶
The CLI respects the same environment variables as the SDK: