Re:The AGENTS.md Standard: A simple, open format for guiding...
by ceejayoz on Wednesday August 20, 2025 @02:12AM
(#44959124)
That won't save you if you want actual example.com/agents/foo routing and an (say, real estate) agents list at example.com/agents.
[ Parent
| on HN ]
Re:The AGENTS.md Standard: A simple, open format for guiding...
by onion2k on Wednesday August 20, 2025 @02:29AM
(#44959217)
I feel bad that you're getting downvotes. The reason is that pretty much every modern web stack decouples the URL routing from the source code directory structure these days. It was a nice hack back in the day, but there are so many problems with it no one really does it any more.
Some frameworks (Laravel, NextJS, etc) map from the directory structure to routes, but that's just a mapping rather than actually exposing the directories on the server. You can have /src/agents accessible as /agents. Or you could have /alice/bob/agents accessible through /agents. It's all just build tooling and web server config at the end of the day.
Re:The AGENTS.md Standard: A simple, open format for guiding...
by ceejayoz on Wednesday August 20, 2025 @02:33AM
(#44959246)
That's my point. Having your code in `/src` doesn't mean some of that code doesn't still have routing at `example.com/agents`. It doesn't have to be a real directory.
A `.agents` directory (or routing pretending to be one) is nice because you are fairly unlikely to ever have user-facing `example.com/.agents` as a URL.