auto
Smart router - Single entry point with natural language intent detection
[advanced] Execute tasks in loops with conditions, iterative improvements until goals are met
> /plugin marketplace add nyldn/claude-octopusHow it fires
How this command gets triggered: by you, by Claude, or both.
/loopContext preview
What this command does when you run it.
[advanced] Execute tasks in loops with conditions, iterative improvements until goals are met
command: loop disable-model-invocation: true description: "[advanced] Execute tasks in loops with conditions, iterative improvements until goals are met"
**Your first output line MUST be:** `๐ Octopus Loop Mode`
Read and follow the full skill instructions from: `${HOME}/.claude-octopus/plugin/.claude/skills/skill-iterative-loop/SKILL.md`
Just use natural language:
"Loop 5 times auditing, enhancing, testing" "Keep trying until all tests pass" "Iterate until performance improves"
Or use the explicit command:
/octo:loop "run tests and fix issues" --max 5 /octo:loop "optimize performance until < 100ms"
1. **Define Goal**: Clear success criteria and exit conditions 2. **Set Max Iterations**: Safety limit to prevent infinite loops 3. **Execute**: Run the task/operation 4. **Evaluate**: Check if goal is met or progress made 5. **Loop or Complete**: Continue if needed, stop when done
**Testing Loops:**
"Loop until all unit tests pass, max 3 attempts" "Keep fixing failing tests until test suite is green"
**Optimization Iterations:**
"Loop 5 times optimizing query performance" "Iterate until API response time is under 100ms"
**Progressive Enhancement:**
"Loop around 3 times enhancing error handling" "Iterate improving code quality until score > 80"
**Retry Patterns:**
"Try up to 5 times to connect to the database" "Loop until deployment succeeds, max 3 retries"
"Loop 5 times auditing, enhancing, testing the authentication module" "Keep trying until the deployment succeeds, max 3 attempts" "Iterate improving the algorithm until performance is under 50ms" "Run the optimization loop 10 times and track progress" "Loop around 3 times fixing linting errors until all clear"
When you specify a `Metric:` command, the loop switches to mechanical metric verification. Each iteration makes ONE atomic change, commits it with an `experiment:` prefix, measures the metric, and automatically reverts if the metric worsens.
/octo:loop Metric: npm test -- --coverage | grep 'All files' | awk '{print $10}' Direction: higher Guard: npm test Iterations: 20/octo:loop Metric: time npm run build 2>&1 | grep real | awk '{print $2}' Direction: lower Iterations: 10/octo:loop Metric: wc -l src/**/*.ts | tail -1 | awk '{print $1}' Direction: lower Guard: npm test Iterations: 151. Establishes baseline by running the metric command 2. Each iteration: one change โ git commit โ measure โ keep or revert 3. Results logged to `.claude-octopus/experiments/<date>.jsonl` 4. Resumes from existing log if experiment was interrupted 5. Reports improvement summary when complete
See the full skill documentation for detailed execution contract and rules.
Every AI model has blind spots. Claude Octopus supports twelve external provider integrations โ Codex, Antigravity CLI, Copilot, Qwen, Ollama, Perplexity, OpenRouter, OrcaRouter, OpenCode, Cursor CLI, Grok, and Kimi Code โ alongside the built-in Claude Code
Repo: nyldn/claude-octopus
Smart router - Single entry point with natural language intent detection
Start a creative thought partner brainstorming session
Switch Octopus model routing to the configured budget tier
[advanced] Activate destructive command warnings for the session
[advanced] Compatibility view of the deterministic Octopus usage report
Multi-LLM council for advice, decision support, implementation plans, and gated implementation