claude-code-config / global
AGENTS.md2 starsChanged 8 months agoMITView on GitHub
Loaded by every coding agent I use (Claude Code, Codex, Gemini CLI, Cursor). Keep it short: every line here costs context in every session. Recipes belong in skills, not here. Each project has a private, git-ignored personal_docs/: the shared memory for every agent working there. Details: the project-notes skill.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- cyruspastelero/dot-agentword for word, first seen Nov 22, 2026
Other versions1 project uses a version of this.
Word for word · 1
- cyruspastelero/dot-agent★ 2100% 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 33,398 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 repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- global/CLAUDE.mdCLAUDE.md
- api-designSkill
- appstore-releaseSkill
- audit-app-designSkill
- backend-judgementSkill
- database-migrationsSkill
- foundation-models-on-deviceSkill
- humanizerSkill
- liquid-glass-designSkill
- marketing-screenshotsSkill
- photo-cullSkill
- polar-checkoutSkill
- ponytailSkill
- postgres-patternsSkill
- project-notesSkill
- python-patternsSkill
- python-testingSkill
- setup-auditSkill
- shipping-ios-appsSkill
- swift-actor-persistenceSkill
- swift-concurrency-6-2Skill
- swift-protocol-di-testingSkill
- swiftui-patternsSkill
- systematic-reasoningSkill
- verify-appSkill
The file
We split this AGENTS.md into the rules it gives an agent
11 rules. About 2 are common, 6 are distinctive, and 3 are very specific to this project.
≈2
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
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
- Distinctive: line 16
Read before you edit. Match the conventions already in the repo.
- Very specific: line 17
Verify before saying "done": run the build/tests/app.
- Distinctive: line 27
Prefer immutable updates unless the language idiom says otherwise (e.g.
- Distinctive: line 42
Commit or push only when asked.
- Distinctive: line 43
No AI attribution lines (Co-Authored-By, "Generated with…") unless the repo asks for them.
- Common: line 47
Before any commit: no secrets, inputs validated, parameterized SQL, escaped output, authz checked, errors don't leak internals.
- Very specific: line 54
Start: if the notes brief is not already in context, read the nearest personal_docs/README.md (cwd up to the git root) before the first …
- Very specific: line 57
Unfinished work: keep work/<task>.md (plan checklist, state, next) current.
- Common: line 58
Never secrets or personal data.
- Distinctive: line 62
Search narrowly; read the file ranges you need, not whole trees.
- Distinctive: line 64
Don't paste long logs back.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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.
Files
Global agent instructions
Loaded by every coding agent I use (Claude Code, Codex, Gemini CLI, Cursor). Keep it short: every line here costs context in every session. Recipes belong in skills, not here.
How to talk to me
- Lead with the answer or the next action. No preamble, no recap, no "hope this helps".
- Multi-step work: numbered steps. Lists: 5 items max.
- Plain words. Short sentences. Errors stated matter-of-factly with the exact message.
- End with one concrete next step when there is one.
How to work
- Act when you have enough information. Ask only for decisions that are genuinely mine.
- Smallest change that works. No unrequested abstractions, features, or refactors.
- Read before you edit. Match the conventions already in the repo.
- Verify before saying "done": run the build/tests/app. If something fails or was skipped, say so.
- Confirm before anything hard to reverse or outward-facing: push, publish, deploy, delete, send, pay.
Code invariants (all languages; language idioms override)
- Naming follows the language's convention; no abbreviations beyond
id,url,http-style standards. - Errors: never swallow. Handle meaningfully or propagate with context naming the operation that failed.
- Validate at every trust boundary. Parse into typed DTOs at HTTP/RPC/queue edges; never return DB rows to clients.
- Logs are structured, levelled, and carry no secrets or PII.
- Shared mutable state needs explicit coordination. Cancellation propagates.
- Prefer immutable updates unless the language idiom says otherwise (e.g. Go pointer receivers).
- Config comes from the environment and is validated at startup. No hardcoded secrets, ever.
- Files ~200–400 lines (800 max). Functions under ~50 lines. Nesting ≤ 4.
Testing
- Tests describe behavior:
unverified_user_cannot_log_in, nottest_login_1. - Bug fix or new logic: write the failing test first, then make it pass.
- Integration tests hit real dependencies (real DB), not mocks. A flaky test is a bug.
- Aim for ~80% coverage on new code; coverage is a signal, not the goal.
Git
- Conventional commits:
feat|fix|refactor|docs|test|chore|perf|ci: <what>. One logical change per commit/PR. - PR descriptions explain why. Include a test plan.
- Commit or push only when asked. On the default branch, branch first.
- No AI attribution lines (Co-Authored-By, "Generated with…") unless the repo asks for them.
Security
- Before any commit: no secrets, inputs validated, parameterized SQL, escaped output, authz checked, errors don't leak internals.
- A leaked secret means: stop, tell me, rotate it.
Project notes: personal_docs/
Each project has a private, git-ignored personal_docs/: the shared memory for every agent working there. Details: the project-notes skill.
- Start: if the notes brief is not already in context, read the nearest
personal_docs/README.md(cwd up to the git root) before the first change. Open other files only when its "Read when" table says so. Resuming? Openwork/<task>.mdand start from its Next line. - Missing: for non-trivial work, create it (
notes.py initin the project-notes skill): README +work/only. Topic files appear on their first entry. - Write back what code and git can't tell the next agent: traps →
gotchas.md, choices + why →decisions.md, commands and env var names →runbook.md, structure →architecture.md. Each entry gets a source (path:line or commit) andVerified: YYYY-MM-DD. Fix stale entries instead of adding contradictions. - Unfinished work: keep
work/<task>.md(plan checklist, state, next) current. Archive it when done. - Never secrets or personal data. Never committed.
Context hygiene
- Search narrowly; read the file ranges you need, not whole trees.
- Hand broad, many-file research to a subagent and keep only its conclusion.
- Don't paste long logs back; quote the lines that matter.
- New unrelated task → start a fresh session.
Tool routing
| Situation | Reach for |
| Library/API/CLI syntax or versions you are unsure of | context7 docs lookup |
| Unfamiliar or large repo, "how does X connect to Y" | graphify graph (graphify query), if the repo has one |
| Symbol-level navigation in a big typed codebase | the LSP plugin / serena, not grep over everything |
| Copy a person will read (UI, README, store listing) | humanizer skill |
| UI looks or feels off | audit-app-design / impeccable skills |
| Is my agent setup bloated? | setup-audit skill |
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
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.

