ArkGate
Develop

Product repos · agents · CI

Integrate the gate. Keep main honest.

For developers wiring ArkGate into a product repository. Happy path first; power tools and full config on GitHub.

Default integration

Start, doctor, required status

npm install -D arkgate typescript
npx arkgate start --apply
npx arkgate-check --doctor
npx arkgate-check --root . --config ark.config.json --strict-merge

--strict-merge (or compatibility --strict) is the repository-wide hard boundary for every agent host—when the status is required.

Host write path

Honesty by host

Host Local write MCP Merge
Claude · Grok · Antigravity Hard PreToolUse when installed + trusted Advisory Required status
Codex · OpenCode Best-effort / advisory Advisory Required status
Cursor Advisory only Advisory Required status

Full matrix: Hosts page · ai-gates.md ↗

npx arkgate-check --install-agent-gates --tools claude,cursor,codex,grok
npx arkgate-check --install-agent-gates --tools antigravity,opencode

Full hardness matrix: Hosts.

Contract and placement

Config, preflight, dual labels

Prefer prepare/preflight before the host commits disk. Mechanical-safe patches only for proven kinds; ArkRules fixes are judgment. Skills must label residual [Layer] vs [ArkRules].

Brownfield and Shape

Align · Stabilize · Shape

  1. Align — contract matches reality (not false green)
  2. Stabilize — baseline freezes real debt; ratchet only new violations
  3. Shape — design residual (plan B), one pilot at a time, never silent codemod
npx arkgate-check --plan
npx arkgate-check --coverage
npx arkgate-check --doctor --json

Guide: brownfield-adoption.md ↗

Upgrade

Project-local, then doctor

npm install -D arkgate@latest
npx arkgate upgrade
npx arkgate-check --install-agent-gates --force

On brownfield Next with an older config: npx arkgate-check --migrate-contract --write. See 4.1.0 notes. Prefer project-local npx arkgate over a stale global ark.

Full develop doc: develop.md ↗ · Agent guide: agent-guide.md ↗