Portable workflow kit to orchestrate Codex sub-agents and team-style parallel sessions with strict file ownership, shared task boards, and reusable prompts.
This repository helps you run Codex in a repeatable lead/worker model:
- fast
sub-agentmode for focused tasks teammode for multi-worker parallel work with dependencieslight-report-onlymode for quick 2-worker analysis runsadaptivemode where the lead generates workers from project context with user-defined guardrails
Codex is strong at task execution, but parallel coordination patterns are often ad-hoc. This kit provides:
- clear orchestration policies
- ready-to-run PowerShell scripts
- prompt templates for lead and teammates
- board validation to prevent file overlap and race conditions
Codex, Codex teams, sub-agents, team orchestration, parallel AI coding, agent workflow, multi-agent coding.
All runtime assets are bundled in one folder so you can copy it into any project:
SubAgentsSet/main portable packSubAgentsSet/SKILL.mdskill entrypointSubAgentsSet/policies/orchestration rules and checklistsSubAgentsSet/templates/lead/teammate/task board templatesSubAgentsSet/scripts/bootstrap, validate, render, run scripts
- PowerShell 7+ (or Windows PowerShell with compatible syntax)
- Codex CLI available in
PATHascodex
Copy SubAgentsSet/ into your target repository.
Use:
SubAgentsSet/policies/subagent_vs_team_matrix.md
powershell -ExecutionPolicy Bypass -File .\SubAgentsSet\scripts\run_subagents_from_prompts.ps1 `
.\SubAgentsSet\prompts\topic_a.txt `
.\SubAgentsSet\prompts\topic_b.txtor run all prompt .txt files in SubAgentsSet/prompts/ (except TEMPLATE*):
powershell -ExecutionPolicy Bypass -File .\SubAgentsSet\scripts\run_subagents.ps1Bootstrap a run:
powershell -ExecutionPolicy Bypass -File .\SubAgentsSet\scripts\bootstrap_team_run.ps1 `
-TeamName my-feature -Teammates 3Validate board:
powershell -ExecutionPolicy Bypass -File .\SubAgentsSet\scripts\validate_team_board.ps1 `
-BoardPath .\SubAgentsSet\team_runs\<run-id>\task_board.jsonRun teammates from board:
powershell -ExecutionPolicy Bypass -File .\SubAgentsSet\scripts\run_team_from_board.ps1 `
-BoardPath .\SubAgentsSet\team_runs\<run-id>\task_board.jsonpowershell -ExecutionPolicy Bypass -File .\SubAgentsSet\scripts\migrate_legacy_prompts_to_board.ps1 `
-PromptDir .\SubAgentsSet\prompts `
-OutputBoardPath .\SubAgentsSet\examples\seo_kb_team\task_board.json `
-TeamName seo-kb-team `
-Teammates 2powershell -ExecutionPolicy Bypass -File .\SubAgentsSet\scripts\bootstrap_light_team_run.ps1 `
-TeamName light-analysisUse the template CSV:
SubAgentsSet/templates/subagent_quick_tasks.template.csv
Then generate prompts:
powershell -ExecutionPolicy Bypass -File .\SubAgentsSet\scripts\generate_subagent_prompts_from_csv.ps1 `
-CsvPath .\SubAgentsSet\templates\subagent_quick_tasks.template.csv `
-OutputDir .\SubAgentsSet\prompts\generatedPrepare:
- context file from
SubAgentsSet/templates/adaptive_context.template.md - guardrails from
SubAgentsSet/templates/guardrails.template.json
Bootstrap adaptive run:
powershell -ExecutionPolicy Bypass -File .\SubAgentsSet\scripts\bootstrap_adaptive_team_run.ps1 `
-ContextPath .\SubAgentsSet\templates\adaptive_context.template.md `
-GuardrailsPath .\SubAgentsSet\templates\guardrails.template.json `
-TeamName adaptive-demoValidate and run:
powershell -ExecutionPolicy Bypass -File .\SubAgentsSet\scripts\validate_team_board.ps1 `
-BoardPath .\SubAgentsSet\team_runs\<run-id>\task_board.json
powershell -ExecutionPolicy Bypass -File .\SubAgentsSet\scripts\run_team_from_board.ps1 `
-BoardPath .\SubAgentsSet\team_runs\<run-id>\task_board.jsonGuardrail knobs (in SubAgentsSet/templates/guardrails.template.json):
max_subagents_totalmax_parallel_workersrequire_disjoint_target_filesno_recursive_subagentsrequire_lead_approval_for_code_changesallow_code_changes
codex sub-agents ai-agents multi-agent agent-orchestration developer-tools prompt-engineering automation
MIT (see LICENSE).