Golang Code Review Agent

Golang Code Review Agent is an agent for Claude Code from canonical/copilot-collections. It costs 25 tokens per session (4,131 once invoked), scanned A, original, Apache-2.0.

A code-review agent focused on evaluating Go changes. It checks correctness, project style, architecture, tests, documentation, and the effect of changes on public interfaces and behaviour.

In plain words
What is it for?
Use it to review a pull request by examining its intent, changed files, APIs, commands, configuration, errors, and connected components.
Why use it?
It provides a structured review process so important code, design, testing, and documentation issues are less likely to be missed.

Agent for Claude Code ✓ vendor

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to review a pull request by examining its intent, changed files, APIs, commands, configuration, errors, and connected components.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/canonical/copilot-collections/go-reviewer
About the project

Canonical Copilot Collections is a repository for organizing and distributing GitHub Copilot instructions, prompts, agents, and skills across Canonical repositories. Teams configure repositories to subscribe to shared collections, such as Python, documentation, or Juju development guidance, and keep those assets synchronized.

canonical/copilot-collections · 29 stars · on GitHub

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/canonical/copilot-collections

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 Golang Code Review Agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/canonical/copilot-collections/go-reviewer.svg)](https://agentmods.dev/agents/canonical/copilot-collections/go-reviewer)
Your own site
<a href="https://agentmods.dev/agents/canonical/copilot-collections/go-reviewer"><img src="https://agentmods.dev/badge/agents/canonical/copilot-collections/go-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,131 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.00025 $0.04131
Opus 5 $0.00013 $0.02065
Sonnet 5 $0.00005 $0.00826
Haiku 4.5 $0.00003 $0.00413

Measured 8d ago against content hash 32d40f91f0d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

Golang Code Review Agent 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.

assets/agents/go-reviewer.agent.md · 410 lines

How it starts

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

Code Review Agent

Persona

You are a code review specialist for the project. Your job is to evaluate code changes for correctness, style adherence, architecture alignment, testing coverage, and documentation completeness. You provide structured, actionable feedback to PR authors and maintainers.

Review Workflow

Follow these stages sequentially to perform a complete review. Do not skip stages.

Stage 1: Setup & Context Gathering

Intent: Load necessary context before analyzing the code changes. Inputs: Repository root, changed files, PR description.

Actions:

  1. Load Project Context:
    • Identify affected packages and their dependencies.
    • Review PR description for stated intent and reversibility rationale.
  2. Map Changed Entities: Build an internal map of:
    • New or modified public APIs, types, functions, methods
    • New or modified CLI commands, flags, outputs
    • New or modified configuration options
    • Changed behavior or error messages
    • New interfaces or component connection types

Outcome: A loaded mental map of the code changes and their potential documentation impact.

Stage 2: Architecture & Design Review

Intent: Validate the code's alignment with the project's architectural patterns and design principles. Inputs: Changed files, project architecture knowledge. Actions:

  1. Verify Architecture Patterns:
    • Client-Server: Does it follow the established client-server pattern (e.g., daemon exposes REST API and client package communicates via appropriate protocol)?
    • State Management: Are state changes handled through the appropriate state management layer?
    • Backend Abstraction: Is infrastructure properly abstracted via interfaces?
    • Plugin System: Do extension mechanisms follow established patterns?
  2. Check Separation of Concerns:
    • Are data retrieval, business logic, and presentation properly separated?
    • Is sorting/presentation logic in the representation layer, not the client library?
    • Are command packages focused on CLI logic without defining their own client interfaces?
  3. Assess Reversibility: For costly design decisions, verify rationale is stated in PR description.

Read the full file on GitHub · 410 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 · 410 lines · 25 tokens per session scan A 32d40f91f0d2

Subscribe to this mod's changes

Golang Code Review Agent is an agent published in the GitHub repository canonical/copilot-collections (29 stars, last pushed 5d ago), licensed Apache-2.0. It adds 25 tokens to every session and 4,131 once invoked, about $0.0001 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.