codex_opencode is a Codex-native workflow pack inspired by oh-my-openagent.
It does not build a new runtime or command shell. It adapts the collaboration method into native Codex primitives:
- project-scoped custom agents in
.codex/agents/ - project-scoped workflow skills in
.codex/skills/ - durable planning and execution state in
.sisyphus/
- the original role topology, adapted into Codex custom agents:
sisyphus,prometheus,metis,momus,atlas,hephaestus,sisyphus-junior,oracle,explore,librarian,multimodal-looker - planning and execution separation
- plan files and execution notepads
- explicit workflow entrypoints instead of free-form agent drift
- high-signal multi-turn continuity for long tasks
- slash-command runtime
- background-task shell or tmux pane orchestration
- hook, plugin, and tool-registry internals from
oh-my-openagent - category-driven model routing and provider fallback runtime
- hashline editing, LSP, AST-Grep, and skill-MCP lifecycle management
- the full product shell around OpenCode
$plan-workCreate an execution-ready plan under.sisyphus/plans/$start-workExecute an existing plan throughatlas$ultraworkAction-first execution with dynamic routing$review-workFindings-first review for plans, code, and config
sisyphusMain orchestratorprometheusStrategic plannermetisPre-planning consultantmomusPractical plan revieweratlasPlan execution conductorhephaestusAutonomous deep workersisyphus-juniorFocused executor for small bounded slicesoracleArchitecture and risk consultantexploreLocal codebase explorerlibrarianDocs and OSS researchermultimodal-lookerRead-only visual analyst
codex_opencode/
├── README.md
├── .codex/
│ ├── config.toml
│ ├── agents/
│ └── skills/
├── .sisyphus/
│ ├── README.md
│ ├── plans/
│ ├── notepads/
│ └── templates/
├── scripts/
│ ├── install-into-repo.zsh
│ ├── render-prompt.zsh
│ ├── smoke-agents.zsh
│ └── target-session.zsh
└── docs/
The default usage is embed-in-repo.
Use this when your goal is:
- copy the workflow into your project
cd "/path/to/your-project"- run
codex - use the workflow directly inside that repo
In this mode:
.codex/and the.sisyphus/skeleton are the required pieces- scripts are optional helpers, not runtime requirements
- plans and notepads live in the current repo
.sisyphus/ - named custom-agent prompts are the most stable entry
Minimal startup:
cd "/path/to/your-project"
codexOr install the core pack into an existing repo in one step:
cd "/Users/bytedance/PycharmProjects/test3/codex_opencode"
./scripts/install-into-repo.zsh "/path/to/your-project"That installer now also:
- writes a managed
.gitignoreblock so.codex/,.sisyphus/, anddocs/codex-opencode/are not accidentally ignored - copies the usage docs into
docs/codex-opencode/inside the target repo
Recommended first prompt:
Use the custom agent named prometheus for this task.
Its registration file is .codex/agents/prometheus.toml.
Create an execution-ready .sisyphus plan for a very small, safe improvement in this repository.
Start here:
Use this only when your goal is:
- audit or operate against many target repos
- keep the active runtime separate from the target repo
- avoid routing drift when the target repo already contains its own workflow pack
In this mode:
- the harness workspace is the active runtime
- target-repo workflow files are usually evidence, not the active runtime
- helper scripts are useful but still optional
Read these docs if you intentionally choose that mode:
To verify the pack itself without embedding it elsewhere:
cd "/Users/bytedance/PycharmProjects/test3/codex_opencode"
codex exec --skip-git-repo-check -s read-only "Use the custom agent named prometheus for this task. Its registration file is .codex/agents/prometheus.toml. Explain how this workspace is structured and what it is for."To verify that all 11 custom agents are actually recognized and spawnable by Codex CLI:
cd "/Users/bytedance/PycharmProjects/test3/codex_opencode"
./scripts/smoke-agents.zshThe scripts/ directory is optional. It is mainly useful when you keep a separate workflow repo for harness-mode work.
install-into-repo.zshcopies.codex/,.sisyphus/, writes a managed.gitignoreblock, and installs usage docs intodocs/codex-opencode/render-prompt.zshgenerates copy-paste prompt text for common harness flowstarget-session.zshstarts a harness Codex session with--add-dirsmoke-agents.zshvalidates agent discoverability in this repo
- docs/architecture.md
- docs/agent-smoke-matrix.md
- docs/agents.md
- docs/skills.md
- docs/prompts.md
- docs/embed-in-repo.zh.md
- docs/project-overview.zh.md
- docs/usage-handbook.zh.md
- docs/usage-guide.zh.md
- docs/operator-cheatsheet.zh.md
- docs/user-manual.md
- docs/harness-playbook.zh.md
This template was derived from:
/Users/bytedance/PycharmProjects/test3/oh-my-openagent- Codex custom-agent and skill capabilities available in the current Codex CLI environment