Ruler is a CLI tool that centralizes instructions for AI coding assistants in one place. Instead of maintaining separate configuration files for tools like GitHub Copilot, Claude, or Cursor, it stores all rules in a single .ruler/ directory and distributes them automatically. This reduces duplication, avoids inconsistent outputs, and keeps guidance aligned as projects evolve. Ruler supports nested rule loading, allowing teams to define context-specific instructions for different parts of a codebase. It also manages MCP server settings, automates .gitignore updates, and provides simple commands to initialize, apply, and revert configurations. Designed for teams using multiple AI agents, it improves workflow consistency, simplifies onboarding, and ensures all assistants follow the same standards across projects.
Features
- Centralized rule management using a dedicated .ruler/ directory
- Automatic distribution of instructions to multiple AI agents
- Nested rule loading for complex and multi-component projects
- Configurable agent targeting via ruler.toml
- MCP server configuration and propagation support
- CLI commands for setup, application, and rollback of configs