agentleFS
jcarlos78jcarlos78/GAIDE/AGENTS.md

GAIDE

AGENTS.md8 starsChanged 3 months agoMITView on GitHub

How to use this file: this is the canonical briefing for any coding agent working on this repository — Claude Code, Google Antigravity, Cursor, Codex, Zed, Copilot, Gemini CLI, or a human. Tools that read AGENTS.md load it natively; Claude Code loads it via .claude/CLAUDE.md; Antigravity via .agents/rules/. Fill in the sections marked with [ ]. Project name: [PROJECT NAME] One-line description: [WHAT THE APPLICATION DOES] Current status: [concept | in development | in production | in maintenance] Tool-specific bindings…

  • Reads credentials
  • Deletes or force-pushes
  • Commits and pushes

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. Ecoa-PUC-Rio/GAIDE★ 8100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 31,700 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 repository7 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

22 rules. About 0 are common, 20 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈20

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    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 any code change, the agent MUST:

    line 47
  2. Very specific:

    Never read .env files, private keys (*.pem, *.key, id_rsa*), or credential stores (~/.ssh, ~/.aws, ~/.config/gcloud).

    line 68
  3. Distinctive:

    Never run git push --force, git reset --hard, or pipe downloads into a shell.

    line 69
  4. Distinctive:

    Change size: prefer small, atomic changes.

    line 89
  5. Distinctive:

    Comments: only when the *why* is not obvious from the code.

    line 90
  6. Very specific:

    Logging: follow the convention defined in a docs/adr/NNNN-logging-strategy.md ADR (create one if missing).

    line 92
  7. Distinctive:

    Simplicity first: prefer the smallest code that solves the actual problem.

    line 99
  8. Distinctive:

    Use this sequence in every non-trivial session.

    line 107
  9. Distinctive:

    Read AGENTS.md, the relevant spec, and the constitution if the task changes behavior.

    line 110
  10. Distinctive:

    Write down what is known, what is ambiguous, and what decisions require confirmation.

    line 114
  11. Distinctive:

    If the task is underspecified, ask before implementing.

    line 115
  12. Distinctive:

    Prefer testable criteria over general statements like "works well".

    line 119
  13. Distinctive:

    If behavior changes, confirm the applicable spec exists.

    line 122
  14. Distinctive:

    If no spec exists, propose writing one before implementation.

    line 123
  15. Distinctive:

    Do not refactor adjacent code.

    line 127
  16. Distinctive:

    Do not add abstractions or options that were not requested.

    line 128
  17. Distinctive:

    Keep the diff limited to the feature or bug being solved.

    line 129
  18. Distinctive:

    Run the smallest relevant validation: targeted tests, syntax checks, security checks, or manual verification.

    line 132
  19. Distinctive:

    Treat verification as part of the task, not an optional afterthought.

    line 133
  20. Distinctive:

    Check whether the change stayed inside scope.

    line 136
  21. Distinctive:

    Remove dead code only if it was created by this task.

    line 137
  22. Distinctive:

    Do not claim completion without evidence from the actual checks run.

    line 142

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

Project Briefing

How to use this file: this is the canonical briefing for any coding agent working on this repository — Claude Code, Google Antigravity, Cursor, Codex, Zed, Copilot, Gemini CLI, or a human. Tools that read AGENTS.md load it natively; Claude Code loads it via .claude/CLAUDE.md; Antigravity via .agents/rules/. Fill in the sections marked with [ ].


Overview

Project name: [PROJECT NAME]

One-line description: [WHAT THE APPLICATION DOES]

Current status: [concept | in development | in production | in maintenance]

Tech stack

  • Primary language: [e.g., Python 3.12 / Node.js 22 / Go 1.23]
  • Framework: [e.g., FastAPI / Next.js / etc.]
  • Database: [e.g., PostgreSQL 16]
  • Deployment: [e.g., GCP Cloud Run / AWS ECS / on-prem k8s]

Relevant folder structure

.
├── AGENTS.md               This file — canonical agent briefing
├── agents/                 Portable agent procedures (single source)
│   ├── skills/             Skills: spec writing, review, ADRs, tests, verification
│   └── reviewers/          Clean-context reviewer rubrics
├── scripts/                Portable enforcement checks (run in any tool, or by hand)
├── specs/                  SDD specs — source of truth for behavior
├── docs/adr/               Architecture Decision Records
├── PROGRESS.md             Session log — read at start, update at end
├── src/                    Source code
└── tests/                  Tests

Tool-specific bindings (generated from the portable sources by scripts/sync-adapters.sh — never edit them directly): .claude/ for Claude Code, .agents/ for Antigravity.

Session protocol

  • At session start: run ./init.sh (environment bring-up + health check — a failure means inherited broken state), then read PROGRESS.md and the recent git log to understand where the last session left off. If the previous session left something broken, fix that before starting new work. PROGRESS.md is local and gitignored — if it doesn't exist yet, create it (title + dated entries with done / next / known issues, newest first).
  • At session end: append an entry to PROGRESS.md (done / next / known issues).

Mandatory operating principles

Before any code change, the agent MUST:

  1. Read the constitution at specs/constitution.md.
  2. Check whether a spec exists for the feature at specs/<feature>/spec.md.
  3. If no spec exists, propose writing one using the spec-writer skill before coding.
  4. Follow the SDD flow: spec → plan → tasks → implementation.
  5. Never edit tests or task lists to make work appear done (Constitution Principle 9).

Enforcement checks

The checks in scripts/ are the portable enforcement layer. In Claude Code they fire automatically as hooks; in every other tool, run them yourself:

  • scripts/check-file.sh <file> — syntax check after editing a file
  • scripts/check-security.sh <file> — SAST (semgrep) / dependency scan (osv-scanner) on an edited file
  • scripts/check-secrets.sh — secret-pattern scan of content on stdin
  • scripts/check-clean-state.sh — before ending a session with uncommitted changes: secrets (gitleaks) + test suite

Whatever the tool, the guaranteed floor is the same for everyone: pre-commit (.pre-commit-config.yaml) and CI (.github/workflows/security.yml).

Ground rules (enforced as deny-permissions where the tool supports it)

  • Never read .env files, private keys (*.pem, *.key, id_rsa*), or credential stores (~/.ssh, ~/.aws, ~/.config/gcloud).
  • Never run git push --force, git reset --hard, or pipe downloads into a shell.
  • Secrets never enter versioned files, even as examples (Constitution Principle 6).

Code conventions

  • [e.g., ESLint config / Black + Ruff / gofmt]
  • [e.g., tests required for every public function]
  • [e.g., Conventional Commits]

Critical integrations

[List internal systems this project integrates with. For each, indicate whether there's an MCP configured.]

  • [System X] — [via MCP / via REST API / via client library]

MCP servers are declared in .mcp.json (canonical reference). See docs/mcp-setup.md for connecting them in each tool.

How the agent should work

  • Current autonomy mode: HIC (every code change requires explicit human approval before commit).
  • Change size: prefer small, atomic changes. No sweeping refactors without an ADR.
  • Comments: only when the why is not obvious from the code.
  • Tests: changing code that affects behavior without changing/adding tests is forbidden.
  • Logging: follow the convention defined in a docs/adr/NNNN-logging-strategy.md ADR (create one if missing).

Karpathy-inspired operating principles

These principles complement the constitution and keep agent behavior aligned with lean, deliberate coding:

  • Think before coding: state assumptions explicitly, surface uncertainty early, and ask clarifying questions instead of silently guessing.
  • Simplicity first: prefer the smallest code that solves the actual problem; avoid speculative abstractions, unnecessary config, or "clever" designs.
  • Surgical changes: touch only what is required for the task; do not refactor or "clean up" unrelated code, and preserve the existing style unless the task requires a justified change.
  • Goal-driven execution: define success criteria upfront, verify with tests or checks, and loop until the result is demonstrably correct rather than merely plausible.

In practice, this means: clarify ambiguities before implementation, keep diffs minimal, and verify behavior against the spec before claiming the task is done.

Session operating loop

Use this sequence in every non-trivial session. It is intentionally explicit so the agent does not drift into vague "make it work" mode:

  1. Read the brief and the repo contract
    • Read AGENTS.md, the relevant spec, and the constitution if the task changes behavior.
    • Identify the exact user goal and the scope boundary.
  2. State assumptions and surface uncertainty
    • Write down what is known, what is ambiguous, and what decisions require confirmation.
    • If the task is underspecified, ask before implementing.
  3. Define success criteria before code
    • Translate the request into verifiable outcomes: what should happen, what should not happen, and how it will be checked.
    • Prefer testable criteria over general statements like "works well".
  4. Check for the required spec/test path
    • If behavior changes, confirm the applicable spec exists.
    • If no spec exists, propose writing one before implementation.
    • For behavioral fixes, add or update the failing test first.
  5. Make the smallest possible change
    • Do not refactor adjacent code.
    • Do not add abstractions or options that were not requested.
    • Keep the diff limited to the feature or bug being solved.
  6. Verify against the actual task
    • Run the smallest relevant validation: targeted tests, syntax checks, security checks, or manual verification.
    • Treat verification as part of the task, not an optional afterthought.
  7. Review for drift
    • Check whether the change stayed inside scope.
    • Remove dead code only if it was created by this task.
    • Confirm there are no accidental edits outside the requested feature.
  8. Report outcome with evidence
    • State what changed, what was validated, and what remains uncertain.
    • Do not claim completion without evidence from the actual checks run.

This loop is the default for agent work in this repository, and it should be used whenever the task is more than a one-line typo or a trivial edit.

Available skills

Source of truth in agents/skills/ (Claude Code exposes them as /name via .claude/skills/; Antigravity as /name workflows via .agents/workflows/ — both generated):

  • spec-writer — write SDD specs
  • code-reviewer — review the current diff in a clean context (rubric in agents/reviewers/code-reviewer.md; never pass the reviewer the implementation conversation)
  • security-reviewer — security review of the current diff (rubric in agents/reviewers/security-reviewer.md); use for changes touching auth, sensitive data, external input, or new dependencies
  • verifier — exercise a feature end-to-end against the spec's criteria; the only path to verified status
  • adr-writer — record architectural decisions
  • test-generator — generate tests from a spec

Contacts and governance

  • Maintainers: [names / emails]
  • Review channel: [e.g., GitHub PR / Slack #channel]
  • Human-response SLA: [e.g., 24h on business days]

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.