goose AGENTS.md

goose AGENTS.md is an instructions file for Codex, OpenCode from aaif-goose/goose. It costs 1,230 tokens per session, scanned A, original, Apache-2.0.

A set of contribution instructions for Goose, an AI agent framework written in Rust, with command-line and desktop applications.

In plain words
What is it for?
It guides issue selection, design review, implementation, verification, pull-request links, issue templates, and project communication.
Why use it?
It helps contributors work within the agreed issue scope and follow the project’s required process before opening a GitHub pull request.

Instructions file for CodexOpenCode

About the project

Goose is an open-source AI agent that runs on a computer as a desktop app, command-line tool, or API and can perform tasks beyond code completion. Developers and other users employ it for coding, research, writing, automation, and data analysis with different language-model providers and extensions. The catalogue add-ons define parts of its agent workflow and behavior.

aaif-goose/goose · 53,888 stars · on GitHub

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/aaif-goose/goose/agents-md
Clone the repo
git clone --depth 1 https://github.com/aaif-goose/goose

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 goose AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/aaif-goose/goose/agents-md.svg)](https://agentmods.dev/instructions/aaif-goose/goose/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/aaif-goose/goose/agents-md"><img src="https://agentmods.dev/badge/instructions/aaif-goose/goose/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,230 This file is loaded in full into every session.
When invoked 1,230 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.01230 $0.01230
Opus 5 $0.00615 $0.00615
Sonnet 5 $0.00246 $0.00246
Haiku 4.5 $0.00123 $0.00123

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

Security

Grade A, and why

goose 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 5d 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 · 125 lines

How it starts

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

AGENTS Instructions

goose is an AI agent framework in Rust with CLI and Electron desktop interfaces.

Contribution Workflow

The issue is the source of truth for work intended for an upstream pull request. Track issue status on the Goose Issues board.

  • Before implementing an issue for a pull request, confirm that it is on the board with Status Ready.
  • Do not implement issues in Inbox, Needs info, or Accepted / design. Help resolve the issue discussion instead.
  • Read the agreed design, constraints, non-goals, and verification plan before changing code.
  • Keep the implementation within the issue's agreed scope.
  • If implementation reveals a material design change, return to the issue before continuing.
  • Every external pull request must link the Ready issue it implements and explain how the verification plan was performed.
  • Structure new issues on the matching template in .github/ISSUE_TEMPLATE/ and set the issue type (e.g. Bug, Feature). gh issue create does not apply templates automatically.

Maintainer-directed work, urgent security fixes, release automation, and local or exploratory changes do not require a Ready issue.

GitHub Communication

Write issue and pull request comments for humans, not as exhaustive work logs.

  • Lead with the conclusion or action needed.
  • Keep comments concise; do not repeat context already present in the thread.
  • Use short paragraphs or bullets, and include implementation details only when they affect a decision or review.
  • Prefer one clear summary over multiple incremental comments.

Agent Loop Migration

We are replacing the legacy agent loop in crates/goose/src/agents/agent.rs with the state machine in crates/goose/src/agents/state_machine/. The state-machine path is enabled with GOOSE_STATE_MACHINE=1.

Until the migration is complete, changes to agent-loop behavior must be implemented and tested in both paths. When reviewing code, check whether a change to either path also applies to the other and flag missing parity.

Read the full file on GitHub · 125 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. 5d ago First seen · 125 lines · 1,230 tokens per session scan A f894fb3d53e8

Subscribe to this mod's changes

goose AGENTS.md is an instructions file published in the GitHub repository aaif-goose/goose (53,888 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,230 tokens to every session, about $0.0062 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.