simple-codex
v0.1.4
Published
A lightweight orchestration layer for the Codex CLI (MVP)
Maintainers
Readme
simple-codex
A lightweight CLI to standardize Codex usage in a project.
Korean documentation: README.ko.md
Links
- npm: https://www.npmjs.com/package/simple-codex
- Intro page: https://yczwiqy.github.io/simple-codex/
Purpose
simple-codex provides a structured workflow for AI-assisted development by installing shared configuration, prompts, and agent rules.
It helps teams run Codex with:
- consistent project context
- role-separated prompts (
architect,executor,review) - reproducible setup and validation
Features
- Install baseline templates for Codex and agents
- Create
AGENTS.mdif missing - Validate workspace health
- Add and list prompt files
- Run a fixed non-interactive workflow (
architect -> executor -> review)
Commands
The package binary is scodex (legacy alias: simple-codex).
setup
Install prompt/skill/config templates.
scodex setup --scope project
# or
scodex setup --scope userdoctor
Validate required files and directories.
scodex doctor --scope projectChecks:
codexHome,agentsHome,stateHomeAGENTS.md<CODEX_HOME>/config.toml<CODEX_HOME>/prompts/{architect,executor,review}.md<AGENTS_HOME>/skills
prompt add
Create a prompt file under <CODEX_HOME>/prompts.
scodex prompt add my-role --scope projectprompt list
List prompts under <CODEX_HOME>/prompts.
scodex prompt list --scope projectworkflow
Run a fixed sequence:
architectexecutor(receives architect output)review(receives architect + executor outputs)
Prints the final review output.
scodex workflow --scope project --task "Create a project introduction HTML page"Scope Behavior
--scope project
codexHome:<cwd>/.codexagentsHome:<cwd>/.agentsagentsMd:<cwd>/AGENTS.mdstateHome:<cwd>/.myx
--scope user
codexHome:~/.codexagentsHome:~/.agentsagentsMd:<cwd>/AGENTS.mdstateHome:~/.myx
Development
pnpm install
pnpm buildRun compiled CLI:
node dist/cli.js --helpProject Structure
src/
cli.ts
commands/
setup.ts
doctor.ts
prompt.ts
workflow.ts
templates/
utils/Roadmap
- Stage 1: setup/doctor/prompt template system
- Stage 2 (current): fixed multi-role workflow with output handoff
- Stage 3 (planned): persisted run state and resume/replay
- Stage 4 (planned): DAG workflow, branching, parallel safe execution
License
ISC
