# repopilot

repopilot takes a repo snapshot at session start and checks it again before the agent stops. If tests, suppressions or CI gates got weaker, the session will not end quietly.

- hook · `type=hook` · Claude Code, Codex · ★ 1596 repo stars
- Author: Mykyta Stelmashenko
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/hashgraph-online/awesome-codex-plugins/tree/HEAD/plugins/MykytaStel/repopilot/hooks/codex-hooks.json
- Updated: 2026-10-29
- Security check: automated, 2026-11-16 (text and 2 script files) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/hooks/repopilot

## What it does

The hook has two jobs. `SessionStart` runs `snapshot.sh` to capture how the repository looks before the agent touches anything. `Stop` runs `guard.sh`, which compares the current state with that snapshot. If the agent weakened tests, slipped in suppressions or bypassed CI gates, the hook stops it. One signal, one stop. Everything runs locally, so the outcome is deterministic.

Because the snapshot happens at session start, the comparison is not against git history but against the state right before the agent began. This catches edits that have not been committed yet. The timeouts are generous: 60 seconds for the snapshot, 180 for the pre-stop review.

Installation for Claude Code means editing `.claude/settings.json`. The scripts live in `${CLAUDE_PLUGIN_ROOT}/scripts/`. If an agent removes a test to make a build pass, the hook blocks the session from wrapping up cleanly.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/settings.json` — The hooks block: event (PreToolUse, PostToolUse, Stop…) → command. Personal ones go to ~/.claude/settings.json

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/hashgraph-online/awesome-codex-plugins/tree/HEAD/plugins/MykytaStel/repopilot/hooks/codex-hooks.json

## When to use it
- detect when an agent removed or weakened tests
- catch suppressions added to silence errors
- stop CI gate bypasses before they get committed
- capture a repo snapshot before the session starts
- review the agent's output before the session ends

## Example prompts
- Start a session so repopilot takes a repo snapshot
- Stop the agent and check if it weakened any tests
- Review the repository state before finishing the session

## Similar
- [testing-strategies](https://affpapa.org/en/nevibecode/skills/rohitg00-testing-strategies.md) — skill · ★ 2858 repo stars
- [tech-debt-ci-review](https://affpapa.org/en/nevibecode/skills/zaxbyhub-tech-debt-ci-review.md) — skill · ★ 539 repo stars
- [rea-ci-tests-audit](https://affpapa.org/en/nevibecode/skills/rea-ci-tests-audit.md) — skill · ★ 71 repo stars
- [test-automation-orchestrator](https://affpapa.org/en/nevibecode/commands/test-automation-orchestrator.md) — command · 350 installs
- [husky](https://affpapa.org/en/nevibecode/commands/husky.md) — command · 282 installs
- [ns-investigator](https://affpapa.org/en/nevibecode/skills/ns-investigator.md) — skill · 153 installs

From the same set: [hashgraph-online/awesome-codex-plugins](https://affpapa.org/en/nevibecode/by/hashgraph-online/awesome-codex-plugins.md) — 391 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
