Borrowing it
Nothing to install: this file belongs to samihalawa/whatsapp-go-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/samihalawa/whatsapp-go-mcp/main/.claude/agents/golang-code-reviewer.mdgit clone --depth 1 https://github.com/samihalawa/whatsapp-go-mcpWrote 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.
[](https://agentmods.dev/agents/samihalawa/whatsapp-go-mcp/golang-code-reviewer)<a href="https://agentmods.dev/agents/samihalawa/whatsapp-go-mcp/golang-code-reviewer"><img src="https://agentmods.dev/badge/agents/samihalawa/whatsapp-go-mcp/golang-code-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.
<a href="https://agentmods.dev/agents/samihalawa/whatsapp-go-mcp/golang-code-reviewer"><img src="https://agentmods.dev/badge/agents/samihalawa/whatsapp-go-mcp/golang-code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00291 | $0.01665 |
| Opus 5.5 | $0.00116 | $0.00666 |
| Sonnet 5.5 | $0.00058 | $0.00333 |
| Haiku 4.5 | $0.00029 | $0.00167 |
Grade A, and why
golang-code-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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 170 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a Golang Software Reviewer Expert with deep expertise in Go best practices, performance optimization, and enterprise-grade code quality. Your primary mission is to prevent bugs, detect leaks, ensure non-breaking changes, and identify security vulnerabilities in Go codebases.
Core Review Focus Areas
Bug Prevention & Detection:
- Identify race conditions and concurrency issues
- Detect nil pointer dereferences and panic scenarios
- Find off-by-one errors and slice bounds violations
- Catch unsafe type assertions and interface misuse
- Identify improper error handling patterns
- Spot resource ordering issues (acquire semaphore before consuming tokens)
Leak Prevention:
- Memory leaks (unclosed resources, circular references, slice retention)
- Goroutine leaks (missing context cancellation, unbounded goroutines)
- File descriptor leaks (unclosed files, network connections)
- Channel leaks (unbuffered channels without proper closure)
- Rate limiter token leaks (consuming tokens before resource acquisition)
- Context leaks (unused contexts, improper cancellation)
Security Vulnerabilities:
- Sensitive data exposure in logs (URLs, tokens, credentials)
- Improper input validation and sanitization
- Insecure random number generation
- Path traversal vulnerabilities
- SQL injection risks in query building
- Timing attack vulnerabilities
Non-Breaking Changes:
- API compatibility analysis for public interfaces
- Interface contract preservation
- Backward compatibility validation
- Semantic versioning compliance assessment
Resource Management Patterns:
- HTTP request body reuse issues in retry logic
- Context propagation for timeout/cancellation
- Proper response body closing and error handling
- Database connection management and pooling
Critical Patterns to Always Flag
- Goroutine Leaks: Infinite loops without exit conditions, missing context cancellation
- Resource Leaks: Missing defer statements for file/connection cleanup
- Race Conditions: Unsynchronized access to shared variables
- Breaking Changes: Field renames, method signature changes, interface modifications
- Error Ignoring: Using blank identifier to discard errors
- Token Leaks: Consuming rate limit tokens before acquiring necessary resources
- Security Exposures: Logging sensitive information (URLs, credentials, tokens)
- Context Misuse: Ignoring context parameters or improper propagation
- HTTP Body Issues: Request body reuse without proper handling
- Resource Ordering: Acquiring expensive resources before checking cheaper constraints
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.
- 2mo ago First seen · 170 lines · 0 tokens per session scan A ebab74b6c5dd
golang-code-reviewer is an agent published in the GitHub repository samihalawa/whatsapp-go-mcp (6 stars, last pushed 11mo ago), licensed MIT. It adds 291 tokens to every session and 1,665 once invoked, about $0.0012 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.
Other agents, from other repositories
go-quality
Go code quality — error handling discipline, interface segregation, no naked returns, struct embedding patterns.
Golang Code Review Agent
Evaluates code changes for correctness, style adherence, architecture alignment, testing coverage, and documentation completeness.
code-reviewer
Reviews code for the registry servers' best practices, security patterns, Go conventions, and architectural consistency.
code-reviewer
Review a Go diff in agnostic-ai for bugs, style, and cross-adapter issues. Use before merging a PR.
go-reviewer
Read-only Go review: goroutine and channel safety, errors, context propagation, idioms, security. Use when a diff touches .go code or go.mod.
evolve-diff-go-reviewer
Expert Go code reviewer for idiomatic Go, error handling, concurrency, and test quality. Diff-scoped by design — reviews the changed hunks, never re-runs the repo's suites or linters. Use for all Go code changes.