{"id":3868,"date":"2026-07-28T05:13:04","date_gmt":"2026-07-28T05:13:04","guid":{"rendered":"https:\/\/aiopsschool.com\/blog\/?p=3868"},"modified":"2026-07-28T05:13:06","modified_gmt":"2026-07-28T05:13:06","slug":"the-master-guide-to-chatgpt-openai-codex","status":"publish","type":"post","link":"http:\/\/aiopsschool.com\/blog\/the-master-guide-to-chatgpt-openai-codex\/","title":{"rendered":"The Master Guide to ChatGPT &amp; OpenAI Codex"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Gold &amp; Diamond Standard Edition \u2014 Verified against live sources, July 28, 2026<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>How this guide was built:<\/strong>&nbsp;Compiled on July 28, 2026 from OpenAI&#8217;s official documentation (developers.openai.com\/codex \u2014 fetched live), OpenAI&#8217;s help center and pricing pages via current trackers verified July 22\u201328, and the Codex changelog. One honesty note: I&#8217;m Claude (built by Anthropic), so this is an outside-in synthesis of the public record on a competitor&#8217;s products \u2014 sourced carefully, but always confirm plan\/pricing details at openai.com before spending money. OpenAI ships changes weekly; treat this as an accurate snapshot.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">PART 0 \u2014 THE 30-SECOND MENTAL MODEL<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">ChatGPT in 2026 is no longer a chatbot \u2014 it&#8217;s a&nbsp;<strong>platform<\/strong>: chat, agents, research, coding, browsing, voice, video, memory, and 60+ app connectors under one login. Codex is the&nbsp;<strong>coding-and-computer-use agent<\/strong>&nbsp;inside that platform, spanning CLI, IDE, desktop app, web\/cloud, GitHub, Slack, and mobile \u2014 all sharing one agent harness.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The two skills that unlock everything:&nbsp;<strong>(1) route the right model\/tool to the right task<\/strong>&nbsp;(the Auto selector won&#8217;t always do it for you), and&nbsp;<strong>(2) delegate outcomes with verification<\/strong>, not step-by-step instructions.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">PART 1 \u2014 THE MODEL FAMILY (Deep Dive, July 2026)<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">1.1 Current lineup at a glance<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th class=\"has-text-align-left\" data-align=\"left\">Model<\/th><th class=\"has-text-align-left\" data-align=\"left\">Where it lives<\/th><th class=\"has-text-align-left\" data-align=\"left\">API price (per 1M in\/out)<\/th><th class=\"has-text-align-left\" data-align=\"left\">Context<\/th><th class=\"has-text-align-left\" data-align=\"left\">Best for<\/th><\/tr><\/thead><tbody><tr><td><strong>GPT-5.6 Sol<\/strong><\/td><td>Flagship. ChatGPT paid tiers (reasoning settings), Codex, API (<code>gpt-5.6<\/code>&nbsp;alias \u2192&nbsp;<code>gpt-5.6-sol<\/code>)<\/td><td>$5 \/ $30 (cached input $0.50)<\/td><td>1.05M, 128K out<\/td><td>Hard reasoning, coding, cybersecurity, agentic tasks<\/td><\/tr><tr><td><strong>GPT-5.6 Sol Pro<\/strong><\/td><td>ChatGPT Pro &amp; Enterprise only<\/td><td>\u2014 (product feature)<\/td><td>\u2014<\/td><td>Higher-effort\/accuracy variant of Sol<\/td><\/tr><tr><td><strong>GPT-5.6 Terra<\/strong><\/td><td>Work, Codex, API<\/td><td>$2.50 \/ $15 (cached $0.25)<\/td><td>1.05M<\/td><td>The balanced mid-tier<\/td><\/tr><tr><td><strong>GPT-5.6 Luna<\/strong><\/td><td>Work, Codex, API<\/td><td>$1 \/ $6 (cached $0.10)<\/td><td>1.05M<\/td><td>High-volume, budget agents<\/td><\/tr><tr><td><strong>GPT-5.5 \/ 5.5 Instant<\/strong><\/td><td>ChatGPT everyday default; Codex recommended model<\/td><td>~$5 \/ $30 class<\/td><td>1M<\/td><td>Fast daily chat; general Codex work<\/td><\/tr><tr><td><strong>GPT-5.5 Pro<\/strong><\/td><td>Pro tiers, Codex heavy tasks<\/td><td>premium<\/td><td>\u2014<\/td><td>Deepest reasoning runs<\/td><\/tr><tr><td><strong>GPT-5.3-Codex-Spark<\/strong><\/td><td>Codex, research preview (Pro)<\/td><td>\u2014<\/td><td>\u2014<\/td><td>Extra-fast lightweight coding turns<\/td><\/tr><tr><td><strong>gpt-image-2 \/ Sora<\/strong><\/td><td>Images \/ video<\/td><td>usage-based<\/td><td>\u2014<\/td><td>Image &amp; video generation<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Timeline that matters: GPT-5.5 launched April 23, 2026 as OpenAI&#8217;s fully retrained agentic-first model and became Codex&#8217;s default.&nbsp;<strong>GPT-5.6 (Sol\/Terra\/Luna) launched July 9, 2026<\/strong>&nbsp;after a June 26 preview \u2014 all three share a 1.05M-token context and 128K max output. Legacy models (GPT-4o, GPT-4.1, o4-mini, original GPT-5) were retired from ChatGPT on February 13, 2026. The o3 reasoning line still exists separately for some workloads.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1.2 Which model for what \u2014 the routing table<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Everyday chat, quick answers, drafting<\/strong>\u00a0\u2192 GPT-5.5 Instant (it&#8217;s the default for a reason \u2014 fast and cheap for OpenAI, snappy for you).<\/li>\n\n\n\n<li><strong>Hard reasoning, complex code, multi-step agent runs<\/strong>\u00a0\u2192 GPT-5.6 Sol (pick it explicitly via reasoning settings\/model picker; see the Auto-router warning below).<\/li>\n\n\n\n<li><strong>Maximum accuracy, worth the wait<\/strong>\u00a0\u2192 Sol Pro (Pro\/Enterprise) or GPT-5.5 Pro.<\/li>\n\n\n\n<li><strong>Production API at scale<\/strong>\u00a0\u2192 Terra first; escalate to Sol on evidence, drop to Luna for classification\/extraction\/routing volume.<\/li>\n\n\n\n<li><strong>Rapid-fire small coding edits in Codex<\/strong>\u00a0\u2192 GPT-5.3-Codex-Spark (Pro preview).<\/li>\n\n\n\n<li>Set\u00a0<strong>effort level<\/strong>\u00a0per model where offered \u2014 low effort for simple tasks is a real cost\/speed lever; reasoning tokens bill as output.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">1.3 \u26a0\ufe0f The Auto-router caveat (the most underrated fact in this guide)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In ChatGPT&#8217;s default&nbsp;<strong>Auto<\/strong>&nbsp;mode, OpenAI silently routes each message to Sol, Terra, Luna, or an older GPT-5.5 variant based on undocumented logic. On a hard prompt you get the flagship; on a routine one you may not \u2014 and the UI doesn&#8217;t show which model answered unless you dig into settings (API users always get the model ID in metadata).&nbsp;<strong>Power-user rule: for anything that matters, pick the model explicitly instead of trusting Auto.<\/strong>&nbsp;This is also why two people on the same $20 plan can have wildly different quality experiences.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">PART 2 \u2014 CHATGPT: PLANS, AND EVERY FEATURE THAT MATTERS<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">2.1 Plans (July 2026)<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th class=\"has-text-align-left\" data-align=\"left\">Plan<\/th><th class=\"has-text-align-left\" data-align=\"left\">Price<\/th><th class=\"has-text-align-left\" data-align=\"left\">The essentials<\/th><\/tr><\/thead><tbody><tr><td><strong>Free<\/strong><\/td><td>$0<\/td><td>Limited GPT-5.5, unlimited mini-class, standard voice, Study Mode. Ads shown (US).<\/td><\/tr><tr><td><strong>Go<\/strong><\/td><td>$8\/mo (global since Jan 2026)<\/td><td>~10x Free limits, longer memory, 3 Tasks. Still ad-supported;&nbsp;<strong>no<\/strong>&nbsp;Deep Research\/Agent Mode.<\/td><\/tr><tr><td><strong>Plus<\/strong><\/td><td>$20\/mo<\/td><td>The knowledge-worker sweet spot: GPT-5.6 Sol via reasoning settings, no ads, Deep Research (~10\/mo), Agent Mode (~40 msgs\/mo), Tasks (5 active), Advanced Voice, Sora video, Codex, Projects (~40 files), 60+ connectors, custom MCP.<\/td><\/tr><tr><td><strong>Pro $100<\/strong><\/td><td>$100\/mo (new April 9, 2026)<\/td><td>~5x Plus usage, Sol Pro, big Codex capacity. No unlimited Sora.<\/td><\/tr><tr><td><strong>Pro $200<\/strong><\/td><td>$200\/mo<\/td><td>Everything + unlimited Sora, Operator agent, highest limits. The Sora gap is the main reason to pay the extra $100.<\/td><\/tr><tr><td><strong>Business<\/strong><\/td><td>~$20\u201330\/seat<\/td><td>Shared workspaces, admin controls, ChatGPT Work.<\/td><\/tr><tr><td><strong>Enterprise<\/strong><\/td><td>Custom<\/td><td>Compliance, SSO, and&nbsp;<strong>Lockdown Mode<\/strong>&nbsp;(disables browsing\/Deep Research\/Agent Mode\/downloads for data containment).<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Rollouts vary by account and region \u2014 check your own model picker before upgrading. Codex Mobile is free on&nbsp;<strong>every<\/strong>&nbsp;plan (even Free\/Go) since May 14, 2026.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2.2 The feature arsenal \u2014 and when to reach for each<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Memory + Projects (the highest-leverage combo).<\/strong>&nbsp;Memory (rebuilt as &#8220;Dreaming V3,&#8221; June 2026) holds durable facts about&nbsp;<em>you<\/em>&nbsp;\u2014 role, preferences, style.&nbsp;<strong>Projects<\/strong>&nbsp;are persistent workspaces holding context about&nbsp;<em>a workstream<\/em>&nbsp;\u2014 files (~40 on Plus), links, standing instructions, and automatic within-project memory across sessions. The canonical setup: Memory knows your role; each Project knows the client\/codebase\/course. Review Memory periodically \u2014 it&#8217;s imperfect.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Search vs. Deep Research.<\/strong>&nbsp;Search = quick current facts.&nbsp;<strong>Deep Research<\/strong>&nbsp;= a multi-step agent that plans (you can edit the plan before it runs), issues sequential queries, reads dozens of pages over 5\u201330 minutes, and returns a cited report. Since Feb 2026 it connects to&nbsp;<strong>any MCP server<\/strong>, so it can research your internal wikis and datastores alongside the web. Caveat: it synthesizes, it doesn&#8217;t verify \u2014 check citations on anything consequential.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Agent Mode \/ Operator.<\/strong>&nbsp;Agent Mode (Plus: ~40 messages\/mo) hands ChatGPT a browser for multi-step web tasks \u2014 form filling, comparisons, bookings. Operator is the heavier-duty version on Pro $200.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Tasks (scheduled automation).<\/strong>&nbsp;One-off or recurring runs \u2014 daily briefings, inbox checks, monitors \u2014 without an open tab. Replaced the Pulse feature (sunset June 18, 2026). Active-task caps by tier (Go 3, Plus 5, higher tiers more).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Canvas.<\/strong>&nbsp;A live side-by-side document\/code editor for long-form iteration \u2014 edit sections, get inline suggestions, run code. Use it whenever output exceeds a few paragraphs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Data Analysis.<\/strong>&nbsp;Upload CSV\/Excel; ChatGPT writes and runs Python for real calculations, charts, and cleaning. Also dedicated ChatGPT-in-Excel\/Sheets integrations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Voice, Record Mode, images, Sora.<\/strong>&nbsp;Advanced Voice for natural conversation; Record Mode transcribes\/summarizes meetings; image input for screenshots; image generation for mockups\/diagrams; Sora for video (unlimited only on Pro $200).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Custom GPTs, Skills, Apps\/Connectors.<\/strong>&nbsp;Custom GPTs = repeatable assistants with instructions + knowledge files. Skills = reusable workflow definitions. Apps\/connectors (60+: Drive, Slack, GitHub, Salesforce\u2026) plus custom MCP servers pipe your real work context in \u2014 and MCP feeds Deep Research too.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Atlas &amp; ChatGPT Work.<\/strong>&nbsp;Atlas puts ChatGPT inside the browser; ChatGPT Work (all plans on desktop) is the task-oriented workspace where Free\/Go users can even reach GPT-5.6 Terra.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2.3 ChatGPT prompting mastery<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The universal five-part skeleton \u2014 role, goal, context, constraints, format:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>You are &#91;role]. I need &#91;specific goal].\nContext: &#91;audience, situation, what's been tried].\nConstraints: &#91;length, tone, exclusions, must-includes].\nFormat: &#91;structure of the output].\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The pattern in action (from the current power-user canon):&nbsp;<em>&#8220;Write a 100-word email to B2B SaaS CTOs who attended our demo last week; goal is a scheduled follow-up call; peer-to-peer tone; no sales language; end with one easy question.&#8221;<\/em>&nbsp;Specific inputs \u2192 usable output on the first pass.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Prefixes that consistently raise quality:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>&#8220;Ask me clarifying questions before answering&#8221;<\/strong>\u00a0\u2014 the single best prefix for complex requests.<\/li>\n\n\n\n<li><strong>&#8220;Think step by step, then give the final answer&#8221;<\/strong>\u00a0\u2014 still effective on non-reasoning models; on reasoning models, raise the effort setting instead.<\/li>\n\n\n\n<li><strong>&#8220;Here&#8217;s an example of what good looks like: [\u2026]&#8221;<\/strong>\u00a0\u2014 few-shot beats description.<\/li>\n\n\n\n<li><strong>&#8220;Act as a harsh critic of the draft above&#8221;<\/strong>\u00a0\u2014 second-pass self-review.<\/li>\n\n\n\n<li>For Deep Research: state scope, sources to prefer\/avoid, time bounds, and the exact deliverable structure \u2014 then\u00a0<strong>edit the proposed plan<\/strong>\u00a0before launching; it&#8217;s your one cheap steering moment.<\/li>\n\n\n\n<li>For Agent Mode: give the end state and guardrails (&#8220;stop and ask before any purchase\/login&#8221;).<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">PART 3 \u2014 CODEX: THE COMPLETE PICTURE<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">3.1 What Codex is now<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Forget the 2021 autocomplete API. Codex 2026 is OpenAI&#8217;s&nbsp;<strong>unified agent system<\/strong>&nbsp;\u2014 an agent loop + shared harness serving every surface, used by ~4M developers weekly. It clones or opens your code, plans, edits across files, runs commands and tests in sandboxes, iterates until green, and opens PRs. The April 16, 2026&nbsp;<strong>&#8220;Codex for (almost) everything&#8221;<\/strong>&nbsp;update pushed the desktop app beyond code: background&nbsp;<strong>Computer Use on Mac<\/strong>&nbsp;(its own cursor while you keep working), an&nbsp;<strong>in-app browser<\/strong>,&nbsp;<strong>image generation<\/strong>,&nbsp;<strong>memory<\/strong>, and background&nbsp;<strong>Automations<\/strong>&nbsp;\u2014 positioning Codex as OpenAI&#8217;s agentic workspace, not just a coding tool.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3.2 Every surface<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th class=\"has-text-align-left\" data-align=\"left\">Surface<\/th><th class=\"has-text-align-left\" data-align=\"left\">What it&#8217;s for<\/th><\/tr><\/thead><tbody><tr><td><strong>CLI<\/strong>&nbsp;(<code>codex<\/code>)<\/td><td>Full-screen terminal UI; the power surface. Open source.<\/td><\/tr><tr><td><strong>Desktop App<\/strong><\/td><td>Threads, worktrees, visual review, local environments, in-app browser, Chrome extension, Computer Use, Automations, Windows support.<\/td><\/tr><tr><td><strong>IDE Extension<\/strong><\/td><td>VS Code-class inline workflow with its own slash commands.<\/td><\/tr><tr><td><strong>Web \/ Codex Cloud<\/strong><\/td><td>Asynchronous cloud tasks in network-isolated sandboxes: queue many in parallel, each returns a PR. Best-of-N with&nbsp;<code>--attempts 1\u20134<\/code>.<\/td><\/tr><tr><td><strong>ChatGPT \/ Mobile<\/strong><\/td><td>Codex inside ChatGPT; Codex Mobile free on all plans since May 2026.<\/td><\/tr><tr><td><strong>GitHub \/ Slack \/ Linear<\/strong><\/td><td>Tag Codex on issues\/PRs\/messages; GitHub Action for CI.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">All surfaces share auth (ChatGPT login or&nbsp;<code>OPENAI_API_KEY<\/code>), config, and the AGENTS.md convention.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3.3 Getting started<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>npm i -g @openai\/codex        <em># or brew install codex<\/em>\ncodex login                    <em># browser OAuth (or device-code flow)<\/em>\ncd your-project &amp;&amp; codex       <em># interactive TUI<\/em>\ncodex \"Explain this codebase to me\"\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">API-key auth (<code>OPENAI_API_KEY<\/code>) works without OAuth \u2014 ideal for CI \u2014 though some cloud-thread features need the ChatGPT login. Config lives in&nbsp;<code>~\/.codex\/config.toml<\/code>&nbsp;(profiles supported:&nbsp;<code>codex --profile ci exec \"\u2026\"<\/code>).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3.4 Approval modes &amp; sandboxing (know these cold)<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Auto<\/strong>\u00a0(default): read\/edit\/run freely\u00a0<em>inside the working directory<\/em>; asks before going outside it or touching the network.<\/li>\n\n\n\n<li><strong>Read-only<\/strong>: consultative; browses but changes nothing until you approve a plan.<\/li>\n\n\n\n<li><strong>Full Access<\/strong>\u00a0(<code>--yolo<\/code>): whole machine + network, no asking. Use rarely, only on trusted repos.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Switch with&nbsp;<code>\/permissions<\/code>&nbsp;mid-session. Cloud tasks run in ephemeral, network-isolated sandboxes scoped to your repo.&nbsp;<strong>Auto-review<\/strong>&nbsp;adds a safety pass on the agent&#8217;s own changes. Web search defaults to a&nbsp;<strong>cached OpenAI-maintained index<\/strong>&nbsp;(reduces prompt-injection exposure from live pages); go live with&nbsp;<code>--search<\/code>&nbsp;or&nbsp;<code>web_search = \"live\"<\/code>&nbsp;\u2014 and still treat web content as untrusted.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3.5 AGENTS.md \u2014 Codex&#8217;s persistent brain<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The equivalent of a project constitution: a markdown file Codex reads every session, with a documented hierarchy (global&nbsp;<code>~\/.codex\/AGENTS.md<\/code>&nbsp;\u2192 repo root \u2192 subdirectory overrides). Fill it with build\/test commands, style rules that differ from defaults, repo etiquette, and gotchas \u2014 and keep it lean; bloat gets ignored. Alongside it:&nbsp;<strong>Rules<\/strong>&nbsp;(deterministic constraints),&nbsp;<strong>Memories\/Chronicle<\/strong>&nbsp;(Codex&#8217;s own accumulated learnings, with memory-mode controls),&nbsp;<strong>Skills<\/strong>&nbsp;(on-demand workflows like&nbsp;<code>$imagegen<\/code>),&nbsp;<strong>Hooks<\/strong>&nbsp;(scripts on lifecycle events with live activity display),&nbsp;<strong>Subagents<\/strong>&nbsp;(parallel workers configured under&nbsp;<code>[agents]<\/code>&nbsp;in config.toml \u2014 powerful, but explicitly documented to consume more tokens than single-agent runs, and only spawned when you ask),&nbsp;<strong>Plugins<\/strong>&nbsp;(installable from GitHub\/git URLs via the marketplace), and&nbsp;<strong>MCP servers<\/strong>&nbsp;(<code>codex mcp \u2026<\/code>; popular: Context7 docs lookup, Figma, Playwright, Chrome DevTools, GitHub, Sentry \u2014 and Codex can itself run&nbsp;<em>as<\/em>&nbsp;an MCP server inside another agent).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3.6 Command &amp; shortcut reference<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Slash commands (TUI):<\/strong>&nbsp;<code>\/model<\/code>&nbsp;(switch mid-session) \u00b7&nbsp;<code>\/permissions<\/code>&nbsp;\u00b7&nbsp;<code>\/review<\/code>&nbsp;(inline code review presets: against a base branch, uncommitted changes, a specific commit, or custom instructions \u2014 never touches your working tree; great pre-commit check) \u00b7&nbsp;<code>\/fork<\/code>&nbsp;\u00b7&nbsp;<code>\/side<\/code>&nbsp;\u00b7&nbsp;<code>\/theme<\/code>&nbsp;\u00b7&nbsp;<code>\/clear<\/code>&nbsp;\u00b7&nbsp;<code>\/copy<\/code>&nbsp;\u00b7&nbsp;<code>\/status<\/code>&nbsp;\u00b7&nbsp;<code>\/exit<\/code>&nbsp;\u00b7 custom commands you author for team workflows.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Keyboard:<\/strong>&nbsp;<code>@<\/code>&nbsp;fuzzy file search \u00b7&nbsp;<code>!cmd<\/code>&nbsp;run shell (output enters context) \u00b7&nbsp;<code>Tab<\/code>&nbsp;queue follow-up input for the next turn (prompts, slash commands, or&nbsp;<code>!<\/code>&nbsp;commands) \u00b7&nbsp;<code>Enter<\/code>&nbsp;mid-run to inject instructions into the&nbsp;<em>current<\/em>&nbsp;turn \u00b7&nbsp;<code>Esc Esc<\/code>&nbsp;walk back and&nbsp;<strong>fork<\/strong>&nbsp;from a previous message \u00b7&nbsp;<code>Ctrl+G<\/code>&nbsp;draft in your $VISUAL\/$EDITOR \u00b7&nbsp;<code>Ctrl+R<\/code>&nbsp;search prompt history \u00b7&nbsp;<code>Ctrl+O<\/code>&nbsp;copy last output \u00b7&nbsp;<code>Ctrl+L<\/code>&nbsp;clear screen without clearing the conversation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>CLI essentials:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>codex resume &#91;--last | --all | &lt;SESSION_ID&gt;]   <em># reopen sessions with full context<\/em>\ncodex exec \"fix the CI failure\"                <em># non-interactive \/ scripting<\/em>\ncodex exec resume --last \"Implement the plan\"\ncodex cloud                                    <em># triage cloud tasks from terminal<\/em>\ncodex cloud exec --env ENV_ID --attempts 3 \"\u2026\" <em># best-of-N cloud runs<\/em>\ncodex -i screenshot.png \"Explain this error\"   <em># image input (comma-separate multiples)<\/em>\ncodex --cd &lt;path&gt; --add-dir ..\/backend         <em># working root + extra writable roots<\/em>\ncodex --model gpt-5.5                          <em># pin model at launch<\/em>\ncodex features list|enable|disable &lt;flag&gt;      <em># feature flags (e.g. multi_agent)<\/em>\ncodex app-server --listen ws:\/\/\u2026  \/  codex --remote wss:\/\/\u2026   <em># remote TUI<\/em>\ncodex completion zsh                           <em># shell completions<\/em>\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">3.7 What Codex is best at (and worst at)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Sweet spot:<\/strong>&nbsp;asynchronous, bounded, independently testable work \u2014 dependency upgrades, test-coverage expansion, style migrations, doc generation from diffs, bug fixes from issue descriptions \u2014 and queuing many such tasks in parallel sandboxes while you review PRs.&nbsp;<strong>Weaker fit:<\/strong>&nbsp;interactive exploratory debugging and tasks dependent on external state, where a local agentic session (Codex CLI in interactive mode \u2014 or, candidly, tools like Claude Code) shines.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3.8 Codex prompting patterns that work<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Scope like a ticket:<\/strong>\u00a0files involved, expected behavior, how to verify. &#8220;Fix the login bug&#8221; fails; &#8220;Users report login fails after session timeout \u2014 check the token-refresh path, write a failing test that reproduces it, then fix it and run the suite&#8221; succeeds.<\/li>\n\n\n\n<li><strong>Make tests the contract.<\/strong>\u00a0Codex&#8217;s lineage is literally\u00a0<em>trained to iterate until tests pass<\/em>\u00a0\u2014 give it tests to pass.<\/li>\n\n\n\n<li><strong>Pre-set the environment<\/strong>\u00a0(official tip): activate venvs, start daemons, export env vars\u00a0<em>before<\/em>\u00a0launching so Codex doesn&#8217;t burn tokens probing.<\/li>\n\n\n\n<li><strong>Use\u00a0<code>\/review<\/code>\u00a0before every commit<\/strong>\u00a0\u2014 cheap, read-only, prioritized findings; customize (&#8220;Focus on accessibility regressions&#8221;).<\/li>\n\n\n\n<li><strong>Fork instead of arguing:<\/strong>\u00a0after two failed corrections,\u00a0<code>Esc Esc<\/code>\u00a0back to the fork point and re-prompt with what you learned.<\/li>\n\n\n\n<li><strong>Cloud for breadth, CLI for depth:<\/strong>\u00a0batch the bounded stuff to Codex Cloud (<code>--attempts 3<\/code>\u00a0on anything gnarly), keep exploratory work local.<\/li>\n\n\n\n<li><strong>Attach visuals<\/strong>\u00a0(<code>-i design.png<\/code>) for UI work; ask for a screenshot-vs-spec comparison as verification.<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">PART 4 \u2014 THE COST MASTERY PLAYBOOK<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">4.1 Subscription-side savings<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Buy the cheapest plan that covers your&nbsp;<em>bottleneck feature<\/em>, not the model badge: most knowledge workers cap out at Plus $20 (the honest consensus of every current guide). The $100 Pro exists specifically for people hitting Plus&#8217;s Codex\/usage ceilings; the $200 Pro is essentially &#8220;the Sora + Operator tier.&#8221; Watch limit-based traps: Deep Research (~10\/mo on Plus) and Agent Mode (~40 msgs\/mo) are the quotas real users hit first \u2014 spend them on tasks worth 30 minutes of agent time, use plain Search otherwise. And remember the Auto-router: explicitly selecting the flagship on hard tasks is free quality you&#8217;re already paying for.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">4.2 API-side savings (the big levers)<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Model routing:<\/strong>\u00a0Luna ($1\/$6) \u2192 Terra ($2.50\/$15) \u2192 Sol ($5\/$30). Start low, escalate on evidence. Output tokens are 6x input on every tier \u2014 output-heavy work is where tier choice bites.<\/li>\n\n\n\n<li><strong>Prompt caching: 90% off cached input reads<\/strong>\u00a0(Sol $0.50, Terra $0.25, Luna $0.10 per 1M). Structure prompts with a stable prefix (system prompt, tools, docs) and volatile suffix to maximize hits \u2014 the single biggest lever for agent workloads with big repeated prefixes.<\/li>\n\n\n\n<li><strong>Batch API: 50% off everything<\/strong>, asynchronous \u2014 for evals, backfills, bulk generation.<\/li>\n\n\n\n<li><strong>Flex processing:<\/strong>\u00a0discounted, lower-priority compute for latency-tolerant jobs (and Priority processing when latency is the constraint, at a premium).<\/li>\n\n\n\n<li><strong>Reasoning effort:<\/strong>\u00a0set\u00a0<code>reasoning_effort<\/code>\u00a0low for simple calls \u2014 reasoning tokens bill as output tokens.<\/li>\n\n\n\n<li><strong>Compaction &amp; conversation state:<\/strong>\u00a0use the Responses API&#8217;s context-management features instead of resending ever-growing transcripts.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">4.3 Codex-specific savings<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Keep the environment pre-warmed (probing costs tokens). Use subagents only when parallelism genuinely pays \u2014 they&#8217;re documented to cost more than single-agent runs. Prefer&nbsp;<code>\/review<\/code>&nbsp;(read-only, one pass) over &#8220;re-do it&#8221; loops. Cached web search is default and cheaper\/safer than live. Image generation inside Codex burns included limits&nbsp;<strong>3\u20135x faster<\/strong>&nbsp;than normal turns \u2014 for batches, set&nbsp;<code>OPENAI_API_KEY<\/code>&nbsp;and route through the API instead (official recommendation). Fork early rather than accumulating failed-correction context. In cloud,&nbsp;<code>--attempts<\/code>&nbsp;multiplies cost linearly \u2014 reserve best-of-N for genuinely hard tasks.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">PART 5 \u2014 CHATGPT vs CODEX: WHICH TOOL FOR WHICH JOB<\/h1>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th class=\"has-text-align-left\" data-align=\"left\">Job<\/th><th class=\"has-text-align-left\" data-align=\"left\">Reach for<\/th><\/tr><\/thead><tbody><tr><td>Questions, drafting, analysis, brainstorming<\/td><td>ChatGPT (right model, right effort)<\/td><\/tr><tr><td>A cited multi-source report<\/td><td>Deep Research (edit the plan first)<\/td><\/tr><tr><td>Long document\/code you&#8217;ll iterate on<\/td><td>Canvas<\/td><\/tr><tr><td>Spreadsheet math<\/td><td>Data Analysis \/ ChatGPT in Excel<\/td><\/tr><tr><td>A recurring briefing or monitor<\/td><td>Tasks<\/td><\/tr><tr><td>Multi-step web actions<\/td><td>Agent Mode \/ Operator<\/td><\/tr><tr><td>Any real coding task<\/td><td>Codex (CLI\/IDE for interactive, Cloud for bounded batch)<\/td><\/tr><tr><td>Ten independent fixes by Friday<\/td><td>Codex Cloud, parallel tasks, review PRs<\/td><\/tr><tr><td>Automating your actual desktop apps<\/td><td>Codex App Computer Use (Mac)<\/td><\/tr><tr><td>Team triage from chat\/issues<\/td><td>Codex GitHub\/Slack\/Linear integrations<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">PART 6 \u2014 SAFETY, GOVERNANCE &amp; FAILURE PATTERNS<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Safety:<\/strong>&nbsp;never&nbsp;<code>--yolo<\/code>&nbsp;on untrusted repos; treat web content and issue text as prompt-injection surfaces (cached search default exists for exactly this); review agent transcripts \u2014 Codex always surfaces one, and git is your rollback; Enterprise gets managed configuration, governance, access tokens, and Lockdown Mode; the Codex Security plugin\/cloud adds a dedicated vulnerability-review layer.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Failure patterns \u2192 fixes:<\/strong>&nbsp;trusting Auto on hard prompts \u2192 pick the model. Vague tickets \u2192 scope + verification criteria. Correction spirals \u2192 fork (<code>Esc Esc<\/code>) with a better prompt. Burning Deep Research quota on Search-sized questions \u2192 downshift. Memory drift \u2192 review and prune Memory; keep workstream context in Projects. Bloated AGENTS.md \u2192 prune like code. Subagents everywhere \u2192 single agent unless parallelism pays. Unverified research \u2192 click the citations.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">PART 7 \u2014 CANONICAL RESOURCES<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Codex (official):<\/strong>&nbsp;developers.openai.com\/codex (overview, quickstart, pricing, prompting, models) \u00b7 \/codex\/cli\/features, \/codex\/cli\/reference, \/codex\/cli\/slash-commands \u00b7 \/codex\/guides\/agents-md \u00b7 \/codex\/mcp, \/codex\/skills, \/codex\/subagents, \/codex\/hooks \u00b7 \/codex\/cloud \u00b7 \/codex\/learn\/best-practices \u00b7 \/codex\/changelog \u00b7 github.com\/openai\/codex (open source, releases)&nbsp;<strong>ChatGPT:<\/strong>&nbsp;help.openai.com (release notes, feature articles) \u00b7 openai.com\/chatgpt\/pricing \u00b7 chatgpt.com&nbsp;<strong>API:<\/strong>&nbsp;developers.openai.com\/api\/docs \u2014 prompting &amp; prompt-engineering guides, reasoning best practices, prompt caching, batch, flex processing, cost &amp; latency optimization \u00b7 platform.openai.com (dashboard) \u00b7 openai.com\/api\/pricing<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Compiled July 28, 2026. Fastest-moving details \u2014 GPT-5.6 rollout by plan\/region, Deep Research and Agent Mode quotas, Task limits (OpenAI&#8217;s own docs are currently inconsistent above Plus), and Codex CLI versions (shipping near-weekly) \u2014 deserve a fresh check at the official links above before you commit budget.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gold &amp; Diamond Standard Edition \u2014 Verified against live sources, July 28, 2026 How this guide was built:&nbsp;Compiled on July [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3868","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/3868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=3868"}],"version-history":[{"count":1,"href":"http:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/3868\/revisions"}],"predecessor-version":[{"id":3869,"href":"http:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/3868\/revisions\/3869"}],"wp:attachment":[{"href":"http:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=3868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=3868"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/aiopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=3868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}