agentleFS
aaif-gooseaaif-goose/goose/AGENTS.md

goose

AGENTS.md55k starsChanged 8 months agoApache-2.0View on GitHub

goose is an AI agent framework in Rust with CLI and Electron desktop interfaces. The issue is the source of truth for work intended for an upstream pull request. Track issue status on the Goose Issues board. Maintainer-directed work, urgent security fixes, release automation, and local or exploratory changes do not require a Ready issue. goose is retiring its project-specific MCP server directory in favor of the official MCP Registry and its server.json format. See Discussion #10830 for the decision…

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projectsWeek of Nov 22: 0 new projects
Oct 2026Nov 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about aaif-goose/goose

The biggest 5 of 78 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 78

Talked about on GitHub and Bluesky (78 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 28

23 more on Bluesky
  • 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,736 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.

  • In this repository4 other files it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

19 rules. About 0 are common, 12 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Before implementing an issue for a pull request, confirm that it is on the board with Status Ready.

    line 9
  2. Distinctive:

    Do not implement issues in Inbox, Needs info, or Accepted / design.

    line 10
  3. Distinctive:

    Read the agreed design, constraints, non-goals, and verification plan before changing code.

    line 11
  4. Distinctive:

    Keep the implementation within the issue's agreed scope.

    line 12
  5. Distinctive:

    If implementation reveals a material design change, return to the issue before continuing.

    line 13
  6. Distinctive:

    Every external pull request must link the Ready issue it implements and explain how the verification plan was performed.

    line 14
  7. Very specific:

    Do not add new third-party servers to documentation/static/servers.json.

    line 23
  8. Very specific:

    Treat the existing goose directory as legacy data while registry-backed discovery and installation are implemented.

    line 25
  9. Distinctive:

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

    line 32
  10. Distinctive:

    Keep comments concise; do not repeat context already present in the thread.

    line 35
  11. Distinctive:

    Use short paragraphs or bullets, and include implementation details only when they affect a decision or review.

    line 36
  12. Distinctive:

    Prefer one clear summary over multiple incremental comments.

    line 37
  13. Very specific:

    Test: Prefer tests/ folder, e.g.

    line 106
  14. Very specific:

    Test: When adding features, update goose-self-test.yaml, rebuild, then run goose run --recipe goose-self-test.yaml to validate

    line 107
  15. Very specific:

    Never: Recreate ui/desktop/src/api or add @hey-api/openapi-ts to ui/desktop

    line 126
  16. Distinctive:

    Never: Skip cargo fmt

    line 129
  17. Distinctive:

    Never: Merge without running clippy

    line 130
  18. Very specific:

    Never: Comment self-evident operations (// Initialize, // Return result), getters/setters, constructors, or standard Rust idioms

    line 131
  19. Very specific:

    Never: Overwrite a live binary in place (e.g.

    line 132

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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.

MCP Server Directory

goose is retiring its project-specific MCP server directory in favor of the official MCP Registry and its server.json format.

  • Do not add new third-party servers to documentation/static/servers.json; these contributions are no longer accepted.
  • Direct server authors to publish to the official MCP Registry instead.
  • Treat the existing goose directory as legacy data while registry-backed discovery and installation are implemented.
  • Changes that maintain, migrate, or remove existing directory entries are allowed when they support the migration and are within an approved issue's scope.

See Discussion #10830 for the decision and migration direction.

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.

Setup

source bin/activate-hermit
cargo build

Commands

Build

cargo build                   # debug
cargo build --release         # release  
just release-binary           # release binary

Test

cargo test                   # all tests
cargo test -p goose          # specific crate
cargo test --package goose --test mcp_integration_test
just record-mcp-tests        # record MCP

Lint/Format

cargo fmt
cargo clippy --all-targets -- -D warnings

UI

just run-ui                  # start desktop
cd ui/desktop && pnpm run typecheck
cd ui/desktop && pnpm test   # test UI

Structure

crates/       # Rust workspace members — see root Cargo.toml (`members = ["crates/*"]`)
ui/desktop/   # Electron app
ui/text/      # deprecated ACP TUI (see ui/text/README.md)

Some workspace crates, including those that make up the GDK, are published to crates.io and expose public APIs. The authoritative list of GDK crates is the release = true, version_group = "gdk" package set in release-plz.toml, which drives the GDK release; run python3 crates/goose-sdk/scripts/gdk-release.py crates to print it. Other crates, such as goose and goose-cli, do not provide stable public APIs; their pub items are internal implementation details and may change without notice.

Development Loop

# 1. source bin/activate-hermit
# 2. Make changes
# 3. cargo fmt

Run these only if the user has asked you to build/test your changes:

# 1. cargo build
# 2. cargo test -p <crate>
# 3. cargo clippy --all-targets -- -D warnings

Rules

  • Test: Prefer tests/ folder, e.g. crates/goose/tests/
  • Test: When adding features, update goose-self-test.yaml, rebuild, then run goose run --recipe goose-self-test.yaml to validate
  • Error: Use anyhow::Result
  • Provider: Implement Provider trait see providers/base.rs
  • MCP: Extensions in crates/goose-mcp/
  • UI Desktop: Use ACP SDK types or local src/types/* types. Do not import generated OpenAPI types/client code from ui/desktop/src/api

Code Quality

  • Comments: Write self-documenting code - prefer clear names over comments
  • Comments: Never add comments that restate what code does
  • Comments: Only comment for complex algorithms, non-obvious business logic, or "why" not "what"
  • Simplicity: Don't make things optional that don't need to be - the compiler will enforce
  • Simplicity: Booleans should default to false, not be optional
  • Errors: Don't add error context that doesn't add useful information (e.g., .context("Failed to X") when error already says it failed)
  • Simplicity: Avoid overly defensive code - trust Rust's type system
  • Logging: Clean up existing logs, don't add more unless for errors or security events

Never

  • Never: Recreate ui/desktop/src/api or add @hey-api/openapi-ts to ui/desktop
  • Cargo.toml: For human-authored dependency changes, use cargo add instead of manually editing dependency entries unless there is a specific reason not to.
  • Cargo.toml: Automated dependency bump PRs are exempt; when manual edits are necessary, keep Cargo.lock consistent.
  • Never: Skip cargo fmt
  • Never: Merge without running clippy
  • Never: Comment self-evident operations (// Initialize, // Return result), getters/setters, constructors, or standard Rust idioms
  • Never: Overwrite a live binary in place (e.g. cp/fs.copyFileSync onto an existing executable) - unlink or atomic-rename the destination first, otherwise macOS SIGKILLs running processes with "Code Signature Invalid"

Entry Points

  • CLI: crates/goose-cli/src/main.rs
  • UI: ui/desktop/src/main.ts
  • Agent: crates/goose/src/agents/agent.rs

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.