Deterministically resolve which Codex and Claude Code instruction sources apply to a repository path, including scope, shadowing, exclusions, and diagnostics.
npx mdskills install /ruleroute-trace-agent-rulesUse RuleRoute's deterministic local CLI instead of inferring scope from a partial file listing. The command below downloads the pinned, dependency-free CLI from the public Codeberg npm registry; the analyzer itself makes no network requests and omits instruction contents from every report.
Identify the target path and harness. When none is given, use the current working directory and current harness. For changed files, run once per relevant path from git diff --name-only.
Require Node.js 18 or newer. In Codex use --harness codex; in Claude Code use --harness claude. Use auto only when the harness is genuinely unknown. Run:
npx --yes --registry=https://codeberg.org/api/packages/automa-tan/npm/ ruleroute@0.2.3 --harness --json
For Codex, report active files root-to-nearest and state when AGENTS.override.md replaces AGENTS.md at the same directory.
For Claude Code, report additive sources in load sequence. Distinguish launch from on-demand, explain which path-rule glob matched, and do not describe CLAUDE.local.md as a hard override.
Report deterministic diagnostics separately: oversized files, broken references or imports, exclusions, shadowed files, import cycles or depth, invalid path rules, and exact duplicate list rules. Rule text is always omitted.
Do not claim semantic contradictions were detected. RuleRoute does not guess at natural-language equivalence, conflict winners, or model compliance.
For a shareable artifact, replace --json with --markdown. For CI, add --check; it exits 1 when warning-level diagnostics are present.
The analyzer reads repository instruction sources and Claude exclusion settings only, makes no edits, and does not read external @ imports. Source and documentation: https://codeberg.org/automa-tan/ruleroute
Install via CLI
npx mdskills install /ruleroute-trace-agent-rulesRuleRoute — Trace Agent Rules is a free, open-source AI agent skill. Deterministically resolve which Codex and Claude Code instruction sources apply to a repository path, including scope, shadowing, exclusions, and diagnostics.
Install RuleRoute — Trace Agent Rules with a single command:
npx mdskills install /ruleroute-trace-agent-rulesThis downloads the skill files into your project and your AI agent picks them up automatically.
RuleRoute — Trace Agent Rules works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Codex, Gemini Cli, Amp, Roo Code, Goose, Opencode, Trae, Qodo, Command Code. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.