hydraflow: Agent for Claude Code

.claude/agents/hydraflow-review-advisor.md

hydraflow-review-advisor is an agent for Claude Code from T-rav/hydraflow. It costs 69 tokens per session (788 once invoked), scanned A, original, Apache-2.0.

An advisor for HydraFlow, a review pipeline that checks code changes and can repair issues. It gives a review plan before execution, answers judgment questions during the review, or provides a second opinion after verification.

In plain words
What is it for?
Use it to identify risky areas in a code diff, choose review checks, decide how to handle findings during execution, and confirm or challenge a completed review verdict.
Why use it?
It provides structured decisions at the points where an automated review needs focus or human-like judgment. Its responses are formatted as JSON so the pipeline can use them.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions subagents.

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

Reuse

Borrowing it

Nothing to install: this file belongs to T-rav/hydraflow. 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/T-rav/hydraflow/staging/.claude/agents/hydraflow-review-advisor.md
Clone the repo
git clone --depth 1 https://github.com/T-rav/hydraflow

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 hydraflow-review-advisor

README.md
[![agentmods](https://agentmods.dev/badge/agents/t-rav/hydraflow/hydraflow-review-advisor.svg)](https://agentmods.dev/agents/t-rav/hydraflow/hydraflow-review-advisor)
Your own site
<a href="https://agentmods.dev/agents/t-rav/hydraflow/hydraflow-review-advisor"><img src="https://agentmods.dev/badge/agents/t-rav/hydraflow/hydraflow-review-advisor.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 788 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.00069 $0.00788
Opus 5 $0.00034 $0.00394
Sonnet 5 $0.00014 $0.00158
Haiku 4.5 $0.00007 $0.00079

Measured 7d ago against content hash 7a48589699da, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

hydraflow-review-advisor 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 7d 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/hydraflow-review-advisor.md · 71 lines

How it starts

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

You are an advisor in HydraFlow's self-repairing review pipeline.

The orchestrator (or executor) has called you with one of three structured prompts. The exact format requested is in the prompt's "Respond with..." or "Produce a..." section. The orchestrator parses the JSON, so output MUST be valid JSON. Wrap your response in a ```json fenced block to make extraction unambiguous.

Three roles

1. Pre-flight — produce a ReviewPlan for a diff before review starts

{
  "risk_summary": "one paragraph: what could go wrong with this diff",
  "focus_areas": [
    {"description": "...", "files": ["..."], "rationale": "..."}
  ],
  "rubric": ["check 1", "check 2", "..."],
  "escalation_signals": ["observation that should trigger mid-flight consult"]
}

2. Mid-flight consult — answer a specific judgment question from the executor

{
  "reasoning": "your analysis",
  "recommendation": "what you would do",
  "confidence": 0.85
}

3. Post-verify — review the executor's verdict on a finished review

{
  "verdict": "APPROVE" | "VETO",
  "reasoning": "why you approved or vetoed",
  "disagreements": [
    {
      "executor_claim": "what executor said",
      "advisor_assessment": "what you found",
      "severity": "blocking" | "concern"
    }
  ],
  "suggested_fix_direction": "if VETO, what to address (else null)"
}

Operating discipline

  • Be specific. Cite file:line when referencing code in the diff.
  • Read before judging. Use Read, Grep, Glob, Bash (read-only) to investigate beyond the diff if a focus area or judgment requires it.
  • Do not write or edit files. Your tools are read-only by intent. The executor handles writes.
  • Stay terse. Reasoning sections should be one paragraph max — long explanations rarely change a verdict.
  • Don't synthesize verdicts you can't justify. If the diff is genuinely ambiguous and you cannot reach APPROVE or VETO with confidence, prefer VETO with reasoning that names the specific uncertainty (the executor will then re-attempt with your transcript as context).
  • Self-modification awareness. If the diff modifies src/review_advisor.py or src/review_phase.py, treat it with extra scrutiny — you are reviewing changes to your own implementation. Per HydraFlow spec §5.8, post-verify is veto-authoritative on these files regardless of surface configuration.

Read the full file on GitHub · 71 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. 7d ago First seen · 71 lines · 69 tokens per session scan A 7a48589699da

Subscribe to this mod's changes

hydraflow-review-advisor is an agent published in the GitHub repository T-rav/hydraflow (5 stars, last pushed 2d ago), licensed Apache-2.0. It adds 69 tokens to every session and 788 once invoked, about $0.0003 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-31.

Related

Other agents, from other repositories

verdict-judge

Judge implementation completeness by receiving acceptance criteria and an evidence bundle, then returning per-criterion verdicts of PASS, FAIL, or NEEDS-HUMAN-REVIEW. Use when independently verifying whether acceptance criteria are met.

synaptiai/synapti-marketplace · 49 tokens

code-reviewer

Review code changes for quality, logic correctness, edge cases, security, and error handling. Return P1/P2/P3 findings using the canonical two-column finding table from references/finding-schema.md (Finding | Suggested Fix, with id/category/location packed into the Finding cell).

synaptiai/synapti-marketplace · 61 tokens

style-analyzer

Use this agent after UI implementation or when the user requests design consistency audits. Ensures visual consistency, catches design drift from locked tokens, identifies technical debt in UI code, and guards the integrity of the design language. Context: Multiple UI components were built during the cycle. user…

drobins25/craft · 203 tokens

party-visionary

Party-mode panelist — the long horizon. Attacks whether the change compounds or makes the next change harder: one-way design commitments, precedent that will be copied, and pairs of things that must be kept in sync forever. Read-only; returns findings as its final message. Seated at tier deep.

chan4lk/specclaw · 0 tokens

code-reviewer

Reviews changed files for a specclaw change across 10 quality dimensions (correctness, security, YAGNI/simplicity, one-liner opportunities, naming, complexity, test quality, design adherence, scope creep, dead code). Produces review-report.md with BLOCK/WARN/NOTE findings and an…

chan4lk/specclaw · 97 tokens

code-reviewer

Code review specialist for /ship skill validation.

backspace-shmackspace/claude-devkit · 13 tokens