Terminal demo
A captured session from a fresh build. Every block is the real output of the command above it.
The recording below is rendered by scripts/media/render.sh from scripts/media/demo.sh, and a test replays each command in it against the built binary.

$ ./target/debug/westering detect --trace examples/looping_trace.json
{
"detections": [
{
"detail": "call pattern of length 1 repeated 4 times with no progress",
"evidence_span": {
"end_step": 4,
"start_step": 1
},
"pattern": [
"grep(pattern=config, path=src)"
],
"shape": "looping",
"trace_id": "trace-loop-001"
}
],
"trace_id": "trace-loop-001"
}
$ ./target/debug/westering detect --trace examples/logs/claude_code_session.jsonl --format auto
{
"detections": [
{
"detail": "tool Grep made 4 of 4 calls with no progress while Glob, Read went unused",
"evidence_span": {
"end_step": 6,
"start_step": 3
},
"pattern": [
"Grep"
],
"shape": "tool_fixation",
"trace_id": "claude_code_session"
}
],
"trace_id": "claude_code_session"
}
$ ./target/debug/westering intervene --scenario loop-needs-subtask | grep -E '"(at_step|rung|cleared_by|outcome)"'
"cleared_by": "smaller_subtask",
"at_step": 2,
"rung": "nudge"
"at_step": 5,
"rung": "sharper_prompt"
"at_step": 8,
"rung": "smaller_subtask"
"outcome": "cleared",
$ sh examples/check.sh
examples/looping_trace.json matches examples/looping_detections.json
examples/fixation_trace.json matches examples/fixation_detections.json
examples/bring_your_own_trace.json matches examples/bring_your_own_detections.json
examples/logs/openai_chat.json matches examples/logs/openai_chat_detections.json
examples/logs/codex_session.jsonl matches examples/logs/codex_session_detections.json
examples/logs/claude_code_session.jsonl matches examples/logs/claude_code_session_detections.json
scenario fixation-clears-on-nudge matches examples/scenarios/fixation-clears-on-nudge.json
scenario loop-clears-on-nudge matches examples/scenarios/loop-clears-on-nudge.json
scenario loop-needs-fork matches examples/scenarios/loop-needs-fork.json
scenario loop-needs-sharper matches examples/scenarios/loop-needs-sharper.json
scenario loop-needs-subtask matches examples/scenarios/loop-needs-subtask.json
scenario loop-never-clears matches examples/scenarios/loop-never-clears.json