Install & CLI

PatchPilot keeps its AST localizer, anti-reward-hacking guard, snapshot sandbox, and JSON-RPC 2.0 stdio server in pure Python standard library modules, with FastAPI/Uvicorn wired in pyproject.toml for the Streamable HTTP gateway.

Install Options

v1.2.0
git clone https://github.com/codesphere-u/patchpilot.git
cd patchpilot && pip install -e ".[dev]"

CLI Subcommands

CommandDescription
patchpilot demo [--json]Creates a billing bug workspace, ranks 3 AST slices in 303 tokens, blocks an adversarial patch, and commits the clean fix.
patchpilot benchmark [--json]Runs the 50-file AST indexer, 25-scenario localizer, and 40-patch guard benchmark.
patchpilot audit-diff [file] [--json]Audits unified diff input from a path or stdin against RH001–RH008; exits 1 on violation.
patchpilot export-aegis [file] --task-id IDEmits canonical Nexus Aegis G5_ANTI_REWARD_HACK attestation with RFC 6962 0x00 leaf hash.
patchpilot serve-stdio / mcpRuns the JSON-RPC 2.0 stdio MCP server with optional --workspace path.
patchpilot serve-http --host 127.0.0.1 --port 8000Runs the local HTTP/SSE MCP server and developer portal.