DEPRECATED: This skill is deprecated. Use evolving-workflow instead, which provides a declarative workflow API with built-in parallel execution support via .concurrency(n).
Run multiple AI agent threads concurrently with bounded parallelism and collect results safely.
When to use this skill
Running multiple agent tasks in parallel
Fan-out work across files, packages, or repositories
Batch processing with rate limiting
Streaming progress from concurrent tasks
Collecting structured outputs from multiple agents
Quick navigation
Need
Resource
New to Codex SDK
references/codex-basics.md
Advanced options
references/codex-advanced.md
Async patterns
references/async-basics.md
Troubleshooting
references/troubleshooting.md
Production-ready assets
Copy these to jumpstart your implementation:
Asset
Description
Run
parallel_batch
Reentrant batch processing with stdin/file input, offset/limit, JSON output
moon run -C assets/parallel_batch assets/parallel_batch
package_analyzer
Discover and summarize all MoonBit packages
moon run -C assets/package_analyzer assets/package_analyzer
How to use these assets
Copy the asset directory to your project
Customize run_task() (or the main processing function) for your use case
Adjust structs (TaskInput, etc.) if you need additional fields
Set environment variables as needed (CODEX_WORKDIR, PARALLELISM)
See each asset's README for detailed usage and options.
Key rules
One thread per task - never share threads across concurrent tasks
Use semaphores - guard parallel runs with @async.Semaphore::new(n) to avoid rate limits
Set working directory - use ThreadOptions::new(working_directory=...) for task isolation
Allow failures - use allow_failure=true and capture errors per task
Avoid conflicts - for tasks that modify shared resources (e.g., building software, editing same files), use git worktrees or separate directories to isolate each agent
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: moonbit-community-codex-sdk-codex-parallel-subagents3description: Codex Parallel Subagents4---56# Codex Parallel Subagents78> **DEPRECATED**: This skill is deprecated. Use [evolving-workflow](../evolving-workflow/SKILL.md) instead, which provides a declarative workflow API with built-in parallel execution support via `.concurrency(n)`.910Run multiple AI agent threads concurrently with bounded parallelism and collect results safely.1112## When to use this skill1314- Running multiple agent tasks in parallel15- Fan-out work across files, packages, or repositories16- Batch processing with rate limiting17- Streaming progress from concurrent tasks18- Collecting structured outputs from multiple agents1920## Quick navigation2122| Need | Resource |23|------|----------|24| New to Codex SDK | [references/codex-basics.md](references/codex-basics.md) |25| Advanced options | [references/codex-advanced.md](references/codex-advanced.md) |26| Async patterns | [references/async-basics.md](references/async-basics.md) |27| Troubleshooting | [references/troubleshooting.md](references/troubleshooting.md) |2829## Production-ready assets3031Copy these to jumpstart your implementation:3233| Asset | Description | Run |34|-------|-------------|-----|35| [parallel_batch](assets/parallel_batch) | Reentrant batch processing with stdin/file input, offset/limit, JSON output | `moon run -C assets/parallel_batch assets/parallel_batch` |36| [package_analyzer](assets/package_analyzer) | Discover and summarize all MoonBit packages | `moon run -C assets/package_analyzer assets/package_analyzer` |3738### How to use these assets39401. **Copy the asset directory** to your project412. **Customize `run_task()`** (or the main processing function) for your use case423. **Adjust structs** (`TaskInput`, etc.) if you need additional fields434. **Set environment variables** as needed (`CODEX_WORKDIR`, `PARALLELISM`)4445See each asset's README for detailed usage and options.4647## Key rules48491. **One thread per task** - never share threads across concurrent tasks502. **Use semaphores** - guard parallel runs with `@async.Semaphore::new(n)` to avoid rate limits513. **Set working directory** - use `ThreadOptions::new(working_directory=...)` for task isolation524. **Allow failures** - use `allow_failure=true` and capture errors per task535. **Avoid conflicts** - for tasks that modify shared resources (e.g., building software, editing same files), use git worktrees or separate directories to isolate each agent5455---56> Converted and distributed by [TomeVault](https://tomevault.io/claim/moonbit-community) — claim your Tome and manage your conversions.57<!-- tomevault:4.0:skill_md:2026-04-12 -->
Run npx skillmds@latest add tomevault-io/moonbit-community-codex-sdk-codex-parallel-subagents in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Codex Parallel Subagents It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.