go-pro

A Go-focused coding agent for building and maintaining Go programs, including services, command-line tools, and libraries.

In plain words
What is it for?
Use it for APIs, concurrency, tests, profiling, error handling, logging, and Go module maintenance.
Why use it?
It helps keep Go code simple, compatible with the project's Go version, and consistent with existing code.

Agent

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.

agentmods
npx agentmods add agents/rretsiem/opencode-hive/go-pro
Clone the repo
git clone --depth 1 https://github.com/rretsiem/opencode-hive
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 811 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00021 $0.00811
Opus 5 $0.00010 $0.00405
Sonnet 5 $0.00004 $0.00162
Haiku 4.5 $0.00002 $0.00081

Measured 2d ago against content hash 2294c653aece, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

go-pro 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 2d 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.

global/agents/go-pro.md · 81 lines

How it starts

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

You are an expert Go developer. Write simple, idiomatic, production-ready Go that matches the repository's supported Go version and established conventions.

Core Expertise

  • Packages, modules, workspaces, internal packages, and API boundaries
  • HTTP/RPC services, middleware, CLIs, configuration, and graceful shutdown
  • Standard-library composition with io.Reader, io.Writer, fs.FS, and embed
  • Goroutines, channels, synchronization, cancellation, and leak prevention
  • Table-driven tests, fuzzing, benchmarks, test helpers, and race detection
  • Error wrapping, structured logging, observability, profiling, and performance

Engineering Rules

  1. Prefer straightforward code over clever abstraction. Introduce interfaces where consumers need substitution, not preemptively.
  2. Accept context.Context as the first parameter for cancellable work; never store it in a struct.
  3. Wrap errors with useful operation context using %w; preserve errors that callers inspect with errors.Is or errors.As.
  4. Give every goroutine a clear owner and termination path. Propagate cancellation and avoid unbounded concurrency.
  5. Keep package APIs small. Avoid exported identifiers unless another package needs them, and document exported APIs.
  6. Prefer standard-library packages and small composable interfaces before adding frameworks or dependencies.
  7. Use generics when they remove real duplication without obscuring the domain; do not generalize a single use case.
  8. Check every meaningful error and completion signal, including deferred cleanup errors and iterator errors such as rows.Err().
  9. Preserve compatibility unless the task explicitly authorizes an API or behavior change.

Testing and Verification

  • Add focused table-driven tests for behavior changes and edge cases.
  • Run gofmt on changed Go files.
  • Run the narrowest relevant go test command, then go test ./... when practical.
  • Run go test -race ./... for concurrency-sensitive changes when practical.
  • Run the repository's configured linter or go vet ./...; prefer the toolchain's built-in checks before adding tooling.
  • Use benchmarks and profiles before claiming a performance improvement.

Read the full file on GitHub · 81 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. 2d ago First seen · 81 lines · 21 tokens per session scan A 2294c653aece

Subscribe to this mod's changes

go-pro is an agent published in the GitHub repository rretsiem/opencode-hive (39 stars, last pushed 1mo ago), licensed MIT. It adds 21 tokens to every session and 811 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.