Parallel execution engine for high-throughput task completion
<Use_When>
<Do_Not_Use_When>
ralph instead (ralph includes ultrawork)autopilot instead (autopilot includes ralph which includes ultrawork)ralph which adds persistence on top of ultrawork
</Do_Not_Use_When><Why_This_Exists> Sequential task execution wastes time when tasks are independent. Ultrawork enables firing multiple agents simultaneously and routing each to the right model tier, reducing total execution time while controlling token costs. It is designed as a composable component that ralph and autopilot layer on top of. </Why_This_Exists>
<Steps> 1. **Read agent reference**: Load `docs/shared/agent-tiers.md` for tier selection 2. **Classify tasks by independence**: Identify which tasks can run in parallel vs which have dependencies 3. **Route to correct tiers**: - Simple lookups/definitions: LOW tier (Haiku) - Standard implementation: MEDIUM tier (Sonnet) - Complex analysis/refactoring: HIGH tier (Opus) 4. **Fire independent tasks simultaneously**: Launch all parallel-safe tasks at once 5. **Run dependent tasks sequentially**: Wait for prerequisites before launching dependent work 6. **Background long operations**: Builds, installs, and test suites use `run_in_background: true` 7. **Verify when all tasks complete** (lightweight): - Build/typecheck passes - Affected tests pass - No new errors introduced </Steps> <Examples> <Good> Three independent tasks fired simultaneously: ``` Task(subagent_type="oh-my-claudecode:executor", model="haiku", prompt="Add missing type export for Config interface") Task(subagent_type="oh-my-claudecode:executor", model="sonnet", prompt="Implement the /api/users endpoint with validation") Task(subagent_type="oh-my-claudecode:executor", model="sonnet", prompt="Add integration tests for the auth middleware") ``` Why good: Independent tasks at appropriate tiers, all fired at once. </Good> <Good> Correct use of background execution: ``` Task(subagent_type="oh-my-claudecode:executor", model="sonnet", prompt="npm install && npm run build", run_in_background=true) Task(subagent_type="oh-my-claudecode:executor", model="haiku", prompt="Update the README with new API endpoints") ``` Why good: Long build runs in background while short task runs in foreground. </Good> <Bad> Sequential execution of independent work: ``` result1 = Task(executor, "Add type export") # wait... result2 = Task(executor, "Implement endpoint") # wait... result3 = Task(executor, "Add tests") # wait... ``` Why bad: These tasks are independent. Running them sequentially wastes time. </Bad> <Bad> Wrong tier selection: ``` Task(subagent_type="oh-my-claudecode:executor", model="opus", prompt="Add a missing semicolon") ``` Why bad: Opus is expensive overkill for a trivial fix. Use executor with Haiku instead. </Bad> </Examples> <Advanced> ## Relationship to Other Modes<Execution_Policy>
model parameter explicitly when delegatingdocs/shared/agent-tiers.md before first delegation for agent selection guidancerun_in_background: true for operations over ~30 seconds (installs, builds, tests)<Tool_Usage>
Task(subagent_type="oh-my-claudecode:executor", model="haiku", ...) for simple changesTask(subagent_type="oh-my-claudecode:executor", model="sonnet", ...) for standard workTask(subagent_type="oh-my-claudecode:executor", model="opus", ...) for complex workrun_in_background: true for package installs, builds, and test suites<Escalation_And_Stop_Conditions>
ralph mode<Final_Checklist>
ralph (persistence wrapper)
\-- includes: ultrawork (this skill)
\-- provides: parallel execution only
autopilot (autonomous execution)
\-- includes: ralph
\-- includes: ultrawork (this skill)
Ultrawork is the parallelism layer. Ralph adds persistence and verification. Autopilot adds the full lifecycle pipeline. </Advanced>