codex-agent-orchestration
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.
- License 许可
- MIT
- 最近更新
- 2026-09-05
- Stars
- ★ 2
- Forks
- 1
01 前言 Front Matter
- name
- codex-agent-orchestration
- metadata
- { "short-description": "Orchestrate project Codex subagents" }
- description
- 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.
02 资源文件 3
- 参考文档README.md1.1 KB
- 参考文档references/agent-team-template.md4.7 KB
- 脚本scripts/generate_project_agents.py15.8 KB
03 SKILL.md 正文
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.
04 同仓库更多 Skills
test-strategy-reviewer
Assess verification scope, regression protection, and risk-based test coverage for changes under review or implementation.
security-engineer
Plan or review project security, tool reuse, dependencies, services, integrations, permissions, secrets, supply-chain risk, and security scan requirements.
scope-safety-guard
Review or plan changes that affect permissions, security boundaries, sensitive operations, external effects, or safety constraints.
project-engineer
Turn a design, idea, sketch, brief, or product concept into the simplest feasible project plan spanning design, deployment, security, operations, finance, tool reuse, and verification.
product-designer
Turn ideas, workflows, screenshots, or design briefs into credible product design direction and frontend guidance that avoids generic AI-looking UI.
playbook-installer
Guide adoption of AI-Engineering-Playbook governance files in a portable, repeatable way across repositories.