repopilot — Claude Code plugin: what it does, how to install
repopilot takes a repository snapshot at session start and blocks the agent from finishing if it weakens tests or removes security checks.
no license ★ 1,596 updated 2026-10-29
/plugin marketplace add hashgraph-online/awesome-codex-plugins
/plugin install repopilot@awesome-codex-pluginsWhat repopilot does
The plugin captures project state when a session begins and runs a guard check when the agent attempts to stop. If the agent muted or deleted test cases, relaxed CI rules, added type suppressions, or piped unverified inputs into database queries, the hook exits with status code 2. The assistant receives exact file paths and line numbers so it must restore the checks or justify the modifications.
Everything operates through POSIX shell hooks, alongside a bundled MCP server and the review-session skill. Cached metadata lives in .repopilot/ and stays hidden from git status because paths are registered inside .git/info/exclude.
Execution requires the repopilot CLI version 0.24 or newer available on PATH. Hooks remain dormant outside Git repositories, and parallel agent tasks must run across separate Git worktrees to avoid overwriting the baseline snapshot.
What it helps with
- prevent coding agents from skipping or deleting test suites
- catch newly added linter or type suppressions before commit
- stop untrusted parameters from entering shell execution sinks
- audit automated edits locally without sending code to remote services
Example prompts for the agent
- Run
review-sessionto inspect recent edits - Show the repopilot audit report for weakened tests
- Restore removed authorization checks before wrapping up
How to install repopilot
Plugin marketplace
/plugin marketplace add hashgraph-online/awesome-codex-plugins/plugin install repopilot@awesome-codex-pluginsStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about repopilot
How to install repopilot in Claude Code?
Run both commands in sequence: first /plugin marketplace add hashgraph-online/awesome-codex-plugins, then /plugin install repopilot@awesome-codex-plugins.
What does repopilot do?
It baselines the repository at launch and prevents the coding agent from stopping if it bypassed tests, ignored linter errors, or removed security controls.
What are the prerequisites?
Install the repopilot CLI version 0.24 or higher with npm install -g repopilot or cargo install repopilot, and work within a Git-managed folder.