← Methodology library
Methodology · AI Coder Mode

Deploy verification for AI-coded software.

AI Coder Mode is a terminal output format designed for developers whose primary workflow is Claude Code / Cursor / Aider / Zed — i.e. anyone whose "terminal" is an AI agent's tool-call output, not a literal terminal. Pass --ai to any pqcheck subcommand and the output transforms into a three-layer artifact: a banner, a body, and a structured CIPHERWAKE_AI_GUARD_RESULT block that your AI coworker parses to decide pass / review / block.

What we measure

AI Coder Mode doesn't change what we measure — it changes how the existing measurements surface to AI coders. The underlying scan (DBR scoring, Trust Diff, Preview Trust Diff, deploy check) is unchanged. The output is reshaped into:

  1. Top banner — un-missable one-line summary: ◆ cipherwake · KIND · STATUS · domain · DBR X.X · severity · ship_decision=.... Color-coded green / yellow / red.
  2. Body — top finding + why it matters + concrete next action. Capped at ~12 lines so it doesn't bury the chat scrollback.
  3. Footer block — a machine-readable CIPHERWAKE_AI_GUARD_RESULT … END_CIPHERWAKE_AI_GUARD_RESULT block with stable key=value lines. AI agents grep between the markers and parse deterministically.

How we measure it

The three layers are generated client-side in cli/bin/pqcheck.js. The underlying API responses are unchanged — only the CLI rendering changes. Specifically:

AI Coder Mode also writes ~/.config/cipherwake/last-scan.json on every invocation. This file feeds the optional cipherwake-statusline script (v0.16.0) for persistent ambient state in your AI coder's status line.

How it scores: the ship_decision field

The ship_decision field is the single primitive your AI coworker routes on. It's not a severity rating; it's an action recommendation:

Exit codes are ship_decision-aware only when --ai is set. Classic exit codes (threshold breach = 2) are preserved for non-AI mode so existing CI pipelines don't break.

What this tool does NOT claim

The most important section of any Cipherwake methodology page. Things AI Coder Mode is NOT:

Limitations + edge cases

Try it

npx pqcheck cipherwake.io --ai
npx pqcheck trust-diff cipherwake.io --baseline last-week --ai
npx pqcheck preview-diff \
  --preview https://your-preview.vercel.app \
  --production https://cipherwake.io --ai
npx pqcheck deploy-check cipherwake.io --ai

Pass --ai or --agent — they're synonymous. The footer block can be parsed by your AI coworker with a single grep:

npx pqcheck cipherwake.io --ai \
  | awk '/^CIPHERWAKE_AI_GUARD_RESULT$/,/^END_CIPHERWAKE_AI_GUARD_RESULT$/' \
  | grep '^ship_decision='