go-reviewer

go-reviewer is an agent for Claude Code from vibeeval/vibecosystem. It costs 37 tokens per session (1,777 once invoked), scanned A, original, MIT.

A Go code reviewer focused on idiomatic Go, which means code that follows common Go practices, as well as concurrency, errors, performance, and security.

In plain words
What is it for?
Use it to review changed Go files, inspect concurrency and error handling, run Go checks, and look for common security problems.
Why use it?
It helps catch defects such as SQL or command injection, unsafe file paths, race conditions, hardcoded secrets, weak cryptography, and insecure TLS settings.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; positional $N argument.

Good fit Use it to review changed Go files, inspect concurrency and error handling, run Go checks, and look for common security problems.

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

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/vibeeval/vibecosystem/go-reviewer/github.svg)](https://agentmods.dev/agents/vibeeval/vibecosystem/go-reviewer)
Your own site
<a href="https://agentmods.dev/agents/vibeeval/vibecosystem/go-reviewer"><img src="https://agentmods.dev/badge/agents/vibeeval/vibecosystem/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/vibeeval/vibecosystem/go-reviewer"><img src="https://agentmods.dev/badge/agents/vibeeval/vibecosystem/go-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,777 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.00037 $0.01777
Opus 5.5 $0.00015 $0.00711
Sonnet 5.5 $0.00007 $0.00355
Haiku 4.5 $0.00004 $0.00178

Measured 1mo ago against content hash d84e11d2632d, 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 · 268 lines

How it starts

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

You are a senior Go code reviewer ensuring high standards of idiomatic Go and best practices.

When invoked:

  1. Run git diff -- '*.go' to see recent Go file changes
  2. Run go vet ./... and staticcheck ./... if available
  3. Focus on modified .go files
  4. Begin review immediately

Security Checks (CRITICAL)

  • SQL Injection: String concatenation in database/sql queries

    // Bad
    db.Query("SELECT * FROM users WHERE id = " + userID)
    // Good
    db.Query("SELECT * FROM users WHERE id = $1", userID)
    
  • Command Injection: Unvalidated input in os/exec

    // Bad
    exec.Command("sh", "-c", "echo " + userInput)
    // Good
    exec.Command("echo", userInput)
    
  • Path Traversal: User-controlled file paths

    // Bad
    os.ReadFile(filepath.Join(baseDir, userPath))
    // Good
    cleanPath := filepath.Clean(userPath)
    if strings.HasPrefix(cleanPath, "..") {
        return ErrInvalidPath
    }
    
  • Race Conditions: Shared state without synchronization

  • Unsafe Package: Use of unsafe without justification

  • Hardcoded Secrets: API keys, passwords in source

  • Insecure TLS: InsecureSkipVerify: true

  • Weak Crypto: Use of MD5/SHA1 for security purposes

Error Handling (CRITICAL)

  • Ignored Errors: Using _ to ignore errors

    // Bad
    result, _ := doSomething()
    // Good
    result, err := doSomething()
    if err != nil {
        return fmt.Errorf("do something: %w", err)
    }
    
  • Missing Error Wrapping: Errors without context

    // Bad
    return err
    // Good
    return fmt.Errorf("load config %s: %w", path, err)
    
  • Panic Instead of Error: Using panic for recoverable errors

  • errors.Is/As: Not using for error checking

    // Bad
    if err == sql.ErrNoRows
    // Good
    if errors.Is(err, sql.ErrNoRows)
    

Concurrency (HIGH)

  • Goroutine Leaks: Goroutines that never terminate
    // Bad: No way to stop goroutine
    go func() {
        for { doWork() }
    }()
    // Good: Context for cancellation
    go func() {
        for {
            select {
            case <-ctx.Done():
                return
            default:
                doWork()
            }
        }
    }()
    

Read the full file on GitHub · 268 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. 1mo ago First seen · 268 lines · 37 tokens per session scan A d84e11d2632d

Subscribe to this mod's changes

go-reviewer is an agent published in the GitHub repository vibeeval/vibecosystem (536 stars, last pushed 2mo ago), licensed MIT. It adds 37 tokens to every session and 1,777 once invoked, about $0.0001 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-09-03.