Skip to content

Governed autonomy for serious repositories

codeArbiter: hard gates for agentic coding.

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.

Claude CodeCodexPi preview

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.

  1. Step 1:You ask for an outcomeIllustrative

    You describe the change you want. The agent loop turns it into tool calls.

  2. Step 2:The agent reaches for the shellIllustrative

    The model proposes git add -A, staging every change at once.

    $ git add -A
  3. Step 3:The gate runs firstIllustrative

    Before the shell runs anything, the host hands the call to codeArbiter's shell gate, pre-bash.py.

  4. 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).
  5. 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).
  6. 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.txt
  7. Step 7:You approve the mergeIllustrative

    The change goes through the governed commit and a pull request. Merging stays your decision.

Steps 4 and 5 are the real output of the shipped 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.

Watch the shipped hook refuse a real command.

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.

See what is enforced, and where

What a block looks like

The agent tries git add -A. The hook refuses.

Shipped H-03 hook
Shipped hook · captured Jul 30, 2026
Read the exact invocation result

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.

Every gate, lane and record, as one machine.

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.

What changes when codeArbiter is active.

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.

  • It stops at the tool boundary

    Hooks run before shell and write calls. A blocked call never runs, whatever the model remembers.

    See what is enforced
  • The record lives in your repository

    Specs, plans, decisions, tasks and audit logs live in .codearbiter/, so they move with the code and between hosts.

    Explore the state store
  • Every bypass leaves a trail

    Overrides, autonomous decisions and review findings are written down, so you can audit a range later instead of reconstructing it.

    See the audit model

Start from the job in front of you.

Each 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.

Choose your host.

One policy core and one shared record. Each host keeps its own command spelling.

Claude Code

stable

/ca:feature

Marketplace install, native plugin agents, hook trust flow, and optional rich statusline.

Install for Claude Code

Codex

stable

$ca-feature

The same enforcement decisions and state through Codex-native skills and hook verdicts.

Install for Codex

Pi

preview

/ca-feature

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 preview

Exact differences: the compatibility matrix and the dated Claude Code + Codex verification record.

Put one repository under governed change.

Install for one host, opt the repository in, then run the live doctor probe. Open source under AGPL-3.0-only; enforcement runs locally.

Use it when

  • agents implement meaningful product work;
  • decisions and bypasses need attribution;
  • tests and reviews must be real stops;
  • the same project moves between supported hosts.

Skip it when

  • the code is a disposable one-hour experiment;
  • any process friction is unacceptable;
  • the repository cannot carry a checked-in state directory.

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.