codex-agent-orchestration
Skill2 starsChanged 8 months agoMITView on GitHub
Set up and run Codex custom subagent orchestration for software projects. Use when a user wants a project-local `.codex/agents/*.toml` team, an `AGENTS.md` orchestration contract, a software-factory workflow, parallel Codex subagents, or reusable agent chains such as architect to backend/frontend to tester/security/reviewer.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- architecture-guardianSkill
- artifact-contract-reviewerSkill
- deployment-engineerSkill
- finance-engineerSkill
- llm-output-reviewerSkill
- operations-engineerSkill
- performance-optimizerSkill
- playbook-installerSkill
- product-designerSkill
- project-engineerSkill
- scope-safety-guardSkill
- security-engineerSkill
- test-strategy-reviewerSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 11 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 12
Use this skill to turn any repository into a Codex-orchestrated software team.
- Distinctive: line 16
Prefer the bundled generator for new or updated projects:
- Distinctive: line 22
If the skill is installed in Codex, the generator usually lives at:
- Distinctive: line 28
Read agent-team-template.md only when manually customizing the generated files.
- Very specific: line 33
Run generate_project_agents.py --project <repo> to synthesize the agent team from detected project signals.
- Very specific: line 35
Keep or tune the generated agents.
- Distinctive: line 43
Wait for the plan.
- Distinctive: line 45
Wait for implementers and reconcile their results in the parent session.
- Distinctive: line 51
Use direct instructions such as:
- Distinctive: line 59
Do not spawn write-capable agents against overlapping files at the same time.
- Distinctive: line 60
Do not let subagents commit, push, publish, deploy, rotate secrets, or change permissions unless the user explicitly requested that outcome …
- Distinctive: line 61
Keep raw logs and broad exploration in subagents.
- Distinctive: line 62
Keep the parent session responsible for structured output schemas, final user-facing decisions, and cross-agent conflict resolution.
- Distinctive: line 63
Prefer high-reasoning models for architect, security, reviewer, and ambiguous fixes.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Codex Agent Orchestration
Overview
Use this skill to turn any repository into a Codex-orchestrated software team. The project-local layer is .codex/agents/*.toml; the reusable workflow layer is this skill; the repo instruction layer is AGENTS.md.
Generated agents are named by project, role, and job so their purpose is clear at a glance, for example companyos_backend_api_service_builder or companyos_tester_regression_checker.
Prefer the bundled generator for new or updated projects:
python /path/to/codex-agent-orchestration/scripts/generate_project_agents.py --project .If the skill is installed in Codex, the generator usually lives at:
python ~/.codex/skills/codex-agent-orchestration/scripts/generate_project_agents.py --project .Read agent-team-template.md only when manually customizing the generated files.
Setup Workflow
- Inspect the repository shape and existing instructions.
- Run
generate_project_agents.py --project <repo>to synthesize the agent team from detected project signals. - Review the generated plan in the script output. Re-run with
--dry-runfirst when the repository already has hand-written.codexfiles or anAGENTS.md. - Keep or tune the generated agents. Default names use
<project>_<role>_<job>. Use--generic-namesonly when the user prefers portable names such asarchitect_plan_mapperandreviewer_quality_gate_reviewer. - Validate TOML syntax and confirm every custom agent defines
name,description, anddeveloper_instructions.
Running The Team
For substantial work, orchestrate this default chain:
- Spawn architect or explorer to inspect the repo and produce a plan.
- Wait for the plan.
- Spawn independent implementers in parallel only when they can avoid editing the same files.
- Wait for implementers and reconcile their results in the parent session.
- Spawn tester and reviewer. Add security when auth, permissions, payments, secrets, untrusted input, deployment, or compliance are involved.
- Route critical or high findings back to the smallest relevant implementation agent.
- Rerun tester and reviewer after fixes.
- Return a parent-session final summary with changed files, verification, risks, and unresolved items.
Use direct instructions such as:
Use the project Codex agent team. Have the architect map the work first, then delegate backend and frontend changes in parallel if they do not touch the same files. Run tester and reviewer before the final summary.Guardrails
- Do not spawn write-capable agents against overlapping files at the same time.
- Do not let subagents commit, push, publish, deploy, rotate secrets, or change permissions unless the user explicitly requested that outcome and the parent session handles approval.
- Keep raw logs and broad exploration in subagents; return distilled results to the parent.
- Keep the parent session responsible for structured output schemas, final user-facing decisions, and cross-agent conflict resolution.
- Prefer high-reasoning models for architect, security, reviewer, and ambiguous fixes. Prefer faster models for read-heavy scans and narrow repetitive work when configured by the project.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

