ruler  by intellectronica

Centralize AI coding agent instructions

Created 4 months ago
1,616 stars

Top 26.0% on SourcePulse

GitHubView on GitHub
Project Summary

Ruler centralizes AI coding assistant instructions, providing a single source of truth for teams to manage and distribute consistent guidance across multiple AI agents like GitHub Copilot, Claude, and Aider. This tool simplifies onboarding, reduces configuration duplication, and mitigates context drift by automatically applying rules to agent-specific configuration files.

How It Works

Ruler operates by consolidating Markdown files from a .ruler/ directory (or a global configuration) into a unified set of instructions. These instructions are then automatically distributed to the configuration files of supported AI agents, as defined in a ruler.toml file. It also manages Model Context Protocol (MCP) server settings and automatically updates .gitignore to exclude generated configuration files.

Quick Start & Requirements

  • Installation: npm install -g @intellectronica/ruler or use npx @intellectronica/ruler.
  • Prerequisites: Node.js 18.x or higher.
  • Project Initialization: Run ruler init in your project's root directory.
  • Documentation: https://github.com/intellectronica/ruler

Highlighted Details

  • Supports a wide range of AI agents including GitHub Copilot, Claude, Cursor, Aider, and Gemini CLI.
  • Manages Model Context Protocol (MCP) server configurations for enhanced AI context.
  • Automatically updates .gitignore to keep generated files out of version control.
  • Provides ruler revert command to safely undo changes.

Maintenance & Community

The project is maintained by intellectronica. Contributions are welcome via pull requests. Issues and feature requests can be submitted via the GitHub issues page.

Licensing & Compatibility

  • License: MIT
  • Compatibility: The MIT license permits commercial use and linking with closed-source projects.

Limitations & Caveats

Currently, all agents receive the same concatenated rules; agent-specific instructions must be manually segmented within rule files. The project is described as a "Beta Research Preview," suggesting potential for instability or breaking changes.

Health Check
Last Commit

2 days ago

Responsiveness

1 day

Pull Requests (30d)
77
Issues (30d)
55
Star History
455 stars in the last 30 days

Explore Similar Projects

Starred by Alex Yu Alex Yu(Research Scientist at OpenAI; Former Cofounder of Luma AI), Will Brown Will Brown(Research Lead at Prime Intellect), and
7 more.

avante.nvim by yetone

0.5%
16k
Neovim plugin emulating Cursor AI IDE for AI-driven code assistance
Created 1 year ago
Updated 19 hours ago
Feedback? Help us improve.