AGENTS.md – Open format for guiding coding agents
341–350 of 398 posts
Re: AGENTS.md – Open format for guiding coding agents
#342I haven't really done anything serious with Claude Code, but today I tested starting claude in ~/claude/test, and told it to list my home dir, which it then did. Is there a way to tell tools like Claude Code that it must never leave ~/claude/test, and don't event think about using absolute paths, or relative paths which contain `..`?
it's already read only outside of project directories (except for Bash tool); your only further option is to wrap it in a sandbox, `bwrap` is perfect for this "don't even think" is in the default system prompt, but it's inherently indeterministic and can be overridden with a direct instruction as you have seen
Re: AGENTS.md – Open format for guiding coding agents
#343Earlier quoted context omitted.
we're -> we are I've -> I have & -> and co. -> company won't -> will not it's -> it is
/usr -> Program Files (hello spaces my old friends, you've come to break my apps again) /var -> ProgramData (but no spaces here) /home -> Documents and Settings /etc -> Control Panel
/home -> Users (it's not 1998 anymore)Re: AGENTS.md – Open format for guiding coding agents
#344Earlier quoted context omitted.
Compile, test, architecture would be very welcome in the readme too Id wager
Where contributors are the audience, yes. For things like libraries, I care about those things only if I run into a bug, and have enough resources to attempt a fix.
Re: AGENTS.md – Open format for guiding coding agents
#345Earlier quoted context omitted.
Have you considered that there are other metrics people are optimizing for nowadays? Perhaps typeability, screen real estate, familiarity/convention, etc.? Do you really want /User Files/Bob's Files/Coding Projects/Python Projects/Bob's Cool Python Library/Source Code/Model Files/SomeObject.py?
Path length is still a thing in MS Windows, so be careful ;)
Re: AGENTS.md – Open format for guiding coding agents
#346This 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…
Re: AGENTS.md – Open format for guiding coding agents
#347Earlier quoted context omitted.
Another reason to use a src/ directory for the actual source code.
These files also generally work in a nested fashion, like .gitignore and the like. So you want something that can be injected into the namespace of any directory in your project with relatively low likelihood of conflicts.
> Agents automatically read the nearest file in the directory tree, so the closest one takes precedence
Re: AGENTS.md – Open format for guiding coding agents
#348Earlier quoted context omitted.
/usr -> Program Files (hello spaces my old friends, you've come to break my apps again) /var -> ProgramData (but no spaces here) /home -> Documents and Settings /etc -> Control Panel
Spaces break things only in Lnux; Mac and Windows support them since beginning. Why should we write without spaces as if we were in 5th century?
Re: AGENTS.md – Open format for guiding coding agents
#349Currently I am building a new JS web toolkit on the side with AI assistance for faster progress, and I came to have some prompts folder in the project root that I just drop into the agents (like cursor CMD+I) and point it to a direction (file/folder). https://github.com/Anonyfox/raven-js/tree/main/prompts I think we should not split README and AGENT into different documents - the way its heading is that the coding ag…
I tend to put a lot of this type of info into the readme anyway... for more complex projects, I'll include a docs/ directory with more markdown, images as needed, etc.
For that matter, I think context hints from the likes of Dockerfile(s), compose, and .github/workflows also can serve a dual-purpose here.
Re: AGENTS.md – Open format for guiding coding agents
#350Earlier quoted context omitted.
Anything with a capital letter requires hitting two keys: Shift and then the desired letter. Thus /Programs requires 10 keystrokes rather than 9. Even worse, since the capital letter is at the beginning of the directory name, I have to type it and am unable to rely on tab-completion. /Programs with its ten keystrokes is over twice the keystrokes of /bin and its four. Short names are quicker to type and require less e…
That's really more the fault of the tab completion. There's no reason why it couldn't complete `prog` to `Programs`. It's just Unix tradition that they don't. I would prefer if they did.
set completion-ignore-case on
to enable case insensitive tab completion in bash.