One md rules file. Works across AI tools. Keep your repo clean and consistent.
Many AI coding assistants expect their own configuration file inside your project:
.cursorrules(Cursor).clinerules/rules.md(Cline)CLAUDE.md(Claude Code).continue/rules.md(Continue.dev).github/copilot-instructions.md(GitHub Copilot)
While each tool has its own format, the underlying purpose is the same: defining how the assistant should behave.
Maintaining multiple copies of similar rules can quickly become repetitive and error-prone. It also makes switching tools less seamless than it should be.
Use a single source of truth: AGENTS.md
This script keeps all tool-specific files in sync automatically.
- Write your rules once
- Sync them to all supported tools
- Keep your repository focused and uncluttered
- Single
AGENTS.mdfile for all tools - Automatic syncing to tool-specific formats
- Zero dependencies (Python standard library only)
- Cross-platform (Windows, macOS, Linux)
- Simple, hackable, and easy to extend
curl -O https://raw.githubusercontent.com/PhilosopherZero/one_agent_md/main/one_agent_md.pyOr copy the file manually — it’s a single script.
python one_agent_md.py
# or
python3 one_agent_md.py- Creates
AGENTS.mdif it doesn’t exist - Watches for changes automatically
- Keeps all tool-specific files updated
Edit AGENTS.md, save, and the changes propagate instantly.
python one_agent_md.py cleanRemoves tool-specific files and keeps only AGENTS.md.
| Tool | File |
|---|---|
| Cursor | .cursorrules |
| Cline | .clinerules/rules.md |
| Claude Code | CLAUDE.md |
| Continue.dev | .continue/rules.md |
| GitHub Copilot | .github/copilot-instructions.md |
You can enable or disable targets by editing the TARGETS list in the script.
# Auto-generated AI tool files (from AGENTS.md)
# Edit AGENTS.md instead of these files
.cursorrules
.clinerules/
CLAUDE.md
.continue/
.github/copilot-instructions.mdThis keeps your repository focused on source content while treating generated files as ephemeral.
If a tool requires additional behavior, you can define overrides:
mkdir .agents_overridesExample:
echo "Use composer mode for multi-file edits" > .agents_overrides/_.cursorrulesOverrides are merged with AGENTS.md automatically.
- No external dependencies
- Works out of the box on most systems
- Easy to read and modify
- Keeps the tool lightweight and portable
- Add support for new tools by extending
TARGETS - Improve syncing logic or structure
- Port the tool to other languages if useful
Pull requests are welcome.
MIT — free to use, modify, and distribute.