Skip to content

Choosing a harness

A harness is the LLM driver — one way of calling a model. Every harness serves every runbook (the output schema is a parameter), so picking one is purely about how you want the model to run: which CLI/SDK, which auth, cloud or local. Select with --harness, env HARNESS, or config harness:; default pydantic.

You want…PickWhy
Zero-setup local reviewsclaudecodeDrives your claude CLI — subscription auth, git tools, explores beyond the diff
Predictable cost, deterministic runs (default)pydanticOne structured API call, no agentic wandering
The OpenAI/Codex stackcodexcodex exec in a sandbox, OAuth or API key
Local / offline modelspiOllama / LM Studio / vLLM via ~/.pi/agent/models.json — no API key, nothing leaves the machine
The Google / Antigravity stackagyDrives your agy CLI headlessly — its own login, native --json-schema, reads files beyond the inlined diff
HarnessInstallRuns viaAuthStatus
claudecode(core)single claude -p subprocesssubscription or ANTHROPIC_API_KEYstable
codexjunior[codex]single codex exec in sandboxOAuth or OPENAI_API_KEYstable
pydanticjunior[pydantic]single structured pydantic-ai callAPI key required (any value for a local server via OPENAI_BASE_URL)stable
pi(core)single pi --mode json subprocessprovider key, auth.json, or none (local models)stable
agy(core)single agy --print --output-format json --json-schema subprocessthe CLI’s own loginnew

junior config list harnesses shows what’s installed and ready on your machine; junior config env --harness X lists the exact env vars one needs.

Every harness does a single structured call and returns a validated instance of the runbook’s output schema. They differ in how the schema is enforced and whether the model can read repository files itself (file_access — see Glossary):

| | pydantic | claudecode | codex | pi | agy | |—|----------|-----------|-------|------------|----|--------| | file_access | False | True | True | False | True | True (read-only) | | File tools | read_file, list_dir, grep (Python) | Read, Grep, Glob, Bash(git…) (built-in) | Sandbox filesystem access | read, grep, find, ls (read-only) | built-in read tools (plan mode — no edits/shell) | | Output contract | Returns the schema instance directly | via --json-schema | via --output-schema | submit_review tool | Schema in system prompt + validated reply | Schema in prompt + validated reply |

The diff is inlined into the user message for every harness while it’s small (≤ 50k chars) — it’s the review’s primary evidence. file_access harnesses use their file tools for context beyond the diff, and for oversized diffs they read the files themselves instead.

Per-harness internals (subprocess flags, event parsing, error handling): Claude Code · Codex · Pydantic AI · Pi · Antigravity CLI. Writing your own is one file — Adding a harness.