flux: Agent for Claude Code

.claude/agents/code-reviewer.md

code-reviewer is an agent for Claude Code from sirsjg/flux. It costs 0 tokens per session (299 once invoked), scanned A, original, MIT.

A pull-request review checklist for checking changed code for security, correctness, performance, and maintainability problems.

In plain words
What is it for?
It helps review pull requests, group findings by severity, and approve changes when no issues are found.
Why use it?
It gives reviews a consistent focus and keeps comments limited to issues in the modified files.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is sirsjg/flux's own configuration. It tells Claude Code how to work on flux 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 flux configures →

View source ↗ sirsjg/flux
Reuse

Borrowing it

Nothing to install: this file belongs to sirsjg/flux. 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/sirsjg/flux/main/.claude/agents/code-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/sirsjg/flux

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/sirsjg/flux/code-reviewer/github.svg)](https://agentmods.dev/agents/sirsjg/flux/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/sirsjg/flux/code-reviewer"><img src="https://agentmods.dev/badge/agents/sirsjg/flux/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/sirsjg/flux/code-reviewer"><img src="https://agentmods.dev/badge/agents/sirsjg/flux/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 299 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 original No closer match found 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.00000 $0.00299
Opus 5.5 $0.00000 $0.00120
Sonnet 5.5 $0.00000 $0.00060
Haiku 4.5 $0.00000 $0.00030

Measured 1mo ago against content hash ff6118b72d68, 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.

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

What it actually says

Code Review Checklist

Review PRs against this checklist. Be concise - only comment on actual issues.

Critical (must fix)

  • Security vulnerabilities (injection, XSS, secrets in code)
  • Data loss or corruption risks
  • Breaking changes to public APIs
  • Crashes or unhandled errors in critical paths

Warning (should fix)

  • Missing error handling for external calls
  • Race conditions or concurrency issues
  • Performance problems (N+1 queries, unbounded loops)
  • Missing input validation at system boundaries
  • Inconsistent behavior with existing patterns

Suggestion (nice to have)

  • Code style inconsistencies
  • Missing tests for new functionality
  • Unclear naming or documentation gaps
  • Minor code duplication

Review Process

  1. Run git diff origin/<base>...HEAD to see changes
  2. Focus on modified files only - don't review unchanged code
  3. Check each file against the checklist above
  4. Post a single comment summarizing findings by severity
  5. If no issues found, approve with a brief summary of what was reviewed

Output Format

## Review: <PR Title>

### Critical
- [file:line] Issue description

### Warning
- [file:line] Issue description

### Suggestion
- [file:line] Issue description

### Summary
Brief assessment and recommendation (approve/request changes)

If a section has no items, omit it entirely.

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 First seen · 51 lines · 0 tokens per session scan A ff6118b72d68

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository sirsjg/flux (105 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 299 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

chorus-code-reviewer

Final ship-time review of an Idea's aggregate code change — the whole feature across all its tasks, not one task. Read-only; posts a VERDICT comment on the Idea. Spawn it with the subagent tool and wait for its VERDICT comment after the last task of an idea-rooted proposal is verified.

Chorus-AIDLC/Chorus · 69 tokens

chorus-task-reviewer

Review submitted Chorus tasks — verify implementation against AC and proposal documents. Spawn it with the subagent tool and wait for its VERDICT comment after chorussubmitforverify.

Chorus-AIDLC/Chorus · 39 tokens

self-critic

A review agent that examines completed work against its original goal, evidence, and acceptance criteria, then gives specific criticism and improvement suggestions.

HughYau/qiushi-skill · 162 tokens

chorus-proposal-reviewer

Review submitted Chorus proposals for quality — check document completeness, task granularity, AC alignment, and cross-task dependencies. Spawn it with the subagent tool and wait for its VERDICT comment after choruspmsubmitproposal.

Chorus-AIDLC/Chorus · 51 tokens

chorus-worker

General-purpose Chorus implementer subagent that claims and completes ONE Chorus task end-to-end via the develop workflow. Dispatch one per worker with the subagent tool (the bundled subagent also takes a tasks: [...] composite) for wave-based execution, and wait for the run to settle.

Chorus-AIDLC/Chorus · 63 tokens

pr-comment-resolver

Resolve a single PR review thread by evaluating validity, implementing fixes, or replying. Spawned by flow-next-resolve-pr skill; not for direct user invocation.

gmickel/flow-next · 37 tokens