Earlier quoted context omitted.
> Writing style. In agent docs, using all caps might be an effective way to emphasize a particular instruction. In internal eng docs, this might come off rude or distracting. To pile on to this, an agent needs to see "ABSOLUTELY NEVER do suchandsuch" to not do suchandsuch, but still has a pretty fair chance of doing it by accident. A talented human seeing "ABSOLUTELY NEVER do suchandsuch" will interpret this to mean…
Negative assertions can lead to unwanted weights in the context. I've found positive assertions to be more predictable.
AGENTS.md – Open format for guiding coding agents
171–180 of 398 posts
Re: AGENTS.md – Open format for guiding coding agents
#172This should've been an .agents¹ with an index.md. For tiny, throwaway projects, a monolithic .md file is fine. A folder allows more complex projects to use "just enough hierarchy" to provide structure, with index.md as the entry point. Along with top-level universal guidance, it can include an organization guide (easily maintained with the help of LLMs). index.md ├── auth.md ├── performance.md ├── code_quality ├── da…
You can have multiple AGENTS.md files in your codebase and tooling will look at both the one in the current directory as well as in the root of the codebase. This way you can sort of do what you're suggesting but simultaneously keep the information closer to the code that it is describing.
Re: AGENTS.md – Open format for guiding coding agents
#173So the solution to using AI so you don't have to code, is to try to write some kind of pseudocode in AGENT.md and hope the AI does a bit better? Why does it seem that the solution to no-code (which AI-coding agents are) always comes back to "no-code, but actually there is some code behind the scenes, but if you squint enough it looks like no-code".
> So the solution to using AI so you don't have to code, is to try to write some kind of pseudocode in AGENT.md and hope the AI does a bit better? Umm, no. Where did you get that idea? The purpose of the agent.md file is to give it instructions. Nothing about no-code AI said there would be no instructions...
Eg, the 6502 instruction set. https://www.masswerk.at/6502/6502_instruction_set.html
History doesn't repeat but it rhymes!
Re: AGENTS.md – Open format for guiding coding agents
#174The day AI and AI adjacent slop is no longer polluting the front page is the day when some other random fad takes hold I guess.
Re: AGENTS.md – Open format for guiding coding agents
#175Earlier quoted context omitted.
It is files that are meant to be read by software, not humans. From my point of view this seems like a prime candidate for a hidden directory?
If it isn’t being read by humans, then it shouldn’t be written by them either.
I don't really care what's inside.
Re: AGENTS.md – Open format for guiding coding agents
#176Re: AGENTS.md – Open format for guiding coding agents
#177Isn't the promise of AI that we don't have to adhere to precise formats? We can just write it down in whatever format makes the most sense to us, and any impedance mismatch is on the machine to figure out?
Re: AGENTS.md – Open format for guiding coding agents
#178Earlier quoted context omitted.
I like this idea. Do you have any middleware in your current setup that added the contents of this directory to the agent prompt?
I'd be interested in smarter ways of doing this, but currently I just use my CLAUDE.local.md to serve as the index.md in my example. It includes the 'specialist' .md files with their relative paths and descriptions, and tells Claude Code to use these when planning. I also have explicit `xnew`, `xplan`, `xcode` and `xcheck` commands in CLAUDE.md that reinforce this. For example, here's my `xnew`: ## Remember Shortcuts…
As well as custom agents: https://docs.anthropic.com/en/docs/claude-code/sub-agents
Re: AGENTS.md – Open format for guiding coding agents
#179Re: AGENTS.md – Open format for guiding coding agents
#180These AI-oriented examples look more useful to me than most human-oriented READMEs I've seen.
We've lost a bunch of contributions to open source projects because these guides weren't there to help new people contribute.