Local code review tool for AI-generated changes
npx claudepluginhub winstanley-industries/preflightLocal code review tool for AI-generated changes
A local code review tool for AI-generated changes. Review diffs in the browser, comment on specific lines, and let your AI agent explain code and apply revisions — all before the work reaches formal review.
Preflight calls no LLM APIs. It exposes an MCP server that your existing AI agent (Claude Code, Codex, OpenCode, etc.) connects to, so the agent can participate in review conversations directly.
You (browser) <-> Preflight <-> MCP <-> Your AI Agent
macOS (Homebrew):
brew install winstanley-industries/preflight/preflight
Linux: Download a binary from GitHub Releases.
From source:
cargo build --release -p preflight-server
# Start the server (default port 3000)
preflight serve
# Start on a different port
preflight serve --port 8080
# Discard existing state and start fresh
preflight serve --fresh
Then open http://127.0.0.1:3000 in your browser.
The MCP server connects to a running preflight web server (default port 3000).
Via plugin (recommended):
claude plugin marketplace add winstanley-industries/preflight
claude plugin install -s user preflight@preflight
Via MCP manually:
claude mcp add --scope user --transport stdio preflight -- preflight mcp
Or add to .mcp.json:
{
"mcpServers": {
"preflight": {
"command": "preflight",
"args": ["mcp"]
}
}
}
Add to ~/.codex/config.toml (or .codex/config.toml in your project):
[mcp_servers.preflight]
command = "preflight"
args = ["mcp"]
Add to opencode.json:
{
"mcp": {
"preflight": {
"type": "local",
"command": ["preflight", "mcp"]
}
}
}
To use a non-default port, append "--port", "8080" to the args/command for any of the above.
Once configured, ask your AI agent to create a review:
"Send my changes to preflight for review"
"Create a preflight review"
The agent will create a review via MCP. Open the preflight UI to review diffs, leave comments, and ask questions. The agent can respond to your comments and submit revisions.
Tip: Ask your agent to monitor the review in the background so it responds to your comments automatically.
The plugin registers the MCP server and adds a /preflight:review slash command. Install it once and every Claude Code session will know how to participate in reviews without additional configuration.
claude plugin marketplace add winstanley-industries/preflight
claude plugin install -s user preflight@preflight
Running /preflight:review in Claude Code will:
preflight serve [OPTIONS] Start the web server (default command)
--port <PORT> Port to listen on [default: 3000]
--fresh Discard existing state and start fresh
preflight mcp [OPTIONS] Start the MCP stdio server
--port <PORT> Port of the running web server [default: 3000]
Rust (Axum) backend, Svelte 5 frontend, bundled into one binary via rust-embed.
Apache-2.0