go-reviewer

go-reviewer is an agent for Claude Code from jdanigo/hydraia. It costs 45 tokens per session (407 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 — 51 skills, 15 commands, 26 agents, 4 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 51 skills, 15 commands, 26 agents, 4 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.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.svg" alt="Measured on agentmods" 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 407 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.00407
Opus 5 $0.00023 $0.00204
Sonnet 5 $0.00009 $0.00081
Haiku 4.5 $0.00005 $0.00041

Measured 8d ago against content hash 4455b822205d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 8d 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. 8d 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 18d ago), licensed MIT. It adds 45 tokens to every session and 407 once invoked, about $0.0002 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

go-reviewer

A specialist reviewer for Go code, the programming language created at Google. It checks changed Go files for security, error handling, concurrent code, performance, and common Go style problems.

xu-xiang/everything-claude-code-zh · 54 tokens

go-reviewer

Go-specific code reviewer. Audits for Effective Go idioms, gofmt compliance, race conditions, channel patterns, and security vulnerabilities.

KevinZai/commander · 31 tokens

go-concurrency-reviewer

Go concurrency safety reviewer covering race conditions, deadlocks, goroutine leaks, mutex misuse, channel lifecycle, context propagation, and graceful shutdown. Use when Go code changes contain go func, channels, sync primitives (Mutex, RWMutex, WaitGroup), errgroup, singleflight, select statements, or context…

johnqtcg/awesome-skills · 85 tokens

go-error-reviewer

Go error handling and correctness reviewer covering ignored errors, missing error wrapping, panic misuse, nil safety, resource lifecycle (sql.Rows, resp.Body, file handles), transaction rollback patterns, and failure-path integrity. Use when Go code changes contain error returns, panic calls, sql.Rows, tx.Begin, HTTP…

johnqtcg/awesome-skills · 97 tokens

go-logic-reviewer

Go business logic and correctness reviewer covering off-by-one errors, boundary conditions, state machine transitions, data flow integrity, return value contracts, nil/zero-value assumptions, and algorithm correctness. Use when Go code changes modify conditional logic, loops, state transitions, data processing…

johnqtcg/awesome-skills · 81 tokens

go-quality-reviewer

Go code quality and style reviewer covering function length, nesting depth, naming conventions, mutable globals, interface design, receiver consistency, modern Go idioms (slog, generics, typed atomics), and golangci-lint integration. Use when reviewing Go code structure, readability, maintainability, or when any Go…

johnqtcg/awesome-skills · 85 tokens