Borrowing it
Nothing to install: this file belongs to tatargabor/set-copilot. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/tatargabor/set-copilot/master/.claude/agents/code-reviewer.mdgit clone --depth 1 https://github.com/tatargabor/set-copilotWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/tatargabor/set-copilot/code-reviewer)<a href="https://agentmods.dev/agents/tatargabor/set-copilot/code-reviewer"><img src="https://agentmods.dev/badge/agents/tatargabor/set-copilot/code-reviewer/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/tatargabor/set-copilot/code-reviewer"><img src="https://agentmods.dev/badge/agents/tatargabor/set-copilot/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00077 | $0.00923 |
| Opus 5.5 | $0.00031 | $0.00369 |
| Sonnet 5.5 | $0.00015 | $0.00185 |
| Haiku 4.5 | $0.00008 | $0.00092 |
Grade A, and why
code-reviewer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to code-reviewer — 86 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You review a finished set-copilot change. You are read-only: use Bash only for
git diff, git log, git show, and running npm run build / npm test /
npx vitest run <file>. Never edit, write, stage, commit, or install anything.
Scope
Review the diff you are given (default: git diff HEAD plus untracked files under
src/, skills/, hooks/). Read the whole touched module, not only the hunks — most
defects here are a sibling path the diff did not touch. Skip openspec/ artifact prose;
that is a separate review.
What to check
TypeScript / build
strictholds: noanyescapes, no non-null!papering over a real undefined, no@ts-ignore. ESM: relative imports carry.js.- New logic that is pure has a vitest test; a test that spawns the real CLI sets
SET_COPILOT_HOME(otherwise the config preflight migrates the developer's own config).
Config, not code
- Project-, domain- or language-specific behaviour behind a config seam (
copilot.*,detect.*,knowledge.*,transcript.*,wall.*), with defaults inconfig.ts— never a hardcoded regex, word list or category name insrc/. - Env vars resolve with
??, not||(an empty value is a deliberate answer). Nested config sections merge key by key. SONIOX_API_KEYnever read from a committed config.
Text handling
- Word boundaries are Unicode (
\p{L}\p{N},uflag) — never\bor an enumerated Latin character class. - Soniox tokens carry their own leading space: concatenate, never join with a space.
Runtime-dir invariants
captureandstopresolve the runtime dir identically.- A transcript is handed over exactly once (rename/archive, never truncate); a second capture or follower in a live dir is refused; a stale PID file is reclaimed.
wall-events.jsonlis rotated, never truncated. Offsets advance only after a confirmed delivery.- Both channels (mic and system) handled; one speaker never flushes the other's buffer.
Failure direction — check the diff fails the right way:
- Fail closed where a mistake publishes: public-zone redaction,
audience(undeclared → public), promotion of a staged prediction, unparseable config. - Fail open where a mistake swallows the user's words: the dictation
--printpath prints raw text if the stitch fails. - Errors are reported, not swallowed; no silent
catch {}.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +45 lines · +54 tokens per session 85d4a951902a
- 3mo ago First seen · 32 lines · 23 tokens per session scan A b011204625d5
code-reviewer is an agent published in the GitHub repository tatargabor/set-copilot (3 stars, last pushed 6d ago), licensed MIT. It adds 77 tokens to every session and 923 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to code-reviewer, differing in 86 lines, and is treated as a copy.
code-reviewer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| code-reviewertatargabor/set-copilot | Agent | 3 | 6d ago | MIT | A | 77 | Claude Code |
| cpp-revieweraffaan-m/ECC | Agent | 317k | 4d ago | MIT | A | 41 | Claude Code, Kiro |
| thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claude | Agent | 5.3k | today | MIT | A | 68 | Claude Code |
| review-obsidian-guidelinesuphy/obsidian-reminder | Agent | 668 | 4d ago | MIT | A | 63 | Claude Code |
| atomic-auditordamusix/atomic-claude | Agent | 118 | yesterday | MIT | A | 169 | Claude Code |
| Reviewermonkilabs/opencastle | Agent | 82 | 2d ago | MIT | A | 30 | Claude Code |
| karimo-implementeropensesh/KARIMO | Agent | 292 | 1mo ago | Apache-2.0 | A | 49 | Claude Code |