Local ship gate for coding agents

One last check before you ship.

Preflight reads the change, finds grounded blockers, and returns a verdict your agent can act on. It runs locally and uses the coding CLI you already have.

terminal no account needed
npx @khosla/preflight
pi detected · reviewing git diff

The product

A verdict, not another wall of output.

Preflight collapses multiple model opinions, code context, and local verification into one calm decision surface.

preflight feat/reject-blank-names changes requested
should-fix 2/2 agree high confidence

No test covers the new error path.

src/greet.ts:2 · F1

The new throw path changes public behavior, but no test protects blank and whitespace-only names.

FixAdd one focused unit test before shipping.

src/greet.ts −1  +2
1export function greet(name: string) {
2- return "Hello, " + name;
2+ if (!name.trim()) throw new Error("blank name");
3+ return `Hello, ${name}`;
4}

The loop

From diff to decision in three passes.

Each stage removes noise and adds evidence, so the final result is short enough for a human and structured enough for an agent.

01 / Prove

Capture and run the change.

Staged, unstaged, and untracked files plus native typecheck, lint, test, and build evidence.

02 / Judge

Ground every finding.

Multiple CLIs agree behind one verdict, with confidence and exact hunks.

03 / Act

Return a clear gate.

Exit 0 means ship. Exit 2 includes fixable findings and delta re-review.

Setup

Use the harness already on your machine.

There is no preflight account or hosted control plane. Agent CLIs come first; direct APIs are optional.

pi
Default when installed.
claude
Uses your Claude Code session.
codex
Uses your Codex CLI session.
amp
Runs through Amp execute mode.
opencode
Uses the OpenCode run command.
anthropic
Optional API power-up.
start herev0.2.0
 npx @khosla/preflight
 npx @khosla/preflight doctor

# agent / CI mode
 npx @khosla/preflight --json --auto