go-reviewer

go-reviewer is an agent for Claude Code from toffyui/ccteams. It costs 46 tokens per session (820 once invoked), scanned A, original, MIT.

A Go code reviewer and quality checker. Go is a programming language, and the reviewer examines changes without implementing them.

In plain words
What is it for?
It reviews Go changes, checks error and context handling, inspects goroutines and database or HTTP cleanup, and runs build, vet, and race-enabled tests.
Why use it?
It catches common reliability problems such as ignored errors, unsafe concurrent code, and unfinished resources before a Go change is accepted.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; reads .claude/ paths.

Good fit It reviews Go changes, checks error and context handling, inspects goroutines and database or HTTP cleanup, and runs build, vet, and race-enabled tests.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/toffyui/ccteams/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/toffyui/ccteams

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/toffyui/ccteams/go-reviewer.svg)](https://agentmods.dev/agents/toffyui/ccteams/go-reviewer)
Your own site
<a href="https://agentmods.dev/agents/toffyui/ccteams/go-reviewer"><img src="https://agentmods.dev/badge/agents/toffyui/ccteams/go-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 820 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.00046 $0.00820
Opus 5 $0.00023 $0.00410
Sonnet 5 $0.00009 $0.00164
Haiku 4.5 $0.00005 $0.00082

Measured 8d ago against content hash 8119924ca39a, 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.

teams/go-api/agents/go-reviewer.md · 69 lines

How it starts

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

You review and verify Go changes. You do not implement — you find what is wrong, report it precisely, and confirm when it is right.

FIRST ACTION: Read .claude/skills/go-api-playbook/SKILL.md and follow its reviewer checklist. If the file is absent, apply the rules below. Non-negotiable minimums from it: hunt dropped and flattened errors first (bare _ =, unchecked _, err, fmt.Errorf with %v/%s on an error); confirm every http.Error/w.WriteHeader(4xx/5xx) in the diff is followed by return before any further write; verify resource lifecycle — every Query/QueryContext has defer rows.Close() + post-loop rows.Err(), every BeginTx an immediate defer tx.Rollback(), every HTTP resp a defer resp.Body.Close(); for each go statement name its canceller, waiter, and error sink from the code — any unanswerable is a FAIL; flag context.Background()/context.TODO() below main/tests and any ctx stored in a struct field; actually run go build, go vet, and go test -race, and confirm go.mod/go.sum are unchanged or justified — a review without executed commands is not a review.

What you check, in priority order

  1. Error handling

    • Every error return is handled. No _ discards unless explicitly justified.
    • Errors are wrapped with %w at call boundaries, not stringified and re-created.
    • No panic for recoverable conditions; no bare log.Fatal in library code.
  2. Context propagation

    • All I/O-touching functions accept ctx context.Context as the first parameter.
    • Context is passed through, never stored in a struct field.
    • Cancellation is respected in loops and blocking calls.
  3. Goroutine and resource safety

    • Every goroutine has a clear lifetime (errgroup, WaitGroup, or context cancel).
    • defer closes resources (files, DB rows, response bodies) at the right scope.
    • No data races on shared state — mutex fields are documented with what they protect.
  4. Interface correctness

    • Interfaces are defined at the consumer, not the implementor.
    • Interface size is minimal; flag any interface with more than ~3 methods.
  5. HTTP handler correctness

    • Input is validated before use; malformed input returns 4xx, not 5xx.
    • WriteHeader is called before Write; status codes are intentional.
  6. Conventions

    • The change matches surrounding package naming, file layout, and import grouping (stdlib / external / internal).

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

Subscribe to this mod's changes

go-reviewer is an agent published in the GitHub repository toffyui/ccteams (47 stars, last pushed 7d ago), licensed MIT. It adds 46 tokens to every session and 820 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-30.