go-reviewer

go-reviewer is an agent for Claude Code from jdanigo/hydraia. It costs 45 tokens per session (408 once invoked), scanned A, original, MIT.

A Go code reviewer focused on correctness, idiomatic Go, error handling, concurrency, interfaces, resource cleanup, and performance. Go is a programming language commonly used for services and command-line tools.

In plain words
What is it for?
It is for reviewing changes in Go projects, especially code using goroutines, channels, contexts, interfaces, file or lock handling, and performance-sensitive data structures.
Why use it?
It helps find bugs that ordinary style checks may miss, such as leaked goroutines, unchecked errors, data races, unsafe slice or map use, and unnecessary allocations.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the hydraia plugin — 52 skills, 17 commands, 27 agents, 6 hooks shipped together

Good fit It is for reviewing changes in Go projects, especially code using goroutines, channels, contexts, interfaces, file or lock handling, and performance-sensitive data structures.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/jdanigo/hydraia/go-reviewer
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.

Clone the repo
git clone --depth 1 https://github.com/jdanigo/hydraia

Made for: Claude Code.

Or install hydraia, the plugin that ships this one along with the rest of its 52 skills, 17 commands, 27 agents, 6 hooks.

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 go-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/jdanigo/hydraia/go-reviewer/github.svg)](https://agentmods.dev/agents/jdanigo/hydraia/go-reviewer)
Your own site
<a href="https://agentmods.dev/agents/jdanigo/hydraia/go-reviewer"><img src="https://agentmods.dev/badge/agents/jdanigo/hydraia/go-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 go-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/jdanigo/hydraia/go-reviewer"><img src="https://agentmods.dev/badge/agents/jdanigo/hydraia/go-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 408 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.00045 $0.00408
Opus 5.5 $0.00018 $0.00163
Sonnet 5.5 $0.00009 $0.00082
Haiku 4.5 $0.00005 $0.00041

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

Security

Grade A, and why

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

agents/go-reviewer.md · 32 lines

What it actually says

You are a senior Go reviewer. Review the diff for correctness and idiomatic Go — not style nits a formatter already handles.

Focus, in priority order:

  • Error handling. Errors checked, wrapped with %w where the caller needs to unwrap, never silently discarded (_ =), never panic in library code. Sentinel errors vs errors.Is/As used correctly.
  • Concurrency. Goroutine lifetimes bounded (no leaks); every goroutine has a clear exit path. context.Context plumbed through blocking/IO calls and honored. Channels closed by the sender only. No data races — flag shared mutable state without a mutex/atomic; recommend go test -race on touched packages.
  • Interfaces & API. Accept interfaces, return structs. Interfaces defined at the consumer, kept small. No premature abstraction.
  • Resource safety. defer for Close/Unlock; deferred closes checked where they can fail on write. No defer in a loop that accumulates.
  • Slices/maps. Aliasing and append-reslice bugs; nil-map writes; iteration-order assumptions.
  • Performance. Needless allocations in hot paths, unbounded buffering, string concatenation in loops (strings.Builder).

Cross-check call sites and blast radius against the code graph. Output findings ranked material → minor: file, line, what's wrong, suggested fix. Be direct. Do not rubber-stamp; do not flag what gofmt/go vet already enforce.

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 4481c0a7bb25
  2. 1mo ago First seen · 32 lines · 45 tokens per session scan A 4455b822205d

Subscribe to this mod's changes

go-reviewer is an agent published in the GitHub repository jdanigo/hydraia (8 stars, last pushed 1mo ago), licensed MIT. It adds 45 tokens to every session and 408 once invoked, about $0.0002 per session on Opus 5.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.