Original Reddit post

Disclosure: I’m the creator of ai-nexus. It’s free and open source (Apache 2.0). No paid plans, no referral links. This is for the rule-heavy Claude Code users. If you only have 2-3 rule files, you probably don’t need this. But if you’re like me and ended up with 50+ rules — commit conventions, security checklists, React patterns, testing standards, Docker, the works — keep reading. I realized every single prompt was loading all of them. Docker best practices when I’m writing a commit message. React patterns when I’m debugging a Python script. That’s a lot of wasted tokens. A https://arxiv.org/pdf/2602.11988 (138 repos, 5,694 PRs) backs this up: loading all rules at once hurts performance by ~3% and increases cost by 20%+. Less is more — only relevant rules should load per prompt. So I built ai-nexus. It installs a hook in Claude Code that analyzes each prompt and loads only the 2-3 rules that actually matter. The rest stay parked. What it does:

  • Runs on every prompt, picks only relevant rules
  • Two modes: keyword matching (free, zero latency) or AI routing via GPT-4o-mini/Haiku (~$0.50/mo)
  • 230+ built-in rules you can cherry-pick from
  • Also converts rules to Cursor (.mdc) and Codex (AGENTS.md) — write once, use everywhere
  • Your existing rules are never touched — fully non-destructive Demo: Demo: Setup wizard GIF npx ai-nexus install One command. Open source (Apache 2.0). If you’re managing a lot of rules and feel like Claude’s responses have gotten noisier, this might help. Curious how others are handling rule overload. GitHub: https://github.com/JSK9999/ai-nexus Happy to answer any questions! submitted by /u/Hot-Landscape4648

Originally posted by u/Hot-Landscape4648 on r/ClaudeCode