trpc-agent-go AGENTS.md

trpc-agent-go AGENTS.md is an instructions file for Codex, OpenCode from trpc-group/trpc-agent-go. It costs 1,602 tokens per session, scanned A, original, Apache-2.0.

Project instructions for tRPC-Agent-Go, a Go framework for building AI-agent systems. They describe the project's structure, design rules, compatibility expectations, and development workflow.

In plain words
What is it for?
Use them when modifying the framework, adding or changing public behavior, updating documentation, or following its Go design conventions.
Why use it?
They give coding agents the context needed to make changes that fit a multi-module Go framework without breaking existing behavior.

Instructions file for CodexOpenCode

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 instructions/trpc-group/trpc-agent-go/agents-md
Clone the repo
git clone --depth 1 https://github.com/trpc-group/trpc-agent-go

Made for: Codex, OpenCode.

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 trpc-agent-go AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/trpc-group/trpc-agent-go/agents-md.svg)](https://agentmods.dev/instructions/trpc-group/trpc-agent-go/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/trpc-group/trpc-agent-go/agents-md"><img src="https://agentmods.dev/badge/instructions/trpc-group/trpc-agent-go/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,602 This file is loaded in full into every session.
When invoked 1,602 The same file — it is already loaded in full.
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.01602 $0.01602
Opus 5 $0.00801 $0.00801
Sonnet 5 $0.00320 $0.00320
Haiku 4.5 $0.00160 $0.00160

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

Security

Grade A, and why

trpc-agent-go AGENTS.md 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 4d 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.md · 212 lines

How it starts

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

AGENTS.md

Project overview

tRPC-Agent-Go is a Go multi-module framework for building AI agent systems. It is not a standalone application and does not have a single root main.go.

The root module path is:

trpc.group/trpc-go/trpc-agent-go

The root module requires Go 1.21. Some independent modules, including modules under test/, require newer Go toolchains.

Engineering principles

Preserve syntax, semantic, behavioral, serialization, persistence, and protocol compatibility unless the task explicitly requires a documented change.

Prefer minimal, focused changes. Avoid unrelated refactoring and avoid creating new abstractions before their responsibility and ownership are clear.

New behavior should preserve existing defaults and should be opt-in when practical.

Framework abstractions should be capability-oriented. Keep implementation-specific concepts in their owning packages unless their semantics are genuinely shared across implementations.

Update documentation and examples whenever public behavior, defaults, configuration, or recommended usage changes.

Go design conventions

Follow Effective Go and the Go Code Review Comments, while preserving established APIs when compatibility requires it.

  • Use gofmt and goimports.
  • Use short, lowercase, single-word package names, and make exported names read naturally with their package qualifier without stutter.
  • Use MixedCaps and spell common initialisms consistently.
  • Prefer small, consumer-oriented interfaces and concrete constructor return types. Do not add an interface for a hypothetical abstraction.
  • Make zero values useful when practical; use constructors to establish invariants when necessary.
  • Pass context.Context first when needed, propagate cancellation, and avoid storing contexts in structs unless the type owns that lifetime.
  • Keep error strings lowercase and without trailing punctuation. Preserve causes with %w when callers need them; expose inspectable errors only for a stable caller contract.
  • Make goroutine, channel, resource, cancellation, and shutdown ownership explicit.
  • Write Godoc for exported declarations as complete sentences beginning with the declared name and describing the caller-visible contract.

Read the full file on GitHub · 212 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. 4d ago First seen · 212 lines · 1,602 tokens per session scan A ff861570517f

Subscribe to this mod's changes

trpc-agent-go AGENTS.md is an instructions file published in the GitHub repository trpc-group/trpc-agent-go (1,763 stars, last pushed today), licensed Apache-2.0. It adds 1,602 tokens to every session, about $0.0080 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.