Get the full Codex + Agent OS setup inside the AI Profit Boardroom.
← Back to all guides
The Goldie Goal Engine™

Codex + Agent OS — automate anything.

OpenAI just dropped Codex Thursday. Locked-Mac control. Appshots. Goal Mode in the app, IDE, and CLI. I wired Codex CLI directly into Agent OS — four tabs, your past 63 sessions, autonomous goal runs, and inline preview of anything Codex builds. This is the read-along.

The Goldie Goal Engine — a luminous figure conducting threads of light into autonomous artifacts
4
OpenAI launches
4
Tabs in Agent OS
63
Past sessions surfaced

"Codex Thursday launches: Codex can now use apps on your Mac from your phone, even when your Mac is locked and the screen is off. Goal Mode lets you set a goal that it can work towards for hours or even days."

— OpenAI, May 22 2026
I — The drop

Codex Thursday — what just shipped

OpenAI dropped four updates yesterday. Each one nudges Codex from "helpful coding assistant" closer to "autonomous workforce sitting on your Mac." Stack them together and the result is something new.

1

Locked-Mac control

Codex can use apps on your Mac from your phone — even when your Mac is locked and the screen is off. Persistent agent infrastructure, finally.

2

Appshots

Bring context from your screen straight into the Codex app. Snapshot any app's state, hand it to Codex, ask it to act on what it sees.

3

Goal Mode

Available in the app, IDE extension, and CLI. Set a goal. Walk away. Codex works towards it for hours or days. This is the killer feature.

4

Advanced annotation

Directly adjust the way web pages look while leaving feedback. Visual editing as agent input.

The headline is Goal Mode. Always-on context, persistent execution, hands-off operation for hours or days. That's a different category of tool than "chat with a coding model."

II — The gap

Why standalone Codex still leaves money on the table

OpenAI built an incredible agent. But the way it ships, you still have to open a separate app to use it. Five tabs across your screen. No memory of what your other agents (Hermes, Antigravity, Claude, OpenClaw) are doing. No shared workspace. No preview of what it built without context-switching to a browser or file manager.

Goal Mode is the killer feature — but if your goals live inside one app, your sessions inside another, your workspace files inside Finder, and your other agents in five more tabs, you're not running a system. You're juggling.

"OpenAI built the engine. Agent OS is the vehicle that lets you actually drive it."

III — The fix

Wire Codex into Agent OS

I built Codex into Agent OS as a first-class sibling — sitting in the sidebar next to Hermes, Antigravity, Claude, Gemini, OpenClaw, and Free Claude Code. Same Mission Control. Same memory layer. Same preview window.

Under the hood, it's codex exec --json for streaming chat and codex exec --full-auto --json for Goal Mode, against your default Codex profile. Same auth as your terminal. Same model. Same sessions. Just wrapped in a workspace your eyes can actually use.

The integration gives you four tabs:

Tab I

Chat — streaming, multi-turn

Single-shot chat with multi-turn memory. Every send packs prior conversation into the next prompt. Same auth + model as your terminal Codex.

Tab II

Goal Mode — hours-or-days autonomous

Hand Codex a long-horizon objective. It runs --full-auto in a dedicated scratch dir until the goal is met or you stop it. Each goal gets its own working directory so artefacts don't collide.

Tab III

Sessions — your 63 past runs, surfaced

Lists every past Codex session pulled live from ~/.codex/session_index.jsonl. Newest first. Click to see the thread name, session ID, and timestamp.

Tab IV

Workspace — preview anything Codex builds

Lists projects from ~/codex-scratch/. Click any project to see its files. HTML pages render live in an iframe. Images preview inline. Videos play. PDFs embed. Same flow as the Antigravity workspace.

One agent in. Four tabs of leverage out.

— this is the play
IV — Tab I

Chat — single-shot, multi-turn memory

The Chat tab is where most quick Codex work happens. Behind the scenes it's codex exec --json streaming each turn back to Mission Control, with prior conversation packed into every new prompt so Codex doesn't lose the thread.

Codex Chat tab inside Agent OS — codex exec --json streaming interface
Chat tab. CODEX · DIRECT · codex exec --json. Multi-turn memory, same auth + model as your terminal codex, Esc to abort an in-flight call.

For long-running work, switch to Goal Mode. For one-shot questions or fast iteration on a small task, this is where you live.

V — Tab II

Goal Mode — the hands-off engine

This is the centerpiece. The thing OpenAI shipped that nobody else has shipped. The reason this whole guide exists.

You hand Codex a long-horizon objective. Something like "Build a single-file HTML landing page for an AI cookbook subscription, generate the imagery, write the copy, optimise the meta, and save it ready to ship." You click Launch. You close your laptop.

Codex runs codex exec --full-auto --json in a dedicated working directory under ~/codex-scratch/<id>/ so artefacts from different goals never collide. It works. It iterates. It checks. It writes files. It keeps going.

Goal Mode tab in Agent OS — new goal form and goal monitor
Goal Mode. Drop a long-horizon objective on the left, watch live log on the right. Each goal runs codex exec --full-auto --json in its own scratch dir.

Goals persist to ~/.agentic-os/codex-goals.json so they survive reloads and dev-server restarts. Status surfaces as queued, running, completed, failed, or stopped. You can have multiple goals running in parallel — each isolated in its own scratch dir, each tracked independently.

"Codex Thursday gave us Goal Mode. Agent OS gave us a place to actually use it."

Editorial illustration — a golden ribbon of light winding through waystations across a twilight landscape
The Goal Engine — patient, autonomous, mythological. Each waystation is a checkpoint, each artefact a finished step.
VI — Tab III

Sessions — your past 63 runs, surfaced

Codex stores every session on disk. The CLI does this automatically. But the CLI doesn't give you a good way to browse them — and you certainly can't see them next to your other agents.

Agent OS reads ~/.codex/session_index.jsonl and lists every past session newest-first. Thread name. Session ID (mono). Relative timestamp.

Sessions tab showing 63 past Codex sessions
Past sessions, newest first. Set up Hermes MCP · Create cat image · Use browser · Find AI automation SEO keywords · Create AI automation blog · Open calculator and type something · Create Codex business presentation · Summarize recent Gmail requests · and 55 more.

Why this matters: every past session is a template. Every successful workflow is a record. If you nailed "find AI automation SEO keywords" three weeks ago, you can re-open it, see what worked, fork it for a new niche. Compounding institutional memory — but only because you can actually see it.

The Agent OS — owl, lobster, Hermes
— Get the Codex integration

The full Codex + Agent OS setup

Four tabs, the Goal Mode runner, the past-session browser, the workspace preview, the sidebar alongside Hermes / Antigravity / Claude / Gemini / OpenClaw / Free Claude Code. Plus the prompts, the SOPs, and the video walkthrough. Inside the AI Profit Boardroom.

Get Agent OS in AIPB →
VII — Tab IV

Workspace — preview anything Codex builds

This is the tab that closes the loop. You launch a Goal in Tab II. Codex spends an hour building a landing page, generating images, writing copy. Where does the finished work go?

Anywhere standalone Codex puts it, you'd have to dig through Finder, open files manually, switch between apps. With Agent OS: it appears in the Workspace tab.

Workspace tab — projects list and inline preview pane
Workspace. Projects from ~/codex-scratch/ on the left. Pick one, see its files. HTML renders in an iframe. Images preview inline. Videos play. PDFs embed.

Same pattern as the Antigravity workspace. Same preview/source toggle. Same path-based serving so the iframe just works. The result: you launch a goal, walk away, come back, click the project, see the thing. No context-switching. No file-hunting.

Editorial illustration — an ornate gallery with glowing artifacts in alcoves
The Workspace as a gallery. Every artefact your agents produced, in alcoves you can survey at a glance.
VIII — The line-up

Where Codex sits in the agent stack

Codex isn't alone in Agent OS. It joins a roster of agents, each with its own strengths:

Each pulls from the same Obsidian memory layer. Each has its own workspace, its own session history, its own goal queue. You stop juggling tools. You start orchestrating fleets.

IX — Real automations

3 things I actually have Codex doing right now

Straight from my Sessions tab — these aren't hypotheticals. They're live goals running on my machine this week.

None of these were "write some code." All of them were achieve this outcome. That's the Goal Mode unlock.

X — Beliefs

Three beliefs holding you back

The Codex updates land differently depending on which beliefs you hold. Three I see most often:

Still not sure agentic systems pay off? Read 258 unfiltered member wins from the AI Profit Boardroom →

Wrong belief

"Codex is for developers. I'm not a developer."

Truth

Goal Mode is for anyone with goals. Codex doesn't care whether the goal is "ship a Next.js app" or "find 50 podcast prospects in my niche, draft personalised outreach, save the list as CSV." The output is whatever the goal asks for.

Wrong belief

"I'll just use Codex standalone — why do I need Agent OS too?"

Truth

You can. And you'll spend half your day tab-switching, losing sessions, forgetting where files are, and not seeing your other agents. Or you can put Codex next to Hermes, Antigravity, Claude, OpenClaw, and Gemini in one Mission Control and orchestrate fleets.

Wrong belief

"Hands-off agents are dangerous — I want to watch every step."

Truth

Each Codex goal runs in its own scratch dir. Nothing collides with your real work. The full log streams live. You can stop a goal at any moment. Hands-off doesn't mean trustless — it means scoped.

XI — The plan

30-day roadmap

Don't try to automate everything at once. Build the muscle. Start small, expand as you trust it.

Day 1–3
Install Codex CLI. Authenticate. Run a few one-shot prompts from your terminal. Get comfortable with the syntax. The CLI is the foundation.
Day 4–7
Wire Codex into Agent OS. Drop the Codex sidebar entry, hook the four routes (chat / goals / sessions / workspace), point at ~/.codex/ for session history and ~/codex-scratch/ for workspace.
Day 8–14
Launch your first 3 goals. Pick goals where you'd otherwise spend 2–4 hours of manual work. Let Codex finish them. Review the artefacts in the Workspace tab. Iterate the prompt for next time.
Day 15–21
Set up weekly recurring goals. Inbox summarisation, content-research pipelines, lead enrichment, anything that repeats. Codex doesn't get tired.
Day 22–30
Cross-agent orchestration. Use Codex to set up tools that Hermes or Antigravity will then operate. The agents pass work to each other through the shared Obsidian vault.
XII — One more time

The Goldie Goal Engine™ — recap

Codex Thursday gave us four launches, and the biggest one is Goal Mode. Locked-Mac control + Appshots + Goal Mode + Annotation together make Codex a different category of tool — not "chat with code" but "autonomous worker that finishes outcomes."

But OpenAI shipped the engine, not the vehicle. Standalone, you're still juggling tabs and losing sessions. Wired into Agent OS — four tabs, the past 63 sessions, the workspace preview, the sidebar next to every other agent you run — Codex becomes the Goal Engine: hands-off, persistent, compounding.

One agent in. Four tabs of leverage out.

— Ship in one weekend —

The Goal Engine, files included.

Inside the AI Profit Boardroom: the full Agent OS with Codex wired in, the Hermes + Antigravity + Claude integrations, the prompts, the SOPs, the 30-day roadmap, the video walkthrough, and the zip of files you can drop in.

Join the AI Profit Boardroom →