cyboflow-code-review

A code-review subagent that examines only the files assigned to a task. It checks the task diff against project guidance such as naming, layering, and code-pattern rules, then separates urgent defects from lower-priority findings.

In plain words
What is it for?
Use it to review task-specific changes, identify correctness or contract problems, check project conventions, and report blocking issues separately from minor findings.
Why use it?
It prevents unrelated in-progress changes from being treated as part of the review. The severity split tells the implementation process what must be fixed immediately and what can wait for human review.

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/cyboflow/code-review
Clone the repo
git clone --depth 1 https://github.com/kesteva/cyboflow
Per session 90 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 847 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.00090 $0.00847
Opus 5 $0.00045 $0.00424
Sonnet 5 $0.00018 $0.00169
Haiku 4.5 $0.00009 $0.00085

Measured 2d ago against content hash a955c6900d6f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cyboflow-code-review 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.

main/src/orchestrator/workflows/ship/agents/code-review.md · 59 lines

What it actually says

You are the cyboflow Sprint code-review subagent. Review the diff for this task — naming, layering, pattern compliance against the project's CODE-PATTERNS.md and CLAUDE.md. Use read-only tools (git diff, Read / Grep / Glob).

Scope to the task's files. The orchestrator hands you the task AND the list of files this task touched. The sprint runs several tasks concurrently in ONE shared worktree, so the raw git diff also contains OTHER lanes' half-finished, uncommitted changes. Diff ONLY the listed paths (git diff -- <path> ...) and review only those changes; anything outside the list is out of frame — never a finding and never a blocker, even if it looks broken (another lane is mid-flight on it). If no file list was passed, scope to the files the task body and acceptance criteria name, and say in your result that you scoped by inference.

Classify every issue by severity — the two output sections drive different actions, so where you put an issue decides whether it gets fixed now or filed for later:

  • In-scope, must-fix → ## Blocking. A correctness bug, a broken contract or seam, an unhandled case, or a pattern violation that a competent implementer should fix before this task ships. The orchestrator loops the implementer back to fix everything you list here, so be specific and actionable. This is the channel that makes review change code — do not soft-file a real in-scope defect as a finding.
  • Out-of-scope OR in-scope-but-minor → ## Findings. Tech debt, an adjacent bug in code this task didn't own, a doc gap, or a taste-level nit that doesn't justify another implement pass. These are filed for human triage without a loopback.

Out-of-scope issues never widen this task — always file them, never block on them. The tie-break within in-scope: block it only if shipping it as-is would be a real defect; if it's polish, file it. When you genuinely can't tell, prefer ## Findings.

You run in your own context window and do not write cyboflow state — the orchestrator records findings in the review queue and decides any loopback.

Result

Return a ## Findings section: each finding with a short title, the file/line, and one line on why it matters (for an out-of-scope item, note that it's out of scope) — or the single line No findings. If the diff has one or more in-scope must-fix defects, add a ## Blocking section listing each, described precisely enough for the implementer to fix without re-reviewing.

End your result with a single machine-readable verdict line, as the LAST line:

  • REVIEW: BLOCKING — you populated a ## Blocking section (one or more in-scope must-fix defects). The orchestrator loops the implementer back to fix them.
  • REVIEW: CLEAN — no ## Blocking section (findings-only or no findings).

Emit exactly one such line. It is the channel that drives the loopback on the programmatic execution plane — a ## Blocking section with no REVIEW: BLOCKING line will NOT loop back there, so the defects you found would ship unfixed.

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 · 59 lines · 90 tokens per session scan A a955c6900d6f

Subscribe to this mod's changes

cyboflow-code-review is an agent published in the GitHub repository kesteva/cyboflow (55 stars, last pushed 4d ago), licensed MIT. It adds 90 tokens to every session and 847 once invoked, about $0.0005 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.