Smart Routing, Perfect Match.
Intelligent Task Router for Claude Code - Automatically route development tasks to the most suitable AI executor (Claude, Gemini, or Codex) based on task characteristics.
- Smart Task Routing: AI-powered analysis to select the optimal executor for each task
- Multi-Executor Support: Seamlessly integrate Claude, Gemini CLI, and Codex CLI via PAL MCP
- Structured Workflow: Spec-first approach with requirements โ design โ implementation phases
- Batch Execution: Atomic task decomposition (โค5 min each) with parallel execution
- Real-time Progress: TodoWrite integration for live progress tracking
- AI Code Review: Intelligent code review powered by PAL MCP
| Platform | Status |
|---|---|
| macOS | โ Fully Supported |
| Windows | ๐ง Coming This Week |
| Linux | ๐ Planned |
- Claude Code installed and configured
- PAL MCP Server for Gemini/Codex CLI integration (optional, enables multi-executor routing)
# Clone the repository
git clone https://github.com/CoderMageFox/nexus-cli.git
cd nexus-cli
# Run the installer
./install-nexus-skill.shThe installer will:
- Register Nexus as a Claude Code skill at
~/.claude/commands/nexus.md - Create default configuration file
.nexus-config.yaml - Check for optional dependencies (PAL MCP, Gemini CLI, Codex CLI)
To enable multi-executor routing, add PAL MCP to ~/.claude.json:
{
"mcpServers": {
"pal": {
"command": "uvx",
"args": ["--from", "git+https://github.com/BeehiveInnovations/pal-mcp-server.git", "pal-mcp-server"],
"env": {
"GEMINI_API_KEY": "your-gemini-api-key"
}
}
}
}Note: This section is intended for AI coding assistants (Claude Code, Cursor, etc.) to help users install Nexus CLI.
Simply copy the text below and send it to Claude Code, Codex, or any AI coding assistant:
English:
Help me install Nexus CLI.
For quick install, run:
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/CoderMageFox/nexus-cli/main/commands/nexus.md -o ~/.claude/commands/nexus.md
For full install with dependency check, run:
cd ~/.claude && git clone https://github.com/CoderMageFox/nexus-cli.git skills/nexus-cli && ~/.claude/skills/nexus-cli/install-nexus-skill.sh
After installation, verify with: ls ~/.claude/commands/nexus.md
ไธญๆ:
ๅธฎๆๅฎ่ฃ
Nexus CLIใ
ๅฟซ้ๅฎ่ฃ
๏ผ่ฟ่ก๏ผ
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/CoderMageFox/nexus-cli/main/commands/nexus.md -o ~/.claude/commands/nexus.md
ๅฎๆดๅฎ่ฃ
๏ผๅ
ๅซไพ่ตๆฃๆฅ๏ผ๏ผ่ฟ่ก๏ผ
cd ~/.claude && git clone https://github.com/CoderMageFox/nexus-cli.git skills/nexus-cli && ~/.claude/skills/nexus-cli/install-nexus-skill.sh
ๅฎ่ฃ
ๅ้ช่ฏ๏ผls ~/.claude/commands/nexus.md
Download the skill file directly - no cloning required:
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/CoderMageFox/nexus-cli/main/commands/nexus.md -o ~/.claude/commands/nexus.mdIncludes interactive configuration wizard and automatic dependency installation:
cd ~/.claude && git clone https://github.com/CoderMageFox/nexus-cli.git skills/nexus-cli && ~/.claude/skills/nexus-cli/install-nexus-skill.shโ This method will:
- Install the Nexus skill
- Check and install missing dependencies (PAL MCP, Gemini CLI, Codex CLI, jq, uv)
- Generate customized
.nexus-config.yaml - Configure quality gates and executor preferences
| Feature | One-Line Install | Full Install |
|---|---|---|
| Speed | โก Fastest | ๐ข ~2 min |
| Dependencies | โ Manual | โ Auto-install |
| Configuration | โ Default only | โ Interactive wizard |
| Best for | Quick start, CI/CD | First-time setup |
-
Check Platform: Verify user is on macOS (Windows support coming soon)
uname -s # Should return "Darwin" for macOS -
Choose Install Method:
- New users โ Use Full Install (Method 2)
- Experienced users / just need the skill โ Use One-Line Install (Method 1)
-
Verify Installation:
ls -la ~/.claude/commands/nexus.md # Should exist after installation
-
Check Dependencies (if using One-Line Install):
# Optional: Install PAL MCP for multi-executor support # Add to ~/.claude.json under mcpServers
Post-Installation: The /nexus command will be available in Claude Code after restarting the session.
In Claude Code, invoke Nexus with:
/nexus <your task description>
# Full workflow with spec generation
/nexus Create a user authentication system with JWT tokens
# Skip spec phase for simple tasks
/nexus Create a hello world function --skip-spec
# Frontend task (routes to Gemini)
/nexus Build a responsive login form component
# Backend task (routes to Codex)
/nexus Implement REST API endpoints for user managementโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Phase 0: PAL MCP Availability Check โ
โ Available โ Normal Mode | Unavailable โ Claude-Only โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SPEC Flow (Phase 1-3) โ
โ Phase 1: Requirements (EARS format) โ
โ Phase 2: Design Document โ
โ Phase 3: Task Breakdown (Batch format) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Execution Flow (Phase 4-5) โ
โ Phase 4: TodoWrite Init + User Confirmation โ
โ Phase 5: Batch Execution Loop โ
โ โโ Execute tasks in parallel per batch โ
โ โโ Update TodoWrite immediately after each batch โ
โ โโ Route: ClaudeโTask, Gemini/CodexโPAL clink โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Quality Gates (Phase 6) - Optional โ
โ AI Code Review โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Completion Options (Phase 7) โ
โ Acceptance Confirmation โ Documentation โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
| Executor | Best For | Icon |
|---|---|---|
| Claude | Architecture design, deep analysis, security review, complex reasoning | ๐ง |
| Gemini | Frontend UI, algorithms, web search, creative tasks | ๐ |
| Codex | Backend APIs, databases, server-side logic | ๐ท |
Edit .nexus-config.yaml in your project root:
# Language: auto, zh-CN, en-US
language: auto
# Executor routing rules
routing:
default_executor: claude
rules:
- pattern: "**/components/**"
executor: gemini
description: "React/Vue components"
- pattern: "**/api/**"
executor: codex
description: "API endpoints"
# Execution settings
execution:
max_parallel_tasks: 5
task_timeout_minutes: 10
batch_timeout_minutes: 30
# Quality gates (AI-powered)
quality_gates:
enabled: true
gates:
review:
enabled: true
focus:
- security
- performance
- quality| Constraint | Requirement |
|---|---|
FORCE_PAL_CHECK |
Must check PAL MCP availability before routing to Gemini/Codex |
FORCE_SPEC_FIRST |
Must complete Spec flow before execution (unless --skip-spec) |
FORCE_ATOMIC_TASKS |
Each task must be โค5 minutes |
FORCE_BATCH_GROUPING |
Tasks must be grouped by dependencies |
FORCE_BATCH_TODOWRITE |
Must update TodoWrite immediately after each batch |
FORCE_USER_CONFIRMATION |
Must get user confirmation before execution |
| Script | Description |
|---|---|
./install-nexus-skill.sh |
Install Nexus CLI |
./uninstall-nexus.sh |
Uninstall Nexus CLI |
./update-nexus.sh |
Update to latest version |
./install-nexus-skill.sh [options]
Options:
--quick Skip dependency checks
--check-deps Only check dependencies, don't install
--help Show help messagenexus-cli/
โโโ commands/
โ โโโ nexus.md # Main skill definition
โโโ lib/ # Library modules
โโโ locales/ # i18n translations (en-US, zh-CN)
โโโ templates/ # Document templates
โโโ tests/ # Test files
โโโ install-nexus-skill.sh # Installer
โโโ uninstall-nexus.sh # Uninstaller
โโโ update-nexus.sh # Updater
โโโ .nexus-config.yaml # Configuration template
โโโ VERSION # Version file
MIT License
Contributions are welcome! Please feel free to submit a Pull Request.
- Claude Code - AI-powered coding assistant
- PAL MCP Server - Multi-model orchestration
