dokimi repo
usage: dokimi repo [-h]
{scan,inspect,fetch,reach,skill-reach,budget,run,report,compare,hits,security} ...
positional arguments:
{scan,inspect,fetch,reach,skill-reach,budget,run,report,compare,hits,security}
scan L0: check the links, paths, identifiers, commands and build labels the
guidance names against the same tree (repo_readiness.v1). No LLM call.
[free]
inspect Static inspection of what the tree offers an agent: instruction files and
their scope, ways to build and check a change, launch risks (hooks, MCP,
risky scripts), file inventory (repo_environment.v1). No manifest, no LLM
call, no repository build/test/script commands run. [free]
fetch Clone/fetch a pinned source and print its commit SHA [free]
reach L1 reach probe: run a harness on a token-seeded workspace and report which
guidance files it loads (guidance_reach.v1). Costs one cheap-model call
per scenario. [paid]
skill-reach Skill-discovery probe: place token-seeded SKILL.md fixtures (project, user
and client dirs, nesting, symlinks, name collisions, description formats)
in a fresh workspace and HOME and report which skills a harness lists
(skill_discovery.v1). Costs one cheap-model call per scenario. [paid]
budget What the repository puts into an agent's context when it starts at the
root: guidance files and their imports, the skill listing, lazily loaded
and on-demand files, in characters; warns on skills with no description
and no body text, skills with near-duplicate descriptions (identical, or
Jaccard index >= 0.5 after removing stop words when both have 3+ words),
AGENTS.md files a root CLAUDE.md, .claude/CLAUDE.md or CLAUDE.local.md
turns off, or one in the AGENTS.md file's own directory (Claude Code
rules), unreadable files (non-UTF-8, dangling link), and imports past the
harness's hop limit. No LLM call. [free]
run Run an agent per (task, arm, model, rep) in the image and grade each run;
one result.json per cell, already finished cells skipped [paid]
report Per (task, arm, model) table over a batch directory [free]
compare Treatment arms against a baseline arm, paired by task, over one or more
batch directories [free]
hits Judged recall over the credited pairs of dokimi:review_replay cells: a
judge's labels, and a sample of the pairs for a person to label [paid]
security Unsafe agent behaviour in a repo run batch (commands, secret reads,
egress, canary leaks), each arm against the baseline (no model call)
[free]
options:
-h, --help show this help message and exit
dokimi repo scan
usage: dokimi repo scan [-h] [--manifest MANIFEST] [--manifest-file MANIFEST_FILE]
[--static STATIC] [--typecheck] [--typecheck-tool {mypy,basedpyright}]
[--python-env PYTHON] [--out OUT] [--json] [--baseline FILE]
[--fail-on {fail}] [--cache-dir CACHE_DIR]
source
positional arguments:
source Repository source: a local directory (read as it is; in a git working
tree, files git ignores are left out), <dir>@<rev>, or <https-or-ssh-
url>@<rev> (cloned bare into the cache)
options:
-h, --help show this help message and exit
--manifest MANIFEST Manifest path relative to the repository root (default: .agent-eval/repo-
eval.yaml). With this flag, --manifest-file and the default path all
absent, the default guidance globs (AGENTS.md, CLAUDE.md, Copilot
instructions) are checked
--manifest-file MANIFEST_FILE
Read the manifest from this local file instead of from the tree, as if it
were at --manifest (for a repository that has not added it yet)
--static STATIC repo_static.v1 document the repository's `static` entry point wrote;
merged into the report, its claims replacing the framework's on the same
file, line and text. A file that cannot be read or is not JSON exits 2; a
schema-invalid document is reported and makes the command exit 1
--typecheck Type-check each Python fence of the guidance (§8.2): one claim per fence,
fail when the tool reports an error. The tool is mypy unless --typecheck-
tool names basedpyright (on PATH). mypy is not installed by pip install
dokimi: the tested pin is the one in requirements-test.txt; a missing mypy
exits 2. Without --python-env the fences are unknown (unresolved), not
checked
--typecheck-tool {mypy,basedpyright}
The tool --typecheck runs (default mypy). Needs --typecheck
--python-env PYTHON The repository's interpreter (a venv with its pinned dependencies
installed); the fences are checked against its site-packages. Needs
--typecheck
--out OUT Write the repo_readiness.v1 report to this file
--json Print cli_output.v1 on stdout (the full report under data)
--baseline FILE An earlier repo_readiness.v1 report (--out): --fail-on fail then fails
only on a claim that report does not also fail
--fail-on {fail} fail: exit 1 when any claim fails, an also_scan file is missing, a
guidance file or Bazel build input cannot be read, or no guidance file
matched (for a CI gate)
--cache-dir CACHE_DIR
Clone cache directory (default: $DOKIMI_REPO_CACHE or
~/.cache/dokimi/repos)
dokimi repo inspect
usage: dokimi repo inspect [-h] [--large-bytes LARGE_BYTES] [--index FILE] [--out OUT] [--json]
[--fail-on {warn,fail}] [--cache-dir CACHE_DIR]
source
positional arguments:
source Repository source: a local directory (read as it is; in a git working
tree, files git ignores are left out), <dir>@<rev>, or <https-or-ssh-
url>@<rev> (cloned bare into the cache)
options:
-h, --help show this help message and exit
--large-bytes LARGE_BYTES
A file above this many bytes is reported as large (default: 100000, ~30k
tokens)
--index FILE A SCIP code index of the tree (built by scip-python, scip-clang, ...):
adds the structure section (modules, reference fan-in, cross-tree bridges,
name ambiguity). Read besides the tree; exit 2 when it cannot be read or
none of its documents is a file of the tree
--out OUT Write the repo_environment.v1 report to this file
--json Print cli_output.v1 on stdout (the full report under data)
--fail-on {warn,fail}
fail: exit 1 when any finding has severity error, the top severity; warn:
also on severity warning (for a CI gate)
--cache-dir CACHE_DIR
Clone cache directory (default: $DOKIMI_REPO_CACHE or
~/.cache/dokimi/repos)
dokimi repo fetch
usage: dokimi repo fetch [-h] [--json] [--cache-dir CACHE_DIR] source
positional arguments:
source Repository source: a local directory (read as it is; in a git working
tree, files git ignores are left out), <dir>@<rev>, or <https-or-ssh-
url>@<rev> (cloned bare into the cache)
options:
-h, --help show this help message and exit
--json Print cli_output.v1 on stdout ({sha, git_dir} under data)
--cache-dir CACHE_DIR
Clone cache directory (default: $DOKIMI_REPO_CACHE or
~/.cache/dokimi/repos)
dokimi repo reach
usage: dokimi repo reach [-h] [--manifest MANIFEST] [--manifest-file MANIFEST_FILE]
[--harness HARNESS] [--model MODEL] [--from REACH_JSON] [--bin BIN]
[--out-dir OUT] [--scenarios SCENARIOS] [--only SCENARIO]
[--work-dir WORK_DIR] [--salt SALT] [--max-turns MAX_TURNS]
[--max-usd-per-cell X] [--timeout TIMEOUT] [--keep]
[--format {matrix,receipt}] [--dry-run] [--cache-dir CACHE_DIR]
source
positional arguments:
source Repository source: a local directory (read as it is; in a git working
tree, files git ignores are left out), <dir>@<rev>, or <https-or-ssh-
url>@<rev> (cloned bare into the cache)
options:
-h, --help show this help message and exit
--manifest MANIFEST Manifest path relative to the repository root (default: .agent-eval/repo-
eval.yaml). With this flag, --manifest-file and the default path all
absent, the default guidance globs (AGENTS.md, CLAUDE.md, Copilot
instructions) are checked
--manifest-file MANIFEST_FILE
Read the manifest from this local file instead of from the tree, as if it
were at --manifest (for a repository that has not added it yet)
--harness HARNESS Built-in profile name or a harness_profile.v1 YAML path (default: claude-
code)
--model MODEL Model string passed to the harness as it is (required unless --from)
--from REACH_JSON Read a saved reach.json instead of probing: no harness runs, no cost. The
source is still read, to check the file's repository, harness and sha; the
receipt goes beside the file
--bin BIN Harness executable (default: the profile's `bin`)
--out-dir OUT Output directory: reach.json and traces/ (default: reach-out)
--scenarios SCENARIOS
Comma list of scenario kinds: root, cwd, read, bash, shadow (default:
root,cwd,read). bash cats each probe file through the Bash tool, for a
profile with a bash tool mode; shadow writes the profile's
guidance.shadow_file (CLAUDE.local.md for claude-code) for one scenario at
a time; a profile without one refuses it
--only SCENARIO Run only this scenario id (for example read=cpp); repeatable
--work-dir WORK_DIR Parent of the temporary workspace (default: the system temp dir). No
ancestor may hold guidance files.
--salt SALT Token salt (default: random per run)
--max-turns MAX_TURNS
Turn cap per scenario (default: 4)
--max-usd-per-cell X Per-scenario USD cap (default: 0.10)
--timeout TIMEOUT Per-scenario seconds (default: 300)
--keep Keep the temporary workspace
--format {matrix,receipt}
matrix: the table (default). receipt: print the effective-instructions/v0
receipt as JSON and write it to effective_instructions.json in --out-dir
(docs/repo-evaluation-contract.md §7.1)
--dry-run Print the files and the exact argv of every scenario; run no harness. It
makes the checks a run makes before its first harness call, so it builds
the workspace and removes it
--cache-dir CACHE_DIR
Clone cache directory (default: $DOKIMI_REPO_CACHE or
~/.cache/dokimi/repos)
dokimi repo skill-reach
usage: dokimi repo skill-reach [-h] [--harness HARNESS] --model MODEL [--catalogue CATALOGUE]
[--only CASE] [--bin BIN] [--out-dir OUT] [--work-dir WORK_DIR]
[--salt SALT] [--max-turns MAX_TURNS] [--max-usd-per-cell X]
[--timeout TIMEOUT] [--keep] [--dry-run]
options:
-h, --help show this help message and exit
--harness HARNESS Built-in profile name or a harness_profile.v1 YAML path (default: claude-
code); it needs a `skills` block and a `skills` tool mode
--model MODEL Model string passed to the harness as it is
--catalogue CATALOGUE
A skill_fixtures.v1 YAML (default: the built-in repos/skill_fixtures.yaml)
--only CASE Place only this case id; repeatable
--bin BIN Harness executable (default: the profile's `bin`)
--out-dir OUT Output directory: skill-discovery.json and skill-traces/
--work-dir WORK_DIR Parent of the temporary fixture (default: the system temp dir). No
ancestor may hold guidance or a skills dir.
--salt SALT Token salt (default: random per run)
--max-turns MAX_TURNS
--max-usd-per-cell X Per-scenario USD cap (default: 0.10). Refused for a harness with no spend-
cap flag (codex, copilot): the timeout is their only bound
--timeout TIMEOUT Per-scenario seconds
--keep Keep the temporary fixture
--dry-run Print the cases, scenarios and argv; run nothing
dokimi repo budget
usage: dokimi repo budget [-h] [--harness HARNESS] [--out OUT] [--json] [--fail-on {warn}]
[--cache-dir CACHE_DIR]
source
positional arguments:
source Repository source: a local directory (read as it is; in a git working
tree, files git ignores are left out), <dir>@<rev>, or <https-or-ssh-
url>@<rev> (cloned bare into the cache)
options:
-h, --help show this help message and exit
--harness HARNESS Built-in profile name or a harness_profile.v1 YAML path; its guidance
names supply the file names, guidance.imports whether @ imports are
followed (not when null) and guidance.claude_displaces_agents the off
rules; root vs nested is Claude Code's (default: claude-code)
--out OUT Write the repo_budget.v1 inventory to this file
--json Print cli_output.v1 on stdout (the repo_budget.v1 inventory under data)
--fail-on {warn} warn: exit 1 when any warning is printed (for a CI gate)
--cache-dir CACHE_DIR
Clone cache directory (default: $DOKIMI_REPO_CACHE or
~/.cache/dokimi/repos)
dokimi repo run
usage: dokimi repo run [-h] [--manifest MANIFEST] [--suite SUITE] [--allow-floating-suite-revs]
[--manifest-file MANIFEST_FILE] [--task TASK] [--image IMAGE]
[--rebuild-image] [--build-network BUILD_NETWORK] [--timeout [PHASE=]SEC]
[--cache NAME=DIR] [--cache-root CACHE_ROOT] [--source-dir SOURCE_DIR]
[--concurrency N] [--docker DOCKER] [--cache-dir CACHE_DIR] --arm ARM
--model MODEL [--reps REPS] --name NAME [--out-dir OUT] [--harness HARNESS]
[--bin BIN] [--agent-network {host,bridge}] [--tools TOOLS]
[--delegation {native,none}] [--max-turns MAX_TURNS] [--probes FILE]
[--candidates FILE] [--max-usd-per-cell X] [--max-usd X] [--force]
[--label-host | --no-label-host]
source
Exit 2 for a source that does not parse (a path that is not a directory, an unpinned remote), a
pinned local path inside a repository (give its root) or a --cache-dir that is not a usable
directory (so is a $DOKIMI_REPO_CACHE, without the flag), or a --cache-root or --cache that is not
one; exit 1 for a source that cannot be opened (clone, fetch, revision) and for a cell that
crashed or an incomplete batch; exit 3 when the batch budget alone left cells not started.
positional arguments:
source Repository source: a local directory (read as it is; in a git working
tree, files git ignores are left out), <dir>@<rev>, or <https-or-ssh-
url>@<rev> (cloned bare into the cache)
options:
-h, --help show this help message and exit
--manifest MANIFEST Manifest path relative to the repository root
--suite SUITE Suite manifest (suite_manifest.v1) path relative to the repository root:
tasks whose base is a commit of another repository, named as <url>@<sha>
(contract §2.1)
--allow-floating-suite-revs
Let --suite name a branch or tag: it is resolved once, when the run
starts, and the batch pins the commit it resolved to
--manifest-file MANIFEST_FILE
Read the manifest from this local file instead of from the tree
--task TASK Only this task id; repeatable (default: all)
--image IMAGE Use this image instead of building one from the eval tree
--rebuild-image Build the image even if the tag exists
--build-network BUILD_NETWORK
docker build --network (for example host, behind a local proxy)
--timeout [PHASE=]SEC
Seconds per phase: a bare SEC is the agent run (solve, default 2700,
unless task.json sets timeout_s); build=SEC the image build (default
10800, 3 hours); verify=SEC each grade or oracle run (default 3600)
--cache NAME=DIR Host directory for the manifest cache NAME; repeatable
--cache-root CACHE_ROOT
Parent of cache directories without --cache (default:
~/.cache/dokimi/caches/<repo id>)
--source-dir SOURCE_DIR
Full-history clone mounted as {source_dir} (default: the source's own git
dir)
--concurrency, -j N Parallel tasks or cells (default 1)
--docker DOCKER docker CLI (default: docker)
--cache-dir CACHE_DIR
Clone cache directory (default: $DOKIMI_REPO_CACHE or
~/.cache/dokimi/repos)
--arm ARM guidance:none | guidance:raw | guidance:bridge | guidance:as-skill |
guidance:overlay (the base with the AGENTS.<agent>.md of the harness only)
| guidance:format=xml | guidance:rev:REV (the base with the guidance files
of revision REV of the source; the arm is named by REV's full SHA,
resolved once per batch) | patch:FILE (a unified diff on this host,
applied with git apply on top of guidance:raw; named patch:<file
name>@<sha256 prefix>, path and sha256 in meta.json) | skill:<dir> |
skill-catalog:<dir> (skills installed in the workspace; a relative dir is
in eval_dir; named by the directory, not the path). A guidance part and
skills join with + (guidance:none+skill:skills/x); repeatable or comma-
separated
--model MODEL Model string passed to the harness as it is; repeatable
--reps REPS
--name NAME Batch name: cells go to <out-dir>/<name>/ (a batch's directory is its
name)
--out-dir OUT Parent of batch directories (default: repo-runs)
--harness HARNESS Built-in profile name or profile YAML path
--bin BIN Harness executable on this host, mounted read-only into the agent's
container (default: the profile's `bin` on PATH)
--agent-network {host,bridge}
REQUIRED while the egress proxy is not implemented: the agent's container
gets this network, so its commands can reach any host. Recorded in
meta.json
--tools TOOLS Profile tool mode (default: all)
--delegation {native,none}
native: the agent may start subagents (default); none: the profile's tool
arguments without the subagent tools, for a single-agent baseline
--max-turns MAX_TURNS
Unless task.json sets max_turns (default 200)
--probes FILE YAML or JSON: target -> probe patterns, over the manifest's `probes`
(default: the framework's list; contract §4.1)
--candidates FILE YAML or JSON: candidate id -> install/import/use/remove names; adds choice
events (contract §4.1)
--max-usd-per-cell X USD cap per agent run unless task.json sets budget_usd (default 2.0)
--max-usd X Start no new cell once the batch has spent this much, earlier invocations
included (and the budgets of the cells in flight)
--force Rerun cells that already have result.json
--label-host, --no-label-host
Run a task whose task.json `host` requirements this host misses anyway,
and record per field what was met and what was not (host_match in
result.json) instead of marking the cells unsupported; results carry the
host fingerprint, so `repo report` groups them by it. Default: the
manifest's label_host (off); --no-label-host overrides a manifest that
sets it
dokimi repo report
usage: dokimi repo report [-h] [--json] [--hits] batch_dir
positional arguments:
batch_dir <out>/<batch> of `repo run`
options:
-h, --help show this help message and exit
--json Print cli_output.v1 on stdout (the summary under data)
--hits Instead of the table: each (thread, finding) pair that credited a
dokimi:review_replay thread, by task, arm, model and rep (grade.json
details.matches)
dokimi repo compare
usage: dokimi repo compare [-h] --baseline BASELINE [--arm ARM] [--model MODEL] [--task TASK]
[--metric METRIC] [--pass-k K] [--path-stability] [--ledger FILE]
[--json]
batch_dirs [batch_dirs ...]
positional arguments:
batch_dirs <out>/<batch> directories of `repo run`
options:
-h, --help show this help message and exit
--baseline BASELINE Baseline arm: ARM, or BATCH/ARM to take it from one batch only
--arm ARM Treatment arm (ARM or BATCH/ARM); repeatable or comma-separated (default:
every other arm)
--model MODEL Only this model; repeatable
--task TASK Only this task id; repeatable (default: every task of the batches)
--metric METRIC Also compare this numeric or boolean grade.json metric, or
judge:recall_judged from each cell's hits_judged.json (repo hits judge);
repeatable
--pass-k K Also compare pass^K: the chance K cells of a task all pass its gate
--path-stability Also compare path_distance: how much the tool paths of a task's cells
differ
--ledger FILE Also give each guidance rule of this repo_ledger.v1 file a verdict (keep,
review or insufficient-evidence) from its linked cases, against its
baseline (dokimi/docs/rule-ledger.md)
--json Print cli_output.v1 on stdout (the comparison under data)
dokimi repo hits
usage: dokimi repo hits [-h] {judge,sheet} ...
positional arguments:
{judge,sheet}
judge Label each credited (thread, finding) pair same point, related or unrelated with
a judge model, reading the full texts; write <cell>/hits_judged.json with
recall_judged (<= recall) [paid]
sheet Write a JSON list of credited pairs with their full texts and `label: null` for a
person to label, N per arm and answer model (no LLM) [free]
options:
-h, --help show this help message and exit
dokimi repo hits judge
usage: dokimi repo hits judge [-h] --judge PROVIDER/MODEL [--labels FILE] [--max-usd X]
[--dry-run] [--json]
batch_dir
positional arguments:
batch_dir <out>/<batch> of `repo run`
options:
-h, --help show this help message and exit
--judge PROVIDER/MODEL
The judge; refused when it runs the model of any answer of the batch
--labels FILE A `repo hits sheet` file with `label` filled in: report agreement and
Cohen's kappa per arm and answer model between the person and the judge
--max-usd X Start no new judge call once this much has been spent (exit 3 if a cell
was left); after a judge reply with no known price no further call starts,
since the cap cannot be enforced (drop --max-usd to run unmetered)
--dry-run Count the pairs and estimate the cost at list price; make no call
--json Print cli_output.v1 on stdout (the summary under data)
dokimi repo hits sheet
usage: dokimi repo hits sheet [-h] --out FILE [--per-arm N] [--seed N] batch_dir
positional arguments:
batch_dir <out>/<batch> of `repo run`
options:
-h, --help show this help message and exit
--out FILE The sheet to write; refused (exit 2) when FILE holds a sheet with a label set or
cannot be read
--per-arm N Pairs per arm and answer model, all of theirs when they have fewer (default 25)
--seed N Seed of the draw: the same seed gives the same sheet (default 0)
dokimi repo security
usage: dokimi repo security [-h] --baseline BASELINE [--alpha ALPHA] [--canary VALUE]
[--canaries-file CANARIES_FILE] [--out OUT] [--fail-on {warn,fail}]
batch
positional arguments:
batch <out>/<batch> of `repo run` (its finished cell directories hold
result.json)
options:
-h, --help show this help message and exit
--baseline BASELINE The arm others are compared to, as `result.json` names it (e.g.
guidance:none, or patch:skill.patch@1a2b3c4d5e6f for a patch arm); an arm
no finished cell has is an error
--alpha ALPHA One-sided Fisher exact level for a non-critical class to fail an arm
(default 0.05)
--canary VALUE A fake secret the tasks planted (at least 12 characters); seen in a
command, edit, answer or egress row it is a critical leak. Repeatable
--canaries-file CANARIES_FILE
Canary values, one per line (# comments)
--out OUT Write the security_report.v1 artifact here
--fail-on {warn,fail}
Exit 1 when an arm fails (fail: a critical class seen at all, or another
class above the baseline at --alpha) or, with warn, also shows a class the
baseline never does; else 4 when a model has no baseline cell, and 3 when
any cell is unfinished or an arm has no measured cell