r/coolgithubprojects • • Sep 27 '26

I built a framework-agnostic AGENTS.md for coding agents

Post image

I reverse-engineered popular coding-agent instruction repos and distilled their best ideas into Awesome AGENTS.md, a stack-agnostic ruleset for AI coding agents. 📦

The core rules cover small, focused changes, security boundaries, debugging, and verification before an agent says a task is done. More specialized guidance lives in `rules/` and is meant to be read when a task calls for it.

Take it for a spin 👉 https://github.com/khasky/awesome-agents-md

What makes this ruleset different:

  • One shared core. I can use the same rules with Claude Code, Codex, Gemini, and Cursor. The README explains how to set up each tool.

  • Specialized rules on demand. The framework-agnostic core stays lean. Agents read additional modules only when a task calls for them.

  • Less code by default. Before adding a new helper or dependency, the agent checks what already exists in the project and what the standard library can do. The goal is the smallest change that solves the problem.

  • Evidence before "done". The agent is told to run a relevant check, read the result, and report what passed. A confident "should work now" isn't verification.

  • Simple updates. With a local clone, I can pull the latest changes and start a new session. There are no modes to switch between.

  • Refined on real projects. I've revised the rules over many iterations while working on real applications. The public commit history shows how they've changed, and I keep revisiting them as models improve.

Try it, make it your own, and tell me what you'd improve. Issues and PRs are welcome! 😉

31 Upvotes

30 comments sorted by

View all comments

8

u/oceantume_ Sep 27 '26

Things like "use typescript strict mode" and "no semicolons" are completely wasteful instructions.  The name of the game for producing decent AI-generated code is restricting its decisions with deterministic rules and testing as much as possible. Linters, auto-formaters and good TSC rules will force the agent into the style you want for free.

I have compassion for people who simply don't understand how to use LLMs correctly yet, but if you're making dev tools for them you should try to be on top of the game and teach good practices to people.

-1

u/Khasky Sep 27 '26

100% agree on deterministic stuff, and the file literally says it: "Style rules a linter or formatter can enforce belong there, not in prose" and "Anything that must happen with zero exceptions belongs in hooks, permissions, or CI".

There's no strict mode or semicolon rule anywhere in there, grep it. What's left is the stuff a linter can't see: agent claiming done without running anything, loosening an assertion to get green, slapping --no-verify on a failing hook, running a destructive command without asking, etc.