AGENTS.md and CLAUDE.md examples for Go
Of 146 actively developed open-source products built with Go, 92 (63%) keep instruction files for coding agents: AGENTS.md in 75, CLAUDE.md in 54. The typical file is 879 words, and most cover pointers to other docs (75%) and commands to build, run and test (69%).
Real files to read
From the best-known open-source Go products whose file is a real one (not a pointer to another), 200 to 4,000 words, covering at least three of the usual topics, written mainly in Go. Each opens on GitHub.
| Project | File | Stars | Words | Covers |
|---|---|---|---|---|
| infiniflow/ragflow | AGENTS.md | 92,976 | 2,203 | CommandsTestingDoc pointersStructure |
| MHSanaei/3x-ui | CLAUDE.md | 48,724 | 1,917 | CommandsTestingDoc pointersCode styleGit |
| kubernetes/kops | AGENTS.md | 16,694 | 714 | CommandsTestingDoc pointersStructureCode styleGit |
| Untrivial-ai/agent-orchestrator | AGENTS.md | 13,783 | 2,034 | CommandsTestingDoc pointersStructureCode styleGit |
| replicate/cog | AGENTS.md | 9,491 | 2,260 | CommandsTestingDoc pointersStructureCode style |
| getarcaneapp/arcane | AGENTS.md | 8,095 | 1,726 | TestingDoc pointersStructure |
| kenn-io/agentsview | AGENTS.md | 6,289 | 1,234 | Doc pointersCode styleGit |
| dkron-io/dkron | AGENTS.md | 4,740 | 867 | CommandsTestingStructure |
| kagent-dev/kagent | AGENTS.md | 4,111 | 1,325 | CommandsTestingDoc pointersStructure |
| nextlevelbuilder/goclaw | AGENTS.md | 3,677 | 3,111 | CommandsTestingDoc pointersStructureCode style |
| storj/storj | CLAUDE.md | 3,283 | 1,375 | CommandsTestingDoc pointersStructureCode style |
| amalshaji/portr | AGENTS.md | 3,189 | 356 | CommandsTestingStructureCode styleGit |
What Go projects put in them
Share of the 84 files that cover each topic, against all 731 files we read.
How they talk to the agent: 73% say “never” or “do not” somewhere (all files: 80%), 24% shout a rule in capitals like IMPORTANT or MUST (23%), and 15% tell it to ask before some changes (20%).
The tools they name
Package managersgo (27 files), npm (15 files), pnpm (14 files)
Tests and lintersVitest (11), Playwright (11), ESLint (10), pytest (7), Prettier (7), Jest (3)
Named more than in files generallyDocker (29)
Questions
What should an AGENTS.md for a Go project include?
In 84 files from open-source Go products: pointers to other docs (75%), commands to build, run and test (69%), testing (63%), git, commits and pull requests (45%), project structure (44%), code style (40%). The package manager they name most is go (27 files).
AGENTS.md or CLAUDE.md?
Among these Go products, 75 keep an AGENTS.md and 54 a CLAUDE.md. Across every product we checked, 354 keep both, and in 189 of those the CLAUDE.md only points to the AGENTS.md (a symlink or a line like @AGENTS.md), so there's one file to maintain. Codex, Cursor, Copilot and others read AGENTS.md; Claude Code reads CLAUDE.md.
How long is a typical Go AGENTS.md?
The median is 879 words in these 84 files; across all 731 files we read, half are between 444 and 1,727 words.
How this is counted: the GitHub repos of open-source products built with Go, pushed to in the 180 days before 2026-10-28. We read each repo's AGENTS.md, CLAUDE.md and other agent files; what's published here is counts and links, not their text. All files, by the numbers.