Codex Subagents Guide
This guide describes the Codex-native inference setup.
Codex can run locally from the terminal, inspect and edit files, and run commands in the selected directory. Keep Codex sessions rooted in inference/ so project-local configuration, scripts, and result paths resolve correctly.
Checked-In Codex Assets
.codex/config.tomlProject-scoped Codex agent registry..codex/agents/inference-lab.tomlParent coordinator..codex/agents/optimizer.tomlRead-only speed optimizer..codex/agents/benchmarker.tomlLocal endpoint benchmarker.
Recommended Start
Start Codex from inference/ and let the main session use the checked-in subagents:
bash
codexFor a longer prompt skeleton:
bash
python3 scripts/print_codex_kickoff.pyWorkflow
- Read
AGENTS.md,README.md, and this guide. - Spawn
optimizerfor one-variable speed candidates. - Spawn
benchmarkerfor reproducible endpoint measurements. - Use
scripts/resolve_hf_gguf.pyfor exact GGUF command construction. - Append completed measurements to
research/results.tsv.
Docs MCP
For OpenAI product or Codex documentation questions, use the OpenAI developer documentation MCP server when available. A user-level install can be added with:
bash
codex mcp add openaiDeveloperDocs --url https://developers.openai.com/mcpThis inference project does not require OpenAI docs access for llama.cpp benchmarking itself; the MCP note is for Codex-specific usage questions.
References
https://developers.openai.com/codex/clihttps://developers.openai.com/learn/docs-mcp