Keep one set of rules and apply it to every AI coding agent's instruction files
open sourceMITfree
Ruler is a CLI that keeps a project's AI coding agent instructions in one place, Markdown files in a .ruler/ directory (nested ones for parts of a project), and writes them into each agent's own files: AGENTS.md, CLAUDE.md, Cursor's and Windsurf's rules, Junie's guidelines, Kiro's steering and more, for over 25 agents including GitHub Copilot, Claude Code, Codex CLI, Cursor, Gemini CLI, OpenCode, Goose and Zed. It also distributes MCP server settings, skills and subagents to each agent's configuration, lets ruler.toml choose agents and output paths, and keeps the generated files out of Git. It's a beta research preview.
Problems it solves
- keep CLAUDE.md, AGENTS.md and Cursor rules in sync from one source
- my team uses different coding agents and their instructions drift apart
- share MCP server config across Claude Code, Codex and Cursor
- write project rules once for every AI coding assistant
- keep generated agent config files out of my repository
Features
- one .ruler/ directory of Markdown rules, nested per component
- writes each agent's instruction file for 25+ agents
- distributes MCP server settings, skills and subagents
- ruler.toml chooses agents and output paths
- adds generated files to .gitignore
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what Ruler does.
