Claude Code
stable/ca:featureNot available on Claude Code
Marketplace install, native plugin agents, hook trust flow, and optional rich statusline.
Install for Claude CodeGoverned autonomy for serious repositories
codeArbiter is an open-source governance layer for AI coding agents. It gives Claude Code, Codex, and Pi repository-owned hard gates for tests, reviews, security checks, decisions, audit trails, and durable project context.
You decide. codeArbiter enforces.
One command through the machine
The agent tries to stage everything, the shell gate refuses it with H-03, the refusal is logged in your repository, and the narrowed change ships through a pull request you approve.
Step 1:You ask for an outcomeIllustrative
You describe the change you want. The agent loop turns it into tool calls.
Step 2:The agent reaches for the shellIllustrative
The model proposes git add -A, staging every change at once.
$ git add -AStep 3:The gate runs firstIllustrative
Before the shell runs anything, the host hands the call to codeArbiter's shell gate, pre-bash.py.
Step 4:BLOCKED [H-03]Captured output
The gate refuses with exit code 2. The command never runs, so nothing is staged.
BLOCKED [H-03]: 'git add -A' / 'git add .' / 'git add --all' / 'git add -u' are prohibited. Stage files explicitly (commit-gate skill).Step 5:The refusal is written downCaptured output
The block is appended to .codearbiter/gate-events.log, inside your repository.
[2026-07-30T13:34:06Z] BLOCK [H-03] host=claude hook=pre-bash.py | 'git add -A' / 'git add .' / 'git add --all' / 'git add -u' are prohibited. Stage files explicitly (commit-gate skill).Step 6:The agent narrows the changeIllustrative
Following the message, the agent stages the one file by name. The gate allows it.
$ git add note.txtStep 7:You approve the mergeIllustrative
The change goes through the governed commit and a pull request. Merging stays your decision.
pre-bash.py, captured on 2026-07-30 by sending it the command in step 2 directly in a disposable test repository. Steps 1, 2, 3, 6 and 7 are illustrative.The trace above is drawn. This is the hook itself: its real output for the same command, captured by running the shipped pre-bash.py in a disposable test repository, with the exact text it printed one click away.
What a block looks like
The agent tries git add -A. The hook refuses.
Attempted tool call git add -A
BLOCKED [H-03]: 'git add -A' / 'git add .' / 'git add --all' / 'git add -u' are prohibited. Stage files explicitly (commit-gate skill).
Exit 2 · command not executed · no staged files
Audit side effect The block appended an H-03 event to .codearbiter/gate-events.log.
Capture source plugins/ca/hooks/pre-bash.py at SHA-256 b2cf1a875a6ec0aa4c36e59bfdc2c9f64a81a70dcc901a5bbc46465b087e4873 (b2cf1a875a6e).
Published-artifact applicability Replay source applies to the exact latest published ca artifact: v3.8.9 at 3f1bd13762ed.Replay digest applies to both the current hook source and the exact latest published ca artifact source. Read the complete release applicability record.
Evidence boundary This directly invoked the shipped hook with the host payload shape. It does not prove a host discovered or registered that hook.
The real output of the shipped pre-bash.py hook, rendered as a faithful replay. The command never ran. The replay checks the hook itself, not host discovery or registration; the quickstart’s doctor probe checks your installed host end to end.
The model sits at the center. The guard ring surrounds it, the lanes carry your work around it, and the record remembers what happened. Tour it in 3D, watch an agent session move through it, or try the labs.
Ask for the outcome. codeArbiter routes it to the lane that owns it, applies the gates the change needs, and ships through a pull request you approve. How gated lanes work.
Hooks run before shell and write calls. A blocked call never runs, whatever the model remembers.
See what is enforcedSpecs, plans, decisions, tasks and audit logs live in .codearbiter/, so they move with the code and between hosts.
Overrides, autonomous decisions and review findings are written down, so you can audit a range later instead of reconstructing it.
See the audit modelEach lane carries its own stops. The line under each card is the lane’s route as the machine traces it: steel moves the work along, gold waits on a gate or on you, green passes, red fails first or refuses.
/ca:featureTurn an idea into an approved spec, test-first implementation, and reviewed PR.
/ca:fixStart from a reproduction, prove the regression, and make the smallest verified fix.
/ca:sprintApprove the target once, then let SMARTS-scored decisions drive the plan to a PR.
/ca:add-depReview license, provenance, and known vulnerabilities before installation.
/ca:adrCapture a numbered, user-attributed decision with its governed paths and supersession chain.
Grouped referenceSearch the source-backed command, skill, agent, and hook-gate reference.
One policy core and one shared record. Each host keeps its own command spelling.
/ca:featureNot available on Claude Code
Marketplace install, native plugin agents, hook trust flow, and optional rich statusline.
Install for Claude Code$ca-featureNot available on Codex
The same enforcement decisions and state through Codex-native skills and hook verdicts.
Install for Codex/ca-featureNot available on Pi
Feature Forge preview with an npm convenience channel, pinned Git tags for reproducibility, project trust, a rich footer, and supervised child dispatch.
Install the Pi previewExact differences: the compatibility matrix and the dated Claude Code + Codex verification record.
Install for one host, opt the repository in, then run the live doctor probe. Open source under AGPL-3.0-only; enforcement runs locally.
See it working first: the product tour follows one change from requirement to plan, the 3D machine shows every part at once, and Arbiter Academy adds hands-on practice. No telemetry service is required for enforcement; disable one repository or uninstall completely with the state implications documented.