OpenAI CLI
TokRepo for OpenAI Codex
OpenAI Codex CLI. AGENTS.md is the project memory; ~/.codex/skills/ hosts installable skills.
Official docs: https://github.com/openai/codex
60-second integration
Shortest path for OpenAI Codex
- 01
npx -y tokrepo@latest init-agent --target codex - 02
codex --mcp-server tokrepo -- npx -y tokrepo-mcp-server - 03
npx -y tokrepo install <uuid> --target codex --dry-run --json
Project rule file
AGENTS.mdInstall surface
~/.codex/skills/MCP client
codex --mcp-serverMCP install command
codex --mcp-server tokrepo -- npx -y tokrepo-mcp-server
Six mandatory rules
Every agent runtime enforces
- SESSION BOOTSTRAP — call
tokrepo_session_initonce per session. - DISCOVER BEFORE BUILD — call
tokrepo_discoverbefore writing reusable artifacts. - VERIFY BEFORE INSTALL — install_plan must include
trust_gate; honorTOKREPO_MIN_TRUST(default 0.6). - DRY-RUN BEFORE APPLY — lifecycle tools default
dry_run=true. - HANDOFF AFTER REUSABLE WORK — call
tokrepo_handoff_plan. - PRIVATE BY DEFAULT, NEVER PUSH SECRETS.