goa-ai: Instructions file for Codex

AGENTS.md

goa-ai AGENTS.md is an instructions file for Codex, OpenCode from goadesign/goa-ai. It costs 2,970 tokens per session, scanned A, original, MIT.

Repository instructions for goa-ai, covering its Go coding style, project structure, planning rules, error handling, and review practices.

In plain words
What is it for?
Use them when working in the goa-ai repository, especially when planning edits, searching before changing files, simplifying designs, or checking automated review findings.
Why use it?
They give a coding agent clear project-specific expectations before it changes code or prepares a merge request.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is goadesign/goa-ai's own configuration. It tells Codex and OpenCode how to work on goa-ai 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 goa-ai configures →

Reuse

Borrowing it

Nothing to install: this file belongs to goadesign/goa-ai. 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/goadesign/goa-ai/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/goadesign/goa-ai

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 goa-ai AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/goadesign/goa-ai/agents-md/github.svg)](https://agentmods.dev/instructions/goadesign/goa-ai/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/goadesign/goa-ai/agents-md"><img src="https://agentmods.dev/badge/instructions/goadesign/goa-ai/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 goa-ai AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/goadesign/goa-ai/agents-md"><img src="https://agentmods.dev/badge/instructions/goadesign/goa-ai/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,970 This file is loaded in full into every session.
When invoked 2,970 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.02970 $0.02970
Opus 5.5 $0.01188 $0.01188
Sonnet 5.5 $0.00594 $0.00594
Haiku 4.5 $0.00297 $0.00297

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

Security

Grade A, and why

goa-ai 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 10d 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 · 186 lines

How it starts

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

You are an agentic systems engineer. Optimize for elegance, strong contracts, conceptual correctness, and less code. Prefer deleting bad abstractions to preserving them. Do not add fallbacks, coercions, or defensive code that hides bugs.

Repository Guidelines

Core Operating Rules

  • Plan before acting: for <=2 files, state a brief plan then implement; for >=3 files, write a step-by-step plan first.
  • Read before editing—including the owning section of DESIGN.md and all callers on origin/main. Search instead of guessing.
  • Before merging a pull request, address every applicable automated review finding. Verify each finding against the current diff, fix confirmed issues, and explicitly resolve or explain findings that do not require a change.
  • Fix root causes, not local workarounds.
  • Prefer the simplest design that satisfies the contract. Reduce surface area, delete dead code, and avoid new concepts unless they clearly pay for themselves. When retained state, cached decoded values, copy helpers, or background scans cause memory, CPU, or coordination cost, test deleting that state, copy helper, or scan outright across all current flows before proposing any cap, eviction policy, retention flag, or wrapper.
  • Be concise in progress updates and summaries.
  • Keep one canonical implementation and one source of truth per concept. Delete unused code and commented-out code.
  • Before adding an exported type, shared interface, callback shape, wire record, or package dependency, trace the complete producer-to-consumer flow and separate the unavoidable domain concept from implementation plumbing. List which facts the DSL and generator already know, compare private, raw, generated, and public representations, and choose the smallest public contract. Do not export a type merely to avoid an import cycle, simplify one call site, or pass parsed data to code that can privately own decoding. Complete this public-surface and generation-first review before editing; successful tests and a later cleanup pass do not make unnecessary API surface acceptable.
  • Validate only at boundaries: HTTP/gRPC handlers, event consumers, DB results, third-party APIs, ctx.Value(), type assertions, and required map lookups. Inside the codebase, trust Goa and construction-time invariants.
  • Fail fast on invariant violations. Do not add nil/empty guards, fallback behavior, back-compat fishing logic, or "should not happen" branches for values guaranteed by contracts.
  • Do not perform best-effort coercions in runtime/codegen. If a payload, result, or type assertion does not match the contract, return a precise error instead of silently remapping it.
  • Configuration belongs in constructors, not environment-variable reads in core logic.
  • Keep docs in sync with behavior:
    • User-facing goa-ai DSL, runtime, or codegen changes must update content/en/docs/2-goa-ai/ and translated pages when applicable.
    • Update README.md and DESIGN.md when behavior changes.

Read the full file on GitHub · 186 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. 10d ago Changed · +69 tokens per session c0ffb880587e
  2. 28d ago Changed · +2 tokens per session 5232ef887d61
  3. 2mo ago Changed · -2 tokens per session a3297bfb7556
  4. 2mo ago Changed · +9 tokens per session 0a554002b04b
  5. 2mo ago First seen · 186 lines · 2,892 tokens per session scan A c299793285ed

Subscribe to this mod's changes

goa-ai AGENTS.md is an instructions file published in the GitHub repository goadesign/goa-ai (12 stars, last pushed yesterday), licensed MIT. It adds 2,970 tokens to every session, about $0.0119 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-31.

Related

goa-ai AGENTS.md compared with instructions from other repositories

goa-ai AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
goa-ai AGENTS.mdgoadesign/goa-aiInstructions file12yesterdayMITA2,970Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode