set-copilot: Agent for Claude Code

.claude/agents/code-reviewer.md

code-reviewer is an agent for Claude Code from tatargabor/set-copilot. It costs 77 tokens per session (923 once invoked), scanned A, a copy of code-reviewer, MIT.

A code-review agent for the set-core project. It checks code quality, project conventions, and security issues, then reports each finding with a location, severity, and suggested fix.

In plain words
What is it for?
Use it after feature work to review Python, Qt, and Bash changes for naming, error handling, interface conventions, and security problems.
Why use it?
It gives a consistent review before committing and draws attention to unsafe shell commands, exposed secrets, and path traversal risks.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

This is tatargabor/set-copilot's own configuration. It tells Claude Code how to work on set-copilot itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything set-copilot configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/tatargabor/set-copilot/master/.claude/agents/code-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/tatargabor/set-copilot

Made for: Claude Code.

Wrote 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.

agentmods badge for code-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/tatargabor/set-copilot/code-reviewer/github.svg)](https://agentmods.dev/agents/tatargabor/set-copilot/code-reviewer)
Your own site
<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.

agentmods 80×15 button for code-reviewer

Your own site · 80×15
<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>
Per session 77 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 923 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash 85d4a951902a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

Origin

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.

.claude/agents/code-reviewer.md · 77 lines

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

  • strict holds: no any escapes, 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 in config.ts — never a hardcoded regex, word list or category name in src/.
  • Env vars resolve with ??, not || (an empty value is a deliberate answer). Nested config sections merge key by key.
  • SONIOX_API_KEY never read from a committed config.

Text handling

  • Word boundaries are Unicode (\p{L}\p{N}, u flag) — never \b or an enumerated Latin character class.
  • Soniox tokens carry their own leading space: concatenate, never join with a space.

Runtime-dir invariants

  • capture and stop resolve 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.jsonl is 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 --print path prints raw text if the stitch fails.
  • Errors are reported, not swallowed; no silent catch {}.

Read the full file on GitHub · 77 lines

Changes

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.

  1. 1mo ago Changed · +45 lines · +54 tokens per session 85d4a951902a
  2. 3mo ago First seen · 32 lines · 23 tokens per session scan A b011204625d5

Subscribe to this mod's changes

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.

Related

code-reviewer compared with agents from other repositories

code-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-reviewertatargabor/set-copilotAgent36d agoMITA77Claude Code
cpp-revieweraffaan-m/ECCAgent317k4d agoMITA41Claude Code, Kiro
thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claudeAgent5.3ktodayMITA68Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent6684d agoMITA63Claude Code
atomic-auditordamusix/atomic-claudeAgent118yesterdayMITA169Claude Code
Reviewermonkilabs/opencastleAgent822d agoMITA30Claude Code
karimo-implementeropensesh/KARIMOAgent2921mo agoApache-2.0A49Claude Code