from vibe coding to agentic engineering - practice makes codex perfect


= Agents ·
= Commands ·
= Skills
How to Use · Verification history · Verification checklist
| Feature |
Location |
Description |
Commands |
Interactive slash menu |
Use /plan, /review, /model, and /permissions. Save recurring prompts and commands with /presets |
| Goals |
/goal |
Set a persistent objective with a verifiable completion condition |
Subagents |
.codex/agents/ · /subagents |
Delegate independent work to built-in or custom agents |
Skills |
.agents/skills/ |
Reference Reusable instructions. Find them with /skills or mention $skill-name |
| Plugins |
/plugins · codex plugin |
Install bundles that can include skills, apps, MCP servers, and hooks |
| Marketplace |
.agents/plugins/marketplace.json |
Manage catalogs with codex plugin marketplace add|list|upgrade|remove |
| Memories |
/memories · [features].memories |
Opt in to carry context across chats using the local memory store |
| Workflows |
Weather agent |
Fetch data with a custom agent, then render an artifact with a skill |
| MCP Servers |
[mcp_servers.*] · codex mcp |
Connect to stdio or Streamable HTTP servers. The experimental App Server replaces the removed codex mcp-server for embedding Codex |
| Config |
.codex/config.toml |
Trusted project and user layers, named config profiles, and CLI overrides |
| Permissions |
/permissions · /approve |
Control sandboxing and approvals. Named filesystem and network permission profiles are in beta |
Rules  |
.codex/rules/ |
Use Starlark prefix_rule() to control commands outside the sandbox |
| AGENTS.md |
AGENTS.md |
Layer one instruction file per directory from the project root to the working directory |
| Hooks |
.codex/hooks.json · /hooks |
Run command or MCP hooks at lifecycle events. Review and trust new or changed project hooks |
| Models |
/model · --model |
The v0.171.0 catalog defaults to GPT-6.2 Sol and includes GPT-6.2 Astra and GPT-6.1 Terra. Availability depends on provider, account, and workspace |
| Speed |
/fast · /ultrafast |
Select a supported speed tier when offered by your model catalog and plan |
| Code Review |
/review · codex review |
Review a branch, uncommitted changes, or a commit. Configure review_model for a separate review model |
| Sessions |
codex agents · /agents |
Search sessions, resume or fork work, archive or restore sessions, and export transcripts |
| Worktrees |
codex --worktree · /worktree |
Work in an isolated Git checkout while other sessions use the repository |
| Non-interactive mode |
codex exec |
Run scripted tasks with JSONL events or structured output. See the CI example |
| AI Terms |
|
Agentic Engineering · Context Engineering · Vibe Coding |
| Best Practices |
|
Prompting · Codex CLI guide |
| Feature |
Location |
Description |
| Terminal workspace |
Fullscreen TUI |
Enabled by default in v0.171.0, with searchable document previews, image previews, and subagent transcripts alongside the main chat |
| Remote control |
/rc or /remote |
Manage local remote control and show device pairing codes |
| Remote exec |
codex exec --remote <ADDR> |
Start or resume a non-interactive session on an existing experimental app server |
MCP status line  |
/statusline |
Create or select a custom MCP status line with features.tui_extensions_statusline enabled |
| Terminal controls |
/config · /keymap · /tui |
Change preferences, remap shortcuts, and choose fullscreen or scrollback |
| Background server |
/daemon · --no-daemon |
Eligible interactive sessions share a local server. Use --no-daemon for an isolated launch |
| Desktop handoff |
/app |
Continue the CLI chat in the desktop app on macOS or Windows |
| Import |
/import |
Preview supported setup and chats from Claude Code or Cursor and choose what to migrate |

See orchestration-workflow for implementation details of
Agent →
Skill pattern. The agent fetches the temperature from Open-Meteo, and the parent passes it to the SVG creator skill.

codex
> Use weather-agent to fetch the current temperature in Dubai in Celsius, then use $weather-svg-creator to create the weather card.
The prompt supplies the temperature unit. Save it with /presets to run it again.
All major workflows converge on the same architectural pattern: Research → Plan → Execute → Review → Ship
Yellow tags show steps that repeat inside a parent step. Workflow steps and counts are snapshots; check the linked project for its current inventory.
Prompting · Planning · AGENTS.md · Agents · Skills · Hooks · Memories · Workflows · Advanced · Git / PR · Debugging · Utilities · Daily

■ Prompting (3)
| Tip |
| challenge Codex — "prove to me this works" and have Codex diff between main and your branch |
| after a mediocre fix — "knowing everything you know now, scrap this and implement the elegant solution" |
| Codex fixes most bugs by itself — paste the bug, say "fix", don't micromanage how |
■ Planning (4)
| Tip |
| use /plan when you want an explicit plan — Codex may also plan automatically for multi-step tasks |
| always make a phase-wise gated plan, with each phase having multiple tests (unit, automation, integration) |
| spin up a second Codex (or use cross-model) to review your plan as a staff engineer |
| write detailed specs and reduce ambiguity before handing work off — the more specific you are, the better the output |
■ AGENTS.md (5)
| Tip |
| keep AGENTS.md concise — 150 lines is a useful heuristic, but the actual project budget is byte-based (32 KiB by default) |
| use AGENTS.override.md for personal preferences without affecting the team |
| any developer should be able to launch Codex, say "run the tests" and it works on the first try — if it doesn't, your AGENTS.md is missing essential setup/build/test commands |
| keep codebases clean and finish migrations — partially migrated frameworks confuse models that might pick the wrong pattern |
| use config.toml for harness-enforced behavior (approval policy, sandbox, model) — don't put behavioral rules in AGENTS.md when config.toml settings are deterministic |
Agents (3)
| Tip |
| have feature specific sub-agents with skills instead of general qa, backend engineer |
| use multi-agent to throw more compute at a problem — offload tasks to keep your main context clean and focused |
| use test time compute — separate context windows make results better; one agent can cause bugs and another can find them |
Skills (7)
| Tip |
| use skills with clear name and description frontmatter for auto-discovery |
| skills are folders, not files — use references/, scripts/, examples/ subdirectories for progressive disclosure |
| build a Gotchas section in every skill — highest-signal content, add Codex's failure points over time |
| skill description field is a trigger, not a summary — write it for the model ("when should I fire?") |
| don't state the obvious in skills — focus on what pushes Codex out of its default behavior |
| don't railroad Codex in skills — give goals and constraints, not prescriptive step-by-step instructions |
| use the built-in skill creator to scaffold new skills, and document one invocation style consistently across the repo |
■ Hooks (3)
| Tip |
use hooks for logging, security scanning, and validation and review new or changed project hooks with /hooks |
| use hooks for auto-formatting code — Codex generates well-formatted code, the hook handles the last 10% to avoid CI failures |
branch SessionStart on source (startup | resume | clear) — skip heavy context on clear so /clear stays snappy (v0.120.0+) |
■ Memories (2)
| Tip |
opt in to memories to retain useful context across sessions, and use /memories for chat-level controls |
set no_memories_if_mcp_or_web_search = true for threads that touch secrets or untrusted content — reset via /memories → Reset if exposure happens |
■ Workflows (4)
| Tip |
| vanilla Codex is better than any workflows with smaller tasks |
| use profiles to load named user config files; see the profile examples |
start with on-request for interactive work and use never with a deliberate sandbox policy for unattended runs |
use /fork in-session (or codex fork) to explore alternatives without losing your current thread, and /resume (or codex resume) to pick up where you left off |
■ Workflows Advanced (5)
■ Git / PR (3)
| Tip |
Source |
| keep PRs small and focused — one feature per PR, easier to review and revert |
|
| always squash merge PRs — clean linear history, one commit per feature, easy git revert and git bisect |
|
| commit often — as soon as a task is completed, commit |
 |
■ Debugging (5)
| Tip |
Source |
| always ask Codex to run the terminal (you want to see logs of) as a background task for better debugging |
|
| use MCP (Chrome DevTools, Playwright) to let Codex see browser console logs on its own |
|
| make it a habit to take screenshots and share with Codex whenever you are stuck with any issue |
 |
| use a different model for QA — e.g. Claude Code for plan and implementation review |
|
| agentic search (glob + grep) beats RAG — code drifts out of sync and permissions are complex |
|
■ Utilities (4)
■ Daily (2)
| Tip |
Source |
| update Codex CLI daily |
 |
| start your day by reading the changelog |
 |

| Article / Tweet |
Source |
| How Codex is built — 90% self-built in Rust (Tibo, Pragmatic Engineer) | 17 Feb 2026 |
 |
| Skills in Codex — standardizing .agents/skills across agents (Embiricos) | Feb 2026 |
 |
| Unrolling the Codex agent loop — how Codex works internally (Bolin) | Jan 2026 |
Tweet |
| AMA with Codex team — CLI, sandbox, agents (Embiricos, Fouad, Tibo + team) | May 2025 |
Reddit |
| Codex CLI — open-source local coding agent, first look (Fouad + Romain) | Apr 2025 |
Tweet |
| Video / Podcast |
Source |
Link |
| The power user's guide to Codex — parallelizing workflows, planning, context engineering (Embiricos) | 2026 | How I AI |
 |
Podcast |
| Scaffolding is coping not scaling, and other lessons from Codex (Tibo) | 2026 | Dev Interrupted |
 |
Podcast |
| How Codex team uses their coding agent (Tibo + Andrew) | 18 Feb 2026 | Every |
 |
Podcast |
| Dogfood — Codex team uses Codex to build Codex (Tibo) | 24 Feb 2026 | Stack Overflow |
 |
Podcast |
| Why humans are AI's biggest bottleneck — Codex product vision (Embiricos) | Feb 2026 | Lenny's Podcast |
 |
Podcast |
| OpenAI and Codex (Tibo + Ed Bayes) | 29 Jan 2026 | Software Engineering Daily |
 |
Podcast |
| Source |
Name |
Badge |
 |
r/ChatGPT, r/OpenAI, r/Codex |
 |
 |
OpenAI, OpenAI Devs, Tibo, Embiricos, Jason, Romain, Dominik, Fouad, Bolin |
 |
 |
Jesse Kriss (Superpowers), Garry Tan (gstack), Kieran Klaassen (Compound Eng), Lex Christopherson (GSD), Yeachan Heo (oh-my-codex), Andrej Karpathy |
 |
 |
OpenAI |
 |
 |
Lenny's Podcast, The Pragmatic Engineer |
 |

- Install or update the Codex CLI and run
codex --version.
- Start with Concepts to find the right feature and its examples.
- Run the weather workflow from the repo root, or try the profile examples in an isolated setup.
- Check the verification history for the audited CLI version, sources, and test results.
For a multi-step task with a clear finish line, try /goal Verify every changed Markdown link and fix failures, then record the checks in the changelog.
codex-cli-hooks ·
claude-code-best-practice ·
claude-code-hooks

Sponsor My Work
If you like my work, buy me a doodh patti 🍵 on
Polar