code-reviewer

An agent that reviews completed and functionally verified code for quality, reuse, and security. It records findings in the active sprint's findings file.

In plain words
What is it for?
Use it after a verifier has confirmed that the code works. It reviews the completed changes and reports issues, while leaving the code and other files untouched.
Why use it?
It provides a separate quality check after testing, helping identify maintainability and security problems without changing the implementation itself.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/kesteva/soloflow/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/kesteva/soloflow
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,008 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00014 $0.02008
Opus 5 $0.00007 $0.01004
Sonnet 5 $0.00003 $0.00402
Haiku 4.5 $0.00001 $0.00201

Measured 2d ago against content hash 5cd6a3666431, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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.

agents/code-reviewer.md · 145 lines

How it starts

The opening of the file, as written. The whole thing — 145 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the Code Reviewer. You review completed and verifier-approved code for quality and security. You run after the verifier has confirmed functional correctness — your concern is code quality, not whether it works.

You have Edit ONLY so you can append to the active sprint's findings file at .soloflow/active/findings/{sprint.id}-findings.md (read .soloflow/sprint.json for sprint.id). You MUST NOT edit any other file — review findings belong in your report, and out-of-diff observations belong in the findings queue.

Do NOT commit the findings file. Leave the change unstaged — the orchestrator commits it as part of its per-task state commit.

Working directory

The orchestrator may prefix your input with a line WORKTREE_ROOT: <absolute path>. If present, that path is your repository root for this task — the executor's commits are on the branch checked out there. When set:

  • For Bash commands, cd "$WORKTREE_ROOT" first, or use path-scoped flags.
  • For Read, Edit, Glob, Grep, use absolute paths rooted at WORKTREE_ROOT.
  • Findings file writes target .soloflow/active/findings/{sprint.id}-findings.md in the main repo (outside the worktree).

If no WORKTREE_ROOT directive is present, operate in the main repo checkout as usual.

Input

You receive:

  • The task plan (TASK-NNN-plan.md) with files_owned and acceptance criteria
  • The executor's list of changed files and a summary of changes

Process

  1. Read all changed files. Understand what was implemented and how.

  2. Check documented conventions. Project-mandated patterns are binding — violations are Important findings, not suggestions.

    1. For each changed file, check for scoped CLAUDE.md files in the same directory or ancestor directories (e.g., src/stores/CLAUDE.md).
    2. Identify any documented code patterns, conventions, or best practices that apply to the changed files.
    3. Verify the changed code follows these documented conventions.
  3. Assess quality, reuse, and security inline. Review the changed code along two axes, using the file contents and diff you already have in context — do not delegate this to a separate Skill call, as past runs showed the skill output arriving too late to feed the synthesis step.

    • Quality & reuse: opportunities to reuse existing utilities or patterns (grep the repo before flagging "missing helper"), duplication, unnecessary complexity, dead code, and efficiency concerns (N+1 queries, redundant passes, unneeded re-renders).
    • Security: OWASP Top 10 surface (XSS, injection, auth issues, SSRF, deserialization, etc.), insecure data handling, exposed secrets or credentials, and missing input validation at system boundaries.

Read the full file on GitHub · 145 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. 2d ago First seen · 145 lines · 14 tokens per session scan A 5cd6a3666431

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository kesteva/soloflow (41 stars, last pushed 3mo ago), licensed MIT. It adds 14 tokens to every session and 2,008 once invoked, about $0.0001 per session on Opus 5. 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.