From octo
Routes natural language requests to the optimal workflow (research, debug, TDD, security, etc.). Also supports direct invocation of any /octo:* command.
How this command is triggered — by the user, by Claude, or both
Slash command
/octo:autocommands/The summary Claude sees in its command listing — used to decide when to auto-load this command
# Smart Router (/octo:auto) Single entry point for all Claude Octopus workflows. Analyzes your natural language request and routes to the optimal workflow automatically. All `/octo:*` commands also work directly, bypassing the router. --- ## EXECUTION CONTRACT (Mandatory) When the user invokes `/octo:auto <query>` or says `octo <query>`, you MUST follow these steps in order: ### STEP 1: Input Validation If the query exceeds 500 characters, use only the first 500 characters for intent analysis. Pass the full original query to the target workflow. ### STEP 2: Meta Command Check If ...
Single entry point for all Claude Octopus workflows. Analyzes your natural language request and routes to the optimal workflow automatically.
/octo:auto research OAuth authentication patterns
/octo:auto debug the failing test in auth.ts
/octo:auto should we use Redis or Memcached?
/octo:auto write tests for the payment module
/octo:auto create a complete e-commerce platform
All /octo:* commands also work directly, bypassing the router.
When the user invokes /octo:auto <query> or says octo <query>, you MUST follow these steps in order:
If the query exceeds 500 characters, use only the first 500 characters for intent analysis. Pass the full original query to the target workflow.
If the query matches any of: help, list, commands, what can you do, capabilities, options, workflows:
Match the query against keywords below. Check categories in priority order — higher priority wins when intents conflict.
| Intent | Trigger Keywords | Routes To |
|---|---|---|
| Lifecycle | end-to-end, complete lifecycle, full workflow, entire project, whole system | octo:embrace |
| Multi-LLM | multi, multi-llm, multi-provider, all providers, force multi, cross-model | octo:multi |
| Parallel | parallel, team of teams, decompose, work packages, split into | octo:parallel |
| Specification | spec, nlspec, specification, requirements doc, define scope, write spec | octo:spec |
| Security | security audit, OWASP, vulnerability, pentest, threat model, CVE, attack surface | octo:security |
| TDD | TDD, test-driven, write tests, test first, unit test, test coverage | octo:tdd |
| Debug | debug, fix bug, troubleshoot, broken, error trace, stacktrace, failing, crash | octo:debug |
| Design | UI design, UX design, wireframe, mockup, design system, layout, prototype | octo:design-ui-ux |
| PRD | PRD, product requirements, product spec, feature requirements | octo:prd |
| Brainstorm | brainstorm, ideate, ideas, creative, thought experiment, what if | octo:brainstorm |
| Deck | presentation, slides, deck, pitch deck, slide deck | octo:deck |
| Docs | document, documentation, README, API docs, write docs, docstring | octo:docs |
| Intent | Trigger Keywords | Routes To |
|---|---|---|
| Research | research, investigate, explore, study, understand patterns, analyze ecosystem | octo:discover |
| Review | validate, review code, check quality, audit code, inspect, verify, code review | octo:review |
| Debate | should we, X vs Y, compare, versus, decide between, which is better, trade-off | octo:debate |
| Intent | Trigger Keywords | Routes To |
|---|---|---|
| Build (Clear) | build X, create X, implement X, develop X — where X is a specific target noun | octo:develop |
| Build (Vague) | build, create, make — without a clear target noun | octo:plan |
| Quick | quick, just do it, simple, fast, straightforward | octo:quick |
Priority resolution: When keywords from multiple intents match, the highest-priority intent wins. Example: "analyze the security of our API" matches both Research ("analyze") and Security ("security") — Security wins because Priority 1 > Priority 2.
Apply this decision tree (NOT percentage-based scoring):
Single intent matched + specific target noun present
→ HIGH confidence
Single intent matched + target is vague or absent
→ MEDIUM confidence
Multiple intents matched + resolved by priority ordering
→ HIGH confidence (route to the higher-priority intent)
Multiple intents matched at same priority level
→ MEDIUM confidence (present top 2 candidates)
No explicit intent + query asks between two named technologies/options (`X or Y`, `X vs Y`, two code-formatted names)
→ MEDIUM confidence debate candidate (`octo:debate`)
No explicit intent + substantial what/how/why/which question (40+ characters)
→ MEDIUM confidence research candidate (`octo:discover`)
No intent keywords matched
→ LOW confidence
STEP 5a — HIGH confidence (auto-route):
Display:
Routing to [Workflow Name] (/octo:[command])
Then display the visual indicator banner (STEP 6) and invoke:
Skill(skill: "octo:[command]", args: "<full user query>")
STEP 5b — MEDIUM confidence (confirm first):
Display:
I detected [intent]. Route to:
[Primary] (/octo:[command]) — [one-line description]
[Alternative] (/octo:[command]) — [one-line description]
Which would you prefer, or rephrase your request?
Wait for user confirmation before invoking the Skill tool.
STEP 5c — LOW confidence (show complete menu):
Display:
Which workflow would you like?
Core Workflows:
1. Research (/octo:discover) — Multi-AI research and exploration
2. Build (/octo:develop) — Implementation with quality gates
3. Plan (/octo:plan) — Clarify requirements before building
4. Review (/octo:review) — Code quality assurance and validation
5. Debate (/octo:debate) — Multi-AI structured deliberation
6. Embrace (/octo:embrace) — Full 4-phase lifecycle workflow
Engineering:
7. Debug (/octo:debug) — Systematic multi-provider debugging
8. Security (/octo:security) — Security audit with OWASP coverage
9. TDD (/octo:tdd) — Test-driven development workflow
10. Spec (/octo:spec) — NLSpec structured authoring
11. Multi-LLM (/octo:multi) — Force all providers on any task
12. Parallel (/octo:parallel) — Team of Teams decomposition
Creative & Documentation:
12. Design (/octo:design-ui-ux) — UI/UX design workflow
13. PRD (/octo:prd) — Product requirements document
14. Docs (/octo:docs) — Documentation delivery
15. Brainstorm (/octo:brainstorm) — Creative ideation
16. Deck (/octo:deck) — Slide deck generation
Quick:
17. Quick (/octo:quick) — Fast ad-hoc execution
MANDATORY: For multi-AI workflows, you MUST use the Bash tool to check provider availability BEFORE displaying the banner:
echo "PROVIDER_CHECK_START"
printf "codex:%s\n" "$(command -v codex >/dev/null 2>&1 && echo available || echo missing)"
printf "gemini:%s\n" "$(command -v gemini >/dev/null 2>&1 && echo available || echo missing)"
printf "agy:%s\n" "$(command -v agy >/dev/null 2>&1 && echo available || echo missing)"
printf "perplexity:%s\n" "$([ -n "${PERPLEXITY_API_KEY:-}" ] && echo available || echo missing)"
printf "opencode:%s\n" "$(command -v opencode >/dev/null 2>&1 && echo available || echo missing)"
printf "copilot:%s\n" "$(command -v copilot >/dev/null 2>&1 && echo available || echo missing)"
printf "qwen:%s\n" "$(command -v qwen >/dev/null 2>&1 && echo available || echo missing)"
printf "ollama:%s\n" "$(command -v ollama >/dev/null 2>&1 && curl -sf http://localhost:11434/api/tags >/dev/null 2>&1 && echo available || echo missing)"
printf "openrouter:%s\n" "$([ -n "${OPENROUTER_API_KEY:-}" ] && echo available || echo missing)"
echo "PROVIDER_CHECK_END"
Then render the provider banner from actual provider checks. Do not hand-write or summarize this banner; run this block and display its output exactly. The output MUST include the Antigravity line even when agy is missing.
status_cli() { command -v "$1" >/dev/null 2>&1 && echo "Available ✓" || echo "Not installed ✗"; }
status_env() { [[ -n "${1:-}" ]] && echo "Configured ✓" || echo "Not configured ✗"; }
codex_status="$(status_cli codex)"
gemini_status="$(status_cli gemini)"
agy_status="$(status_cli agy)"
opencode_status="$(status_cli opencode)"
copilot_status="$(status_cli copilot)"
qwen_status="$(status_cli qwen)"
if command -v ollama >/dev/null 2>&1 && curl -sf http://localhost:11434/api/tags >/dev/null 2>&1; then ollama_status="Available ✓"; else ollama_status="Not installed ✗"; fi
perplexity_status="$(status_env "${PERPLEXITY_API_KEY:-}")"
cat <<BANNER
🐙 **CLAUDE OCTOPUS ACTIVATED** - [Workflow Type]
[Phase Emoji] [Phase Name]: [Brief description]
Providers:
🔴 Codex CLI: ${codex_status}
🟡 Gemini CLI: ${gemini_status}
🧭 Antigravity CLI: ${agy_status}
🟤 OpenCode: ${opencode_status}
🟢 Copilot CLI: ${copilot_status}
🟠 Qwen CLI: ${qwen_status}
⚫ Ollama: ${ollama_status}
🔵 Claude: Available ✓
🟣 Perplexity: ${perplexity_status}
BANNER
The rendered banner must look like this shape, with ACTUAL statuses:
🐙 **CLAUDE OCTOPUS ACTIVATED** - [Workflow Type]
[Phase Emoji] [Phase Name]: [Brief description]
Providers:
🔴 Codex CLI: [Available ✓ / Not installed ✗]
🟡 Gemini CLI: [Available ✓ / Not installed ✗]
🧭 Antigravity CLI: [Available ✓ / Not installed ✗]
🟤 OpenCode: [Available ✓ / Not installed ✗]
🟢 Copilot CLI: [Available ✓ / Not installed ✗]
🟠 Qwen CLI: [Available ✓ / Not installed ✗]
⚫ Ollama: [Available ✓ / Not installed ✗]
🔵 Claude: Available ✓
🟣 Perplexity: [Configured ✓ / Not configured ✗]
PROHIBITED: Displaying only "🔵 Claude: Available ✓" without checking and listing other providers.
After successful routing, append a log entry using the Bash tool:
mkdir -p ~/.claude-octopus && echo "[$(date +%Y-%m-%d\ %H:%M:%S)] intent=<matched_intent> confidence=<HIGH|MEDIUM|LOW> routed_to=<command>" >> ~/.claude-octopus/routing.log
If the user rejects a routing suggestion or says "no, I meant X":
search("routing correction") to inform future routingThis allows the router to learn user preferences over time.
npx claudepluginhub nyldn/claude-octopus --plugin octo/recommendRecommends optimal SuperClaude commands matching user request via keyword extraction and persona assignment. Supports English/Turkish detection and categories like ML, web dev, data.
/sc-recommendRecommends optimal SuperClaude commands matching user input or request. Detects English/Turkish, extracts keywords for categories like ML, web dev, errors, performance.
/spartanDetects project context, git branch, active sessions, and user intent; routes to the best Spartan AI Toolkit workflow leader or command.
/ask-allDispatches a question to GPT, Gemini, Grok, and OpenRouter models in parallel for independent second opinions, then synthesizes and compares the responses.
/autoRuns the SEO/GEO workflow implied by a natural-language goal, using the smallest safe command depth. Supports optional --deep for exhaustive multi-phase orchestration.
/autoExecutes a full development pipeline from planning to PR — plan, test, code review, simplify, security scan, verify, sync docs, commit, push, and merge. Supports feature, bugfix, and refactor modes with optional flags.