Source: docs/ARCHITECTURE.md
Architecture
Goal
Provide a workflow operating system for GPT Codex in VS Code with:
- intent routing
- phase-based execution
- orchestration gates
- reusable local project templates
Layers
- Skill Core
skills/codex-workflows/SKILL.md- Activation and top-level execution contract
- Routing and Governance
references/routing/intent-matrix.mdreferences/orchestration/phase-gates.md- explicit activations via
cw /<workflow>andcodex-workflow(s) /<workflow> - utility commands via
cw /helpandcw /examples
- Workflow Knowledge Base
references/workflows/*.mdreferences/templates/output-templates.md- References are codex-native contracts (mirrored from
templates/codex-native/.agent/workflows). - Catalog includes general software workflows plus game-specific
/game-devand/roblox-game-dev.
- Automation Scripts
scripts/route_workflow.pyscripts/route_workflow_fast.pyscripts/routing_data.pyscripts/bootstrap_project_agent.pyscripts/sync_compat_pack.pyscripts/build_compat_manifest.pyscripts/check_compat_drift.pyscripts/check_workflow_parity.pyscripts/check_codex_native_quality.pyscripts/check_codex_native_assets.pyscripts/check_codex_native_rules.pyscripts/benchmark_router.pyscripts/codex_workflows_ops.py
- Project Template
templates/codex-native/.agent/...(default independent codex-native profile)- native
agents/*.mdcapability catalog - native
skills/*/SKILL.mdcapability catalog - layered rules model:
rules/global/*.mdrules/domains/*.mdrules/workflows/*.md
templates/.agent/...(full template baseline)templates/minimal/.agent/...(lightweight starter)- Bootstraps local workflow files for projects without
.agent
- Compatibility Pack
packs/antigravity-compat/.agent/...- Full compatibility profile for projects that want Antigravity-like depth in Codex
- Governance and Quality
compat/manifest.jsonfor drift control.github/workflows/ci.ymlfor automated checks- cross-platform installer E2E matrix (
cw-install-e2e-matrix) - Split parity gate via
check_workflow_parity.py:- references <-> codex-native template
- compat template <-> compat pack
- Codex-native workflow quality gate via
check_codex_native_quality.py - Codex-native structural gate via
check_codex_native_assets.py - Codex-native layered rules gate via
check_codex_native_rules.py - Stack CI matrix (Node/Python/Rust) running real fixture checks
tests/for script correctness
- Domain Packs
skills/codex-backend-packskills/codex-frontend-packskills/codex-security-packskills/codex-qa-pack
- Stack Validation Packs
skills/codex-node-validation-packskills/codex-python-validation-packskills/codex-rust-validation-pack- Stack-aware validation scripts for deterministic quality checks
- Release Automation
scripts/release_automation.py.github/workflows/release.yml- Automated changelog cut + tag + release publishing flow
package.jsonversion sync gate + npm auto publish onv*tags
- End-to-End Example Catalog
examples/node-auth-api/README.mdexamples/python-fastapi-orders/README.mdexamples/rust-events-cli/README.mdexamples/projects/runnable fixtures used by CI stack matrix
- All-in-One Installation
npx @codex-workflow/cw(primary distribution channel)scripts/install_all_in_one.pyscripts/codexwf.py(installcommand)- One-command installer orchestration for core + domain + stack packs
- Web Documentation Portal
website/(VitePress portal)- EN + PT-BR + ES + FR + ZH locales
.github/workflows/docs.ymlfor GitHub Pages deploymentwebsite/scripts/sync_reference_docs.pyfor mirrored technical references
- Composer Wrapper Channel
composer.jsonscripts/composer_install.php- Optional PHP-native command surface for invoking official Codex installer
- Community Governance
.github/ISSUE_TEMPLATE/*.github/PULL_REQUEST_TEMPLATE.md.github/CODEOWNERSdocs/COMMUNITY.md
Execution Model
User request -> route workflow -> run phases -> validate -> report
For complex tasks:
User request -> /orchestrate -> discovery -> planning gate -> implementation -> verification -> synthesis