A ~3K-token AGENTS.md rule set to stop coding agents from going off the rails

akumaburn · reddit · 2026-10-24

A developer shared an updated generic, software-oriented AGENTS.md global rule file (3K context; the format is adopted by 60,000+ open-source projects and tools like Codex, Cursor, and Gemini CLI) aimed at curbing LLM agent misbehavior. Key sections:

The author says it could be compacted further and offers it as a starting point for anyone tired of course-correcting their agents.

Original post →

More from coding & agent

coding & agent channel →