Back to browse
GitHub Repository

AI coding assistant rule manager for Claude Code, Cursor, and Codex. Load only the rules you need.

15 starsTypeScript

AI-nexus – Only 2-3 rules and skills load per prompt in Claude Code

by suntrix3·Mar 12, 2026·2 points·0 comments

AI Analysis

●●SolidBig BrainSolve My Problem

Filters rules before Claude sees them, not inside Claude's context.

Strengths
  • Semantic router parks irrelevant rules in rules-inactive/ before each prompt.
  • Single rule source deploys to Claude, Cursor, and Codex simultaneously.
  • ETH Zurich study validates 20%+ cost reduction from selective loading.
Weaknesses
  • AI rule management category is rapidly saturating with new tools.
  • Keyword matching may miss context that semantic search would catch.
Target Audience

AI coding assistant power users

Similar To

Cursor rules · Claude Code rules · Windsurf

Post Description

I built this because Claude Code loads every rule and skill into context on every prompt. With 50+ rules and skills installed, you're burning tokens on Docker best practices while writing a commit message.

ai-nexus runs a hook before Claude starts — it picks 2-3 relevant rules and skills via keyword matching (free) or GPT-4o-mini (~$0.50/mo), and physically hides the rest. Claude doesn't even know they exist.

An ETH Zurich study (https://arxiv.org/pdf/2602.11988) on 12 repos and 5,694 PRs found that loading all rules at once hurts performance by ~3% and increases cost by 20%+.

It also works across tools — write rules and skills in .md once, auto-converts to .mdc (Cursor) and AGENTS.md (Codex).

npx ai-nexus install to try it. Apache 2.0.

Similar Projects

AI Skills for Affiliate Marketing – Works with Claude, ChatGPT

45 prompts for affiliate marketing, but fundamentally a curated collection.

Solve My ProblemNiche Gem
sonpiaz
332mo ago