Skip to main content

Module cli

Module cli 

Source
Expand description

clap surface (plan §3.1 + the positional-prompt addendum).

The prompt is the positional argument — the field convention (Claude Code’s -p/--print is a mode flag with the prompt positional; codex exec "…" likewise), and locode-exec is always headless so it needs no mode flag at all. - or omitted → read stdin (Codex’s convention).

Structs§

Cli
Minimal headless runner for the locode engine: one JSON report on stdout (ADR-0009), diagnostics on stderr, exit code from the run’s status.

Enums§

EffortArg
How hard the model should think. locode’s own ladder — each wire maps it onto whatever that API accepts, so the same word means the same intent whichever model is in use.
Harness
The registered harness packs (a closed set — clap validates and lists them).
OutputFormat
The stdout artifact selector (ADR-0014; Claude Code’s three-way shape).