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".

Stars 271
Forks 24

Install this agent skill to your Project

npx add-skill https://github.com/boshu2/agentops/tree/main/skills-codex-overrides/swarm

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_agent
  • send_input
  • wait_agent
  • close_agent

Use agent_type="explorer" for read-only discovery and agent_type="worker" for implementation workers.

Core Rules

  1. Only parallelize tasks with disjoint file ownership.
  2. Give every worker an explicit file manifest and validation command.
  3. Tell each worker it is not alone in the repo and must not revert unrelated edits.
  4. Wait sparingly. Keep the lead agent doing useful non-overlapping work.
  5. The lead agent validates, integrates, and closes the loop.

Codex-Native Flow

Step 1: Prepare tasks

Each task must define:

  • id
  • subject
  • description
  • files
  • validation

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.

Expand your agent's capabilities with these related and highly-rated skills.

boshu2/agentops

council

Multi-perspective review for Codex using the current sub-agent runtime. Triggers: "council", "get consensus", "multi-model review", "multi-perspective review", "council validate", "council brainstorm", "council research".

271 24
Explore
boshu2/agentops

openai-docs

Use when the user asks how to build with OpenAI products or APIs and needs up-to-date official documentation with citations (for example: Codex, Responses API, Chat Completions, Apps SDK, Agents SDK, Realtime, model capabilities or limits); prioritize OpenAI docs MCP tools and restrict any fallback browsing to official OpenAI domains.

271 24
Explore
boshu2/agentops

crank

Hands-free epic execution for Codex using wave-based sub-agents and lead-side validation. Triggers: "crank", "run epic", "execute epic", "run all tasks", "hands-free execution", "crank it".

271 24
Explore
boshu2/agentops

pr-retro

Learn from PR outcomes. Analyzes accept/reject patterns and updates contribution lessons. Triggers: "pr retro", "learn from PR", "PR outcome", "why was PR rejected", "analyze PR feedback".

271 24
Explore
boshu2/agentops

ratchet

Brownian Ratchet progress gates for RPI workflow. Check, record, verify. Triggers: "check gate", "verify progress", "ratchet status".

271 24
Explore
boshu2/agentops

pre-mortem

Validate a plan or spec before implementation using multi-model council. Answer: Is this good enough to implement? Triggers: "pre-mortem", "validate plan", "validate spec", "is this ready".

271 24
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results