trpc-agent-go
AGENTS.md1.8k starsChanged 6 months agoApache-2.0View on GitHub
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: The root module requires Go 1.21. Some independent modules, including modules under test/, require newer Go toolchains. 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…
Trending
Less talk lately.about the whole repository
Who's talking about trpc-group/trpc-agent-go
- sudosubin/agents.nix“agent-skills.github.trpc-group.trpc-agent-go: init at 1.11.2”GitHub · Oct 4, 2026
- Tencent/WeKnora“设计规格:tRPC 原生 Agent 全面迁移与一次切换”GitHub · Sep 19, 2026
- XnLemon/trpc-agent-service“channel: implement tenant-scoped Telegram long-polling adapter”GitHub · Aug 23, 2026
- sks/trpc-agent-go“model/anthropic: keep numeric JSON Schema bounds as numbers”GitHub · Aug 22, 2026
- XnLemon/trpc-agent-service“docs: establish contribution guidelines”GitHub · Aug 21, 2026
The biggest 5 of 24 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 24
Talked about on GitHub (24 times).
On GitHub · 24
- Oct 4, 2026agent-skills.github.trpc-group.trpc-agent-go: init at 1.11.2 — sudosubin/agents.nix0 reactions
- Sep 19, 2026设计规格:tRPC 原生 Agent 全面迁移与一次切换 — Tencent/WeKnora0 reactions
- Aug 23, 2026channel: implement tenant-scoped Telegram long-polling adapter — XnLemon/trpc-agent-service0 reactions
- Aug 22, 2026model/anthropic: keep numeric JSON Schema bounds as numbers — sks/trpc-agent-go0 reactions
- Aug 21, 2026docs: establish contribution guidelines — XnLemon/trpc-agent-service0 reactions · 2 comments
19 more on GitHub
- Aug 6, 2026feat(integrations): add tRPC-Agent-Go — ag-ui-protocol/ag-ui0 reactions · 7 comments
- Jul 29, 2026Adopt CI quality gates learned from trpc-agent-go audit — Elysium-Labs-EU/eos-deploy-action0 reactions
- Jul 29, 2026Adopt CI quality gates learned from trpc-agent-go audit — Elysium-Labs-EU/themis0 reactions
- Jul 29, 2026Adopt CI quality gates learned from trpc-agent-go audit — Elysium-Labs-EU/theia0 reactions
- Jul 29, 2026Adopt CI quality gates learned from trpc-agent-go audit — Elysium-Labs-EU/eos-plugins0 reactions
- Jul 29, 2026Adopt CI quality gates learned from trpc-agent-go audit — Elysium-Labs-EU/argus0 reactions
- Jul 29, 2026Adopt CI quality gates learned from trpc-agent-go audit — Elysium-Labs-EU/eos0 reactions
- Jul 19, 2026feat(langfuse): opt-in identity options and attribute rewrite hook — sks/trpc-agent-go0 reactions
- Jul 6, 2026[bot] Add instrumentation for tRPC-Agent-Go framework (`trpc.group/trpc-go/trpc-agent-go`) — braintrustdata/braintrust-sdk-go0 reactions
- Jun 23, 2026memory: add LongMemEval benchmark — trpc-group/trpc-agent-go-benchmarksays it tested it0 reactions · 7 comments
- Apr 15, 2026summary: add on demand session benchmark — trpc-group/trpc-agent-go-benchmarksays it tested it0 reactions
- Mar 24, 2026[SUBMISSION] trpc-agent-go — ProSkillsMD/proskills0 reactions · 6 comments
- Mar 23, 2026memory: add session recall benchmark — trpc-group/trpc-agent-go-benchmarksays it tested it0 reactions · 2 comments
- Mar 18, 2026初始化secrtary项目 — sandyskies/secretary0 reactions · 4 comments
- Mar 3, 2026🚀 Integration: Add tRPC-Agent-Go Support (1st Party, Supported) — ag-ui-protocol/ag-ui0 reactions · 3 comments
- Feb 20, 2026fix(model/ollama): upgrade github.com/ollama/ollama to v0.16.3 to remove CVEs — sks/trpc-agent-go0 reactions
- Feb 20, 2026fix:replace spaolacci/murmur3 with hash/fnv to fix checkptr crash on Go 1.22+ — sks/trpc-agent-go0 reactions
- Nov 10, 2025Add trpc-agent-go — avelino/awesome-go0 reactions · 3 comments
- Aug 29, 2025Add trpc-agent-go — avelino/awesome-go0 reactions · 13 comments
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
34 rules. About 0 are common, 23 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈23
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Prefer minimal, focused changes.
- Distinctive: line 32
Update documentation and examples whenever public behavior, defaults, configuration, or recommended usage changes.
- Distinctive: line 37
Follow Effective Go and the Go Code Review Comments, while preserving established APIs when compatibility requires it.
- Very specific: line 40
Use gofmt and goimports.
- Distinctive: line 41
Use short, lowercase, single-word package names, and make exported names read naturally with their package qualifier without stutter.
- Distinctive: line 43
Use MixedCaps and spell common initialisms consistently.
- Distinctive: line 44
Prefer small, consumer-oriented interfaces and concrete constructor return types.
- Very specific: line 50
Keep error strings lowercase and without trailing punctuation.
- Distinctive: line 55
Write Godoc for exported declarations as complete sentences beginning with the declared name and describing the caller-visible contract.
- Distinctive: line 58
Do not refactor established public APIs or raise local style comments merely to apply an idiom when the existing code is clear and …
- Distinctive: line 68
search for existing types, methods, interfaces, options, callbacks, and extension points related to the requested capability.
- Distinctive: line 74
Do not add a parallel API until the distinction from existing APIs is clear.
- Distinctive: line 78
Keep implementation details unexported unless external consumers require them.
- Distinctive: line 80
Prefer extending a coherent existing contract over adding overlapping types or entry points.
- Distinctive: line 83
Do not change default, zero-value, nil, error, ordering, cancellation, retry, persistence, or lifecycle behavior accidentally.
- Distinctive: line 92
Treat exported APIs and externally observable behavior as long-lived compatibility commitments.
- Distinctive: line 100
default, zero-value, nil, error, ownership, concurrency, and lifecycle behavior.
- Distinctive: line 109
After implementation and before final validation, perform a separate review of the complete diff for public API and framework design.
- Distinctive: line 146
Every exported symbol has meaningful Godoc describing its contract, constraints, defaults, and errors where relevant.
- Distinctive: line 153
If an export cannot be justified, keep it private.
- Distinctive: line 155
If two public entry points perform substantially the same operation, consolidate them or establish and document clearly distinct contracts.
- Distinctive: line 165
Do not block a change based only on a personal naming or refactoring preference.
- Distinctive: line 171
Write source-code comments and Godoc in English.
- Very specific: line 179
When preparing a pull request, follow the title, description, language, and label requirements in CONTRIBUTING.md.
- Distinctive: line 184
Use validation proportional to the affected modules and risk.
- Very specific: line 187
Test the root module with go test ./....
- Very specific: line 188
Test the separate E2E module with cd test && go test ./....
- Very specific: line 189
Test all library modules with .github/scripts/run-go-tests.sh.
- Very specific: line 190
Check example modules with .github/scripts/check-examples.sh.
- Very specific: line 191
Run lint with golangci-lint run --timeout=10m.
- Very specific: line 192
Check formatting and any usage with gofmt -r 'interface{} -> any' -l ..
- Very specific: line 194
Check imports with goimports -l ..
- Distinctive: line 196
Run targeted tests while iterating and broader validation before delivery.
- Very specific: line 210
Every new Go file must include the Tencent Apache 2.0 license header from CONTRIBUTING.md.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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-goThe 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
gofmtandgoimports. - 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.Contextfirst 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
%wwhen 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.
Do not refactor established public APIs or raise local style comments merely to apply an idiom when the existing code is clear and compatible.
Implementation workflow
Understand the existing design
Before implementation:
- inspect the owning package and adjacent abstraction layers;
- search for existing types, methods, interfaces, options, callbacks, and extension points related to the requested capability;
- inspect relevant tests, documentation, examples, and recent design decisions;
- identify compatibility constraints and external implementations; and
- determine the smallest surface required by external consumers.
Do not add a parallel API until the distinction from existing APIs is clear.
Implement conservatively
Keep implementation details unexported unless external consumers require them.
Prefer extending a coherent existing contract over adding overlapping types or entry points.
Do not change default, zero-value, nil, error, ordering, cancellation, retry, persistence, or lifecycle behavior accidentally.
Tests must cover the intended public behavior, meaningful boundary conditions, and regression cases. Avoid tests that only execute code or assert language properties without protecting a project contract.
Public API and framework design
Treat exported APIs and externally observable behavior as long-lived compatibility commitments.
Public surface includes:
- exported types, functions, methods, interfaces, fields, constants, and variables;
- options, callbacks, plugin contracts, and sentinel errors;
- default, zero-value, nil, error, ownership, concurrency, and lifecycle behavior;
- JSON and other serialization fields;
- persistence schemas and migration behavior;
- protocol and wire contracts; and
- event ordering, streaming, cancellation, retry, and tool invocation behavior.
Mandatory second-pass design review
After implementation and before final validation, perform a separate review of the complete diff for public API and framework design.
This second pass is mandatory whenever the change adds or modifies public surface or externally observable behavior.
For every added or changed public symbol, verify:
- Export necessity The symbol is required by external consumers and cannot reasonably remain unexported.
- Package ownership The concept belongs to the declaring package and abstraction layer.
- API overlap The symbol does not duplicate or partially overlap an existing type, method, option, or extension point without a distinct user-facing contract.
- Naming semantics The name represents a stable user-facing concept rather than an incidental implementation or deployment detail.
- Extensibility The design can support foreseeable variants without parallel APIs, duplicated types, or incompatible renames.
- Compatibility Existing source, behavior, defaults, serialization, persistence, protocols, and external implementations remain compatible unless an intentional change is explicitly documented.
- Contract completeness Zero values, nil inputs, errors, ownership, mutation, concurrency, cancellation, cleanup, and lifecycle behavior are defined where relevant.
- Documentation Every exported symbol has meaningful Godoc describing its contract, constraints, defaults, and errors where relevant.
- Validation Tests exercise the public contract and externally observable behavior rather than only implementation details.
If an export cannot be justified, keep it private.
If two public entry points perform substantially the same operation, consolidate them or establish and document clearly distinct contracts.
Public API naming and local naming
Public API naming is a framework design concern. Review exported names for semantic accuracy, discoverability, package fit, abstraction boundaries, implementation leakage, and future evolution.
Unexported helpers, local variables, and test names are implementation details. Do not block a change based only on a personal naming or refactoring preference. Raise a local naming issue only when the name is misleading, conflicts with an established convention, or is likely to cause incorrect behavior.
Language and documentation
Write source-code comments and Godoc in English.
Translated documentation and test data that intentionally verifies localized behavior are exempt from the English requirement.
Comments should explain contracts, constraints, invariants, non-obvious behavior, or design reasoning. Avoid comments that merely restate the code.
When preparing a pull request, follow the title, description, language, and
label requirements in CONTRIBUTING.md.
Validation
Use validation proportional to the affected modules and risk.
- Build the root module with
go build ./.... - Test the root module with
go test ./.... - Test the separate E2E module with
cd test && go test ./.... - Test all library modules with
.github/scripts/run-go-tests.sh. - Check example modules with
.github/scripts/check-examples.sh. - Run lint with
golangci-lint run --timeout=10m. - Check formatting and
anyusage withgofmt -r 'interface{} -> any' -l .. - Check imports with
goimports -l ..
Run targeted tests while iterating and broader validation before delivery.
Repository-specific caveats
- The repository contains many independent Go modules. Running
go test ./...from the repository root does not test every module. - Tests use mocks and should not require external API credentials. Credentials are only needed for examples that call external services.
- The root module depends on
github.com/mattn/go-sqlite3, which requires CGO and a C compiler. golangci-lintandgoimportsmay require the Go binary directory to be onPATH.- Some modules use toolchain directives and may download a newer compatible Go toolchain automatically.
- Every new Go file must include the Tencent Apache 2.0 license header from
CONTRIBUTING.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

