Agent skill
swarm
Spawn isolated Codex sub-agents for parallel task execution using the current runtime primitives. Triggers: "swarm", "spawn agents", "parallel work", "run in parallel", "parallel execution".
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/swarm-boshu2-agentops-2
SKILL.md
$swarm — Parallel Agent Execution (Codex Tailoring)
This override captures the Codex-native execution model for parallel work.
The active runtime primitives are:
spawn_agentsend_inputwait_agentclose_agent
Use agent_type="explorer" for read-only discovery and agent_type="worker" for implementation workers.
Core Rules
- Only parallelize tasks with disjoint file ownership.
- Give every worker an explicit file manifest and validation command.
- Tell each worker it is not alone in the repo and must not revert unrelated edits.
- Wait sparingly. Keep the lead agent doing useful non-overlapping work.
- The lead agent validates, integrates, and closes the loop.
Codex-Native Flow
Step 1: Prepare tasks
Each task must define:
idsubjectdescriptionfilesvalidation
If file ownership is unknown, spawn explorer agents first to map the blast radius.
Step 2: Conflict check
Do not run workers in the same wave if they claim overlapping files. Split them into sub-waves instead.
Step 3: Spawn workers
Use one spawn_agent(...) call per worker with:
agent_type="worker"- a bounded task
- explicit owned files
- explicit validation steps
Step 4: Monitor
Use wait_agent(...) only when the next integration step actually depends on the worker result. If a worker needs a correction, use send_input(...) with a focused follow-up.
Step 5: Integrate
The lead agent reviews worker outputs, runs repo-level validation, and decides whether to launch another wave.
Fallback
If sub-agents are unavailable, execute the same tasks sequentially in the lead session while keeping the same file-ownership and validation discipline.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?