Skip to content

Ruler

Ruler — apply the same rules to all coding agents

Install

$npx @intellectronica/ruler apply
Claude Code
claude mcp add ruler -- npx @intellectronica/ruler apply
Cursor / Claude Desktop (mcp.json)
{
  "mcpServers": {
    "ruler": {
      "command": "npx",
      "args": [
        "@intellectronica/ruler",
        "apply"
      ]
    }
  }
}

Install command taken from the project's README or registry entry. Always review code before running it.

Ruler: Centralise Your AI Coding Assistant Instructions

  <ul>
    <li><strong>GitHub</strong>: intellectronica/ruler</li>
    <li><strong>NPM</strong>: @intellectronica/ruler</li>
  </ul>
  
  
    <em>Animation by Isaac Flath of <strong>Elite AI-Assisted Coding</strong></em> ➡︎
  
</td>
<td style="vertical-align: top; width:33%;">
  
</td>

Beta Research Preview

Why Ruler?

Managing instructions across multiple AI coding tools becomes complex as your team grows. Different agents (GitHub Copilot, Claude, Cursor, Aider, etc.) require their own configuration files, leading to:

  • Inconsistent guidance across AI tools
  • Duplicated effort maintaining multiple config files
  • Context drift as project requirements evolve
  • Onboarding friction for new AI tools
  • Complex project structures requiring context-specific instructions for different components

Ruler solves this by providing a single source of truth for all your AI agent instructions, automatically distributing them to the right configuration files. With support for nested rule loading, Ruler can handle complex project structures with context-specific instructions for different components.

Core Features

  • Centralised Rule Management: Store all AI instructions in a dedicated .ruler/ directory using Markdown files
  • Nested Rule Loading: Support complex project structures with multiple .ruler/ directories for context-specific instructions
  • Automatic Distribution: Ruler applies these rules to configuration files of supported AI agents
  • Targeted Agent Configuration: Fine-tune which agents are affected and their specific output paths via ruler.toml
  • MCP Server Propagation: Manage and distribute Model Context Protocol (MCP) server settings
  • .gitignore Automation: Keeps generated agent config files out of version control automatically
  • Simple CLI: Easy-to-use commands for initialising and applying configurations

Supported AI Agents

Similar plugs

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

Multi-harness agentic plugin marketplace for Claude Code, Codex, Cursor, OpenCode, GitHub Copilot, Google Antigravity, and Pi

Open source Ghostty-based macOS terminal with vertical tabs and notifications for AI coding agents. Built for multitasking, organization, and programmability.

The Developer Tool for Visual Engineers • An Open-Source AI-First Design tool • Visually build, style, and edit your code with AI • World's best, top-most agent recommended #1…

A powerful GUI app and Toolkit for Claude Code - Create custom agents, manage interactive Claude Code sessions, run secure background agents, and more.