adk-go: Instructions file for Codex

AGENTS.md

adk-go AGENTS.md is an instructions file for Codex, OpenCode from google/adk-go. It costs 5,510 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for developers and coding agents working on Google’s ADK Go, a Go toolkit for building AI agents. They describe the project, setup commands, repository layout, and completion criteria.

In plain words
What is it for?
Setting up the ADK Go repository, choosing the right branch and commands, and verifying changes across its Go modules.
Why use it?
They give an unfamiliar contributor the project context and the checks needed before considering a change finished.

Instructions file for CodexOpenCode ✓ vendor

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions subagents; mentions Claude Code; mentions AGENTS.md.

This is google/adk-go's own configuration. It tells Codex and OpenCode how to work on adk-go itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything adk-go configures →

About the project

Agent Development Kit for Go is a Go framework for building, evaluating, deploying, and coordinating AI agents through code. Developers use it to define agent logic, connect tools, compose multi-agent systems, and deploy applications in cloud environments, while retaining compatibility with models and frameworks beyond Gemini. The catalogue entries provide skills and instructions for working with ADK Go.

google/adk-go · 8,943 stars · on GitHub · google.github.io

Reuse

Borrowing it

Nothing to install: this file belongs to google/adk-go. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/google/adk-go/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/google/adk-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 adk-go AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/google/adk-go/agents-md/github.svg)](https://agentmods.dev/instructions/google/adk-go/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/google/adk-go/agents-md"><img src="https://agentmods.dev/badge/instructions/google/adk-go/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for adk-go AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/google/adk-go/agents-md"><img src="https://agentmods.dev/badge/instructions/google/adk-go/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,510 This file is loaded in full into every session.
When invoked 5,510 The same file — it is already loaded in full.
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.05510 $0.05510
Opus 5.5 $0.02204 $0.02204
Sonnet 5.5 $0.01102 $0.01102
Haiku 4.5 $0.00551 $0.00551

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

Security

Grade A, and why

adk-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 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.

AGENTS.md · 428 lines

How it starts

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

AGENTS.md

Context for AI coding agents (Claude Code, Gemini CLI, Cursor, Copilot, etc.) working in the ADK Go repository. Human contributors should start with CONTRIBUTING.md.

Project overview

ADK Go (google.golang.org/adk/v2) is an open-source, code-first Go toolkit for building, evaluating, and deploying AI agents. It is model-agnostic but optimized for Gemini, and is one of several ADK implementations — Go, Python, Java, Kotlin, and TypeScript — that share a conceptual model but are independent codebases. Requires the Go version declared in go.mod.

Development happens on main, the 2.x line. v1 is the maintenance branch for 1.x; target it only for fixes that must ship to 1.x. See Branches.

Skills

See AI-assisted development in CONTRIBUTING.md for what this repo ships. The rule for agents: task-specific instructions live in .agents/skills/<name>/SKILL.md, and you read the matching one before starting that kind of work.

Setup & core commands

This repo is multi-module: the root module google.golang.org/adk/v2 plus plugin/agentanalytics. Set up a Go workspace first — go.work is local-only and gitignored, and go work init fails if one already exists:

test -f go.work || go work init
go work use -r .

Then run from the repo root. The work pattern spans every module in the workspace, while ./... matches only the module you are standing in:

  • Build: go build -mod=readonly work
  • Test: go test -race -mod=readonly -count=1 -shuffle=on work
  • Single pkg: go test -race ./agent/...
  • Lint: golangci-lint run (per module; v2, CI pins v2.3.1; config in .golangci.yml)
  • Tidy check: go mod tidy -diff (per module; must print nothing)
  • Format: golangci-lint fmt (per module; applies gofumpt + goimports)

Without a go.work, work silently falls back to the root module alone and still exits 0, so confirm the workspace exists before trusting a green run.

Read the full file on GitHub · 428 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 Changed · +5 tokens per session 081757b7611c
  2. 25d ago Changed · +5 lines · +101 tokens per session 8c152d17fa59
  3. 1mo ago Changed · +47 lines · +753 tokens per session b3b3ec68757a
  4. 1mo ago Changed · +122 lines · +1,491 tokens per session 3cf4df890e79
  5. 1mo ago Changed · +48 lines · +709 tokens per session 99150339598b
  6. 2mo ago Changed · +7 lines · +70 tokens per session c273def058d2
  7. 2mo ago First seen · 199 lines · 2,381 tokens per session scan A 2bc2a462bd5b

Subscribe to this mod's changes

adk-go AGENTS.md is an instructions file published in the GitHub repository google/adk-go (8,943 stars, last pushed yesterday), licensed Apache-2.0. It adds 5,510 tokens to every session, about $0.0220 per session on Opus 5.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.

Related

adk-go AGENTS.md compared with instructions from other repositories

adk-go AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adk-go AGENTS.mdgoogle/adk-goInstructions file8.9kyesterdayApache-2.0A5,510Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode