agent-setup
AGENTS.md0 starsChanged 2 months agoMITView on GitHub
You're running inside a Bubblewrap (bwrap) sandbox, your permissions are limited. If you encounter missing permissions for something you legitimately need to do, stop and ask for those permissions to be added rather than try to work around the problem. Be specific in your request: what permissions you need and why. Start your commit message title with an appropriate verb like "Add", "Fix" or "Refactor" that describes the nature of the change. When fixing an issue, make your commit message…
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,773 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 repository5 other files it gives its agents.
- align-withSkill
- discussSkill
- review-modernizeSkill
- review-readabilitySkill
- review-releaseSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
13 rules. About 0 are common, 10 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
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
- Very specific: line 3
Don't try to clobber (I have noclobber on).
- Very specific: line 4
Use www-open URL to open links in a browser
- Distinctive: line 16
Start your commit message title with an appropriate verb like "Add", "Fix" or "Refactor" that describes the nature of the change.
- Distinctive: line 19
When fixing an issue, make your commit message two short paragraphs: one to explain the problem and the other to explain the fix.
- Distinctive: line 30
Never run git commit without my explicit go-ahead, regardless of the current permission/auto-accept mode.
- Distinctive: line 33
Before committing, show me the full proposed commit message and wait for my approval.
- Distinctive: line 46
Avoid extracting module-level constants for things used only once.
- Distinctive: line 53
When a task has multiple clearly independent and unrelated parts, let's do them one at a time and let me review each separately before …
- Distinctive: line 57
Prefer the simplest change that serves the current purpose or desired outcome.
- Distinctive: line 62
When I ask how a tool, library, or API works, check the documentation or source code rather than guessing, and say clearly when you're …
- Very specific: line 71
Avoid using something like sed -i to modify files.
- Distinctive: line 76
When asking me a binary question, such as my approval for a git commit message or go-ahead to continue, ask simply as y/n, examples: …
- Distinctive: line 86
Default to zero comments. Code, naming, and types should be self-explanatory.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
AGENTS.md
- Don't try to clobber (I have
noclobberon). - Use
www-open URLto open links in a browser
Sandbox
You're running inside a Bubblewrap (bwrap) sandbox, your permissions
are limited. If you encounter missing permissions for something you
legitimately need to do, stop and ask for those permissions to be added
rather than try to work around the problem. Be specific in your request:
what permissions you need and why.
Git
Start your commit message title with an appropriate verb like "Add", "Fix" or "Refactor" that describes the nature of the change.
When fixing an issue, make your commit message two short paragraphs: one to explain the problem and the other to explain the fix. Otherwise, make your commit message one short paragraph. If fixing something related to a previous commit, reference that previous commit in the message by its short commit hash.
Wrap the commit message lines at 72 characters. Add yourself as Co-Authored-By, including your vendor, model and version, example:
Co-Authored-By: ACME Transformer 1.2 <noreply@acme.com>Never run git commit without my explicit go-ahead, regardless of the
current permission/auto-accept mode. "Commit" or "check and commit" in
my message is permission to prepare the commit, not to run it silently.
Before committing, show me the full proposed commit message and wait for
my approval. If I approve, commit it as shown. If I ask for changes,
revise and show it again before committing.
Locality of Behaviour
Try to follow this principle from Carson Gross:
The behaviour of a unit of code should be as obvious as possible by looking only at that unit of code.
Examples of what this means in practice:
Avoid extracting module-level constants for things used only once; this is especially true for single numbers; major multi-line structures are an exception. Avoid splitting logic of one thing across many files; a single feature should be as self-contained as possible.
Ways of Working
- When a task has multiple clearly independent and unrelated parts, let's do them one at a time and let me review each separately before moving on. We'll commit each logical change separately.
- Prefer the simplest change that serves the current purpose or desired outcome. Don't expand scope, add abstractions or introduce unit tests where they don't yet exist unless I ask. If something seems too complex or not worth it, say so.
- When I ask how a tool, library, or API works, check the documentation or source code rather than guessing, and say clearly when you're unsure. If needed, verify behaviour with a one-off test script.
- I frequently make manual edits between turns. When I say "check and commit" (or similar), review my changes for correctness before committing. Base your own edits on the latest state of the files on disk, not your previous changes or any cache.
- Avoid using something like
sed -ito modify files. I want to see the diff of your changes as you make them and that works only if you use your higher-level tools. When expecting >10 matches, make an exception and use whatever is efficient. - When asking me a binary question, such as my approval for a git commit message or go-ahead to continue, ask simply as y/n, examples: "Approve? (y/n)", "Continue to ...? (y/n)".
- Once done with implementation, silently check if the repository
contains a
TODO.mdfile. Check if there's an item corresponding to what you just did. If so, remove it. Likewise, silently check if the repository contains aNEWS.mdfile. Check if there's "PENDING" release notes. If your changes are user-visible, add an item there. - Default to zero comments. Code, naming, and types should be self-explanatory. Only use comments to document (1) external bugs, quirks, and platform workarounds, (2) hidden side effects and non-obvious mechanics and (3) non-obvious domain rationale. Surrounding older code might have silly comments, but that is not license for you to be silly.
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.

