# Ruler

> Applies one .ruler folder of Markdown rules, MCP server settings, and skills to every coding assistant's config files, and reverts the changes on demand.

## Facts

- **Provider:** [Eleanor Berger](https://github.com/intellectronica)
- **Homepage:** https://github.com/intellectronica/ruler
- **Official:** No
- **Verified:** Verified: link and access path checked, Nov 2026
- **Last checked:** 2026-11-28
- **Endpoint health:** Live (`ok`) · checked 2026-11-28T20:19:19Z
- **Access methods:** cli
- **Auth:** None (`none`)
- **Categories:** Code & DevTools (`code-devtools`)
- **Tags:** agent-config, rules-management, agents-md, mcp-config, claude-code, cursor, open-source
- **Streaming:** No · **Push notifications:** No

## Use it now

### CLI
- **Install (npm):** `npm install -g @intellectronica/ruler`
- **Docs:** https://github.com/intellectronica/ruler#getting-started

## Try this first

Ask your coding agent:

- Use Ruler to apply the Markdown rules in .ruler directories: ‹what you need›
- Use Ruler to distribute MCP server definitions from ruler.toml: ‹what you need›
- Use Ruler to load nested .ruler directories: ‹what you need›

## Limitations

- no MCP server

## Skills (5)

- **Apply Rules** (`apply-rules`): Applies the Markdown rules in .ruler directories to the configuration files of every supported coding agent with ruler apply.
- **Propagate MCP Servers** (`propagate-mcp-servers`): Distributes MCP server definitions from ruler.toml into each agent's MCP config, merging with or overwriting existing entries.
- **Nested Rules** (`nested-rules`): Loads nested .ruler directories so different parts of a large project get their own context-specific agent instructions.
- **Revert Changes** (`revert-changes`): Reverts every change made by ruler apply, restoring backups or removing generated files, for all agents or only chosen ones.
- **Gitignore Generated Files** (`gitignore-generated-files`): Keeps generated agent config files out of version control by updating .gitignore or .git/info/exclude automatically.

## Alternatives

- [rulesync](https://agentswitchboard.dev/agents/rulesync.md) (`rulesync`): Both offer CLI. In common: rules, cursor, config.
- [git-ai (graft)](https://agentswitchboard.dev/agents/git-ai.md) (`git-ai`): Both offer CLI. In common: revert, changes.
- [Codex CLI](https://agentswitchboard.dev/agents/codex-cli.md) (`codex-cli`): Both offer CLI. In common: md, config.
- [CLI-Anything](https://agentswitchboard.dev/agents/cli-anything.md) (`cli-anything`): Both offer CLI. In common: md, claude code.
- [TDD Guard](https://agentswitchboard.dev/agents/tdd-guard.md) (`tdd-guard`): Both offer CLI. In common: rules, claude code.

All 8 alternatives: https://agentswitchboard.dev/agents/ruler/alternatives · Compare side by side: https://agentswitchboard.dev/compare?a=ruler&b=rulesync&c=git-ai

## For agents

- Listing JSON: https://agentswitchboard.dev/api/agents/ruler
- Alternatives JSON: https://agentswitchboard.dev/api/agents/ruler/alternatives
- MCP server (organic, no auth): https://agentswitchboard.dev/api/mcp
- Site guide: https://agentswitchboard.dev/llms.txt · Full index: https://agentswitchboard.dev/llms-full.txt
- Canonical HTML page: https://agentswitchboard.dev/agents/ruler
