dokimi trace
usage: dokimi trace [-h] {inspect,consistency,prefilter} ...
positional arguments:
{inspect,consistency,prefilter}
inspect Prompt size at every model call of a Claude Code stream-json trace: what
start-up loaded, how the history grew, compactions, which tool results
weighed most, failed and repeated tool calls. Several traces print as one
comparison table. [free]
consistency Repeated runs of one task, read from their stream-json traces: result
stability (success, pass@k, pass^k), path stability (tool mix JSD, order
and action edit distance, resource spread), strategy groups, and
conformance to an optional process contract. [free]
prefilter Which rules of an AGENTS.md or CLAUDE.md the sessions triggered, acted on
and were corrected on, read from Claude Code session logs: a ranked list
of candidates for ablation, not verdicts. No LLM call. [free]
options:
-h, --help show this help message and exit
dokimi trace inspect
usage: dokimi trace inspect [-h] [--window WINDOW] [--calls] [--json] traces [traces ...]
positional arguments:
traces `claude -p --output-format stream-json --verbose` output files
options:
-h, --help show this help message and exit
--window WINDOW Context window of the model in tokens; adds the peak's fill fraction
--calls Also give every call's token counts and every compaction event
--json Print cli_output.v1 on stdout (the summaries under data)
dokimi trace consistency
usage: dokimi trace consistency [-h] [--arm LABEL=GLOB] [--outcomes JSON] [--contract YAML]
[--threshold THRESHOLD] [--shell {split,call}] [--json]
[traces ...]
positional arguments:
traces Traces of one arm (or use --arm)
options:
-h, --help show this help message and exit
--arm LABEL=GLOB An arm to compare, e.g. no-skill='runs/base/*.jsonl'; repeatable. A
directory the glob cannot list is an error
--outcomes JSON Verifier verdicts, trace -> true/false; without it a run passes when the
harness ended cleanly, which is not task success
--contract YAML Process contract: named actions and rules (requires, forbids, before,
after_last, last_ok)
--threshold THRESHOLD
Max order distance of collapsed paths within one strategy (default 0.34)
--shell {split,call} split (default): one step per chained shell command, shell writes count as
edits; call: one step per tool call
--json Print cli_output.v1 on stdout (the profiles under data)
dokimi trace prefilter
usage: dokimi trace prefilter [-h] [--window WINDOW] [--min-sessions MIN_SESSIONS]
[--rare-max RARE_MAX] [--in-use-rate IN_USE_RATE] [--json]
guidance sessions [sessions ...]
positional arguments:
guidance The guidance file whose rules are measured (AGENTS.md, CLAUDE.md)
sessions Claude Code session logs (`~/.claude/projects/<project>/*.jsonl`); a
quoted glob expands
options:
-h, --help show this help message and exit
--window WINDOW Events either side of a trigger that count as acting on it, and after it
for a correction (default 10)
--min-sessions MIN_SESSIONS
Fewer sessions than this: no candidates are ranked (default 5)
--rare-max RARE_MAX A rule triggered in at most this many sessions is rare: listed, not ranked
(default 3)
--in-use-rate IN_USE_RATE
A rule triggered in at least this share of sessions is in use, not a
candidate (default 0.2)
--json Print cli_output.v1 on stdout (the full report under data)