Perun is a suite of written instructions that make an AI coding assistant work the same careful way every time, from review to delivery, showing the evidence for what it reports.
It helps engineers, team leads and non-technical teams get a repeatable review with evidence for every problem.
Measured 2026-10-12 on claude-sonnet-5-5, 39 held-out bug fixes: recall 0.487 against 0.385 for a plain prompt
(interval lower bound 0), and on 34 of them verified precision 0.839 against 0.336
for /code-review at recall 0.529 each. Directional evidence, not proof.
Install as a Claude Code plugin (fastest, no download):
/plugin marketplace add protocol/perun
/plugin install perun@perun
The plugin installs every skill, while install.sh (other ways) defaults to review-only.
Then ask your agent: run a deep code review DIFF origin/main.
Each skill is a text file of instructions the AI assistant reads before it starts work.
| Skill | Use it when you want to | Installed by install.sh |
|---|---|---|
deep-code-review |
review, audit or harden a repo, PR or diff | default |
agentic-delivery |
build a feature under gated delivery | opt-in: --with-delivery |
idea-critic |
attack a plan before a decision | opt-in: --with-critic |
communication-structure |
write a short PR body, status update or report | opt-in: --with-comms |
agentic-ceo |
route a multi-skill session | opt-in: --with-ceo |
product-discovery |
decide whether something is worth building | opt-in: --with-discovery |
growth-analytics |
choose a main metric and read a funnel | opt-in: --with-growth |
positioning |
shape a value proposition | opt-in: --with-positioning |
business-ops |
do pricing arithmetic; route legal or tax to a professional | opt-in: --with-business |
product-output-safety |
govern harm from your product's AI outputs | opt-in: --with-output-safety |
contribution |
send a privacy-safe upstream pull request | opt-in: --with-contribution |
Also covered: token and cost optimisation (token reports, auto-compact plus handoff, model-tier guidance).
What happens in a review:
flowchart TD
A[Read every hunk] --> B[Ask what input or caller breaks]
B --> C[Test each branch with odd inputs]
C --> D[Trace a plausible input through cited lines]
D --> E[Keep findings at confidence 80 or more]
E --> F[Name the test pinning each guarantee]
F --> G[Report worst first with file and line]
A list of problems, worst first, each with the file and line, the evidence and a fix. A made-up example from the example report:
### F3 - High - CONFIRMED
Inbound webhook accepts unsigned body
- Evidence: routes/hooks.mjs:22 parses JSON; no signature check.
- Fix: verify the signature; bind the account to the verified sender.
"CONFIRMED" means the assistant re-checked the problem against the exact code it reviewed.
claude-sonnet-5-5 unless noted. Perun misses about half the bugs, so keep people reviewing.
- Against a plain prompt, a borderline gain. 39 cases: recall 0.487 against 0.385 (+0.103, interval 0.000 to +0.231, lower end 0). Tables
- Against
/code-review, same recall, far fewer false alarms. 34 cases: recall 0.529 each, verified precision 0.839 against 0.336. Tables - Ties. On
claude-opus-5-5, F1 0.777 against 0.772 for a plain prompt (interval -0.051 to +0.061). With tools, 50 cases: 0.601 against 0.563 (interval -0.006 to +0.086). Against three other review skills, 37 cases: 0.442 against 0.430, 0.451 and 0.422. Rivals, capability matrix. - A caught bug costs more. 22 patch-only cases: $0.093 per caught bug (review calls only) against $0.030 for the Anthropic toolkit reviewer, about 3.1 times as much. Perun's edge is fewer false alarms, not a cheaper bug. Cost.
- Large changes need spend, not a smarter reviewer. 78 ranges: one pass found 31% with or without Perun; five passes 47%, chunked 46%, both 58%. Details.
- Tokens and safety. Instructions read before each review shrank by 19%. The sandbox advice's effect (host safety), time saved and money saved are not measured, so none is claimed (leaders).
Codex, Gemini CLI, GitHub Copilot CLI, and the install script
You need git, a terminal and an AI coding agent such as Claude Code or Cursor (the installer lists the others it supports). No terminal? Paste the skill into any AI chat: getting started.
- Codex:
codex plugin marketplace add protocol/perun, thencodex plugin add perun@perun(smoke-tested against a local checkout). - Gemini CLI:
gemini extensions install https://github.com/protocol/perun(loadsAGENTS.mdas context only; not smoke-tested, the CLI is not installed here). - GitHub Copilot CLI:
copilot plugin marketplace add protocol/perun; Copilot also reads the shipped.claude-plugin/marketplace.json(not smoke-tested).
Script install. It copies text files only, with no admin rights, and adds files only inside your project's .claude, .cursor and .agents folders (install.sh).
- Download Perun:
git clone --depth 1 https://github.com/protocol/perun.git - Install it into your project:
perun/install.sh /path/to/your/project - Ask your agent to review a real file you care about.
Type
run a deep code review FILE src/checkout.py(FILEis a literal keyword; put your own file's path after it). - Check the install with the command the installer printed last:
python3 perun/scripts/perun_doctor.py /path/to/your/project
Step 2 prints (shortened):
installed: deep-code-review 1.535.0 (@ 84acfb19) -> your-project/.claude/skills/deep-code-review
safety: Claude Code: OS sandbox is off by default; set sandbox.enabled=true (or run /sandbox) and keep allowUnsandboxedCommands=false. https://code.claude.com/docs/en/sandboxing
Perun installed 1 skill(s) into 3 tool folder(s) of your-project.
Next, run this one command to confirm it works: python3 perun/scripts/perun_doctor.py your-project
Two install types update differently: the plugin install and the script
install (install.sh). The steps for both, the 72-hour auto-update cooldown and the
! prefix for commands your agent's sandbox blocks live in one place:
Update now.
Perun is instructions, not a service: your code goes only where your agent
already sends it. Switch on your agent's sandbox and keep human review
(host safety, SECURITY.md).
Before you trust a skill you did not write, run
python3 perun/scripts/audit_skills.py path/to/skills (exit 2 = findings; --help lists what it checks and its limits).
- Engineers: a repeatable review of a file, a branch or a whole project, with evidence for every problem.
- Team leads: a ranked report you can check, plus a pilot plan (team install). Time saved and money saved have not been measured, so none are claimed. To estimate them for your team, use the worked formula and the three-step pilot in Perun for leaders.
- Non-technical teams: no licence fee (MIT), only your AI usage cost, and a plain-English summary of risks and decisions. Not a developer? Read Perun for leaders.
Perun is the project's name (after the Slavic thunder god of order). The
code-review skill inside it is still called deep-code-review, after what it does.
- Perun for leaders: what it gives your team, a pilot plan, limits and an FAQ.
- Getting started: every install option, optional skills, updating and removing.
- Perun vs other skill bundles: measured ties, losses and token overhead.
- Scoreboard: one generated row per skill or feature and rival, with win/tie/loss, cost and token ratios, and UNMEASURED where no result exists.
- Technical overview: mechanisms and engineering detail.
Contributing: CONTRIBUTING.md, rules in CLAUDE.md, verified standards in docs/standards-index.md, CODE_OF_CONDUCT.md, CI status. The test method and cases behind the numbers are in the repo. MIT. Credits and sources: docs/standards-index.md.