Help us improve
Share bugs, ideas, or general feedback.
Plugin discovery and context-aware routing system for Claude Code
npx claudepluginhub Blockchain-Oracle/smart-routerPlugin discovery and context-aware routing system. Automatically discovers installed plugins and intelligently routes to the best tool based on task context and user preferences.
Share bugs, ideas, or general feedback.
Plugin discovery and context-aware routing system for Claude Code.
Smart Router solves the problem of having many installed plugins without knowing which one to use. It automatically discovers all your installed plugins (21+ in most setups) and intelligently routes you to the best tool based on your task context and preferences.
When you have multiple plugins installed:
Without Smart Router, Claude Code may not consistently use your installed tools, or you have to manually remember and select them each time.
~/.claude/plugins/ and .claude/commands/Step 1: Add the marketplace
/plugin marketplace add Blockchain-Oracle/smart-router
Step 2: Install the plugin
/plugin install smart-router@smart-router-marketplace
That's it! Smart Router is now active and will automatically discover your plugins on the next session.
# Clone directly to your global plugins directory
git clone https://github.com/Blockchain-Oracle/smart-router ~/.claude/plugins/smart-router
# Test locally before installing
cd /path/to/smart-router
claude --plugin-dir .
Use the interactive configuration command:
/smart-router:configure
This will guide you through setting up your preferences with questions and validation.
Alternatively, create .claude/smart-router.local.md manually:
---
routingMode: auto # auto | ask | context
showReasoning: true # Show why tool was chosen
excludePlugins: # Plugins to ignore
- plugin-name
priorityOrder: # Override default ranking
- superpowers
- pr-review-toolkit
---
auto - Automatically picks best tool, no questions asked (fastest)ask - Shows menu of options, lets you choose (most control)context - Uses file context to decide automatically (balanced, recommended)Just work normally! Smart Router runs in the background:
You: "I need a code review"
→ Smart Router detects need
→ Auto-routes to best code review tool
→ Review happens seamlessly
Set up your routing preferences interactively:
/smart-router:configure
Guides you through:
Force rebuild the plugin registry:
/smart-router:rebuild
Useful after:
The registry is built automatically when the Smart Router skill is invoked:
.claude/.cache/agent-registry.json doesn't exist → build it~/.claude/plugins/cache/ for installed plugins.claude/commands/ for local commands (e.g., BMAD workflows)~/.claude.json for global MCPs.claude/.cache/agent-registry.jsonPerformance: Registry builds in <3 seconds, cached for entire session
{
"version": "1.0",
"lastBuilt": "2025-12-19T12:00:00Z",
"hash": "abc123...",
"capabilities": {
"code-review": [
{
"plugin": "superpowers",
"type": "skill",
"entry": "skills/code-reviewer/SKILL.md",
"description": "General code review with TDD focus"
}
]
}
}