Rule conflicts / CLI

RuleBridge.

AI coding-agent rules, checked for conflict.

An open-source CLI by Shadorux for detecting and reconciling conflicting coding agent instructions across Codex, Claude Code, Cursor, Copilot, and other agent rule files.

MIT·Node.js 20+·CLI

rulebridge check
$ cat CLAUDE.md
# CLAUDE.md
Always use pnpm for package management.
$ cat AGENTS.md
# AGENTS.md
Always use npm for package management.
$ npx @shadorux/rulebridge check
CONFLICT DETECTED
package-manager
CLAUDE.md pnpm
AGENTS.md npm
Use 'rulebridge diff' to view details.
>
01

Supported ecosystem

Works with AI coding agents and their native rule files.

CodexAGENTS.md
Claude CodeCLAUDE.md
Cursor.cursorrules.cursor/rules/**/*.mdc
Copilot.github/copilot-instructions.md
AGENTS.mdmanaged sections
More rule filesnative formats preserved
02

Commands

Inspect, compare, and fix rule conflicts.

inspect

Find instruction files.

import

Write .rulebridge/rules.json.

diff

Inspect semantic drift.

check

Run a CI-friendly warnings/errors gate.

fix

Apply only RuleBridge-owned changes.

03

Installation

Get started with the published package.

# Run without installingnpx @shadorux/rulebridge check
# Add to a projectnpm install -D @shadorux/rulebridgenpx rulebridge check
04

How RuleBridge works

Keep AI coding agent instructions aligned.

1
Inspect

Find the project’s agent rule files.

2
Import

Normalize them into RuleBridge data.

3
Check

Detect meaningful conflicts and drift.

4
Fix

Apply only owned, generated changes.

05

Open source

Built for projects with more than one AI coding agent.

RuleBridge.

Fewer conflicts. Better context. Consistent rules.

Read the RuleBridge source