Key takeaways
- The first decision in every Codex task is the surface: local CLI or IDE for interactive work, cloud tasks for well-defined jobs that should end in a pull request.
- One AGENTS.md at the repository root, plus smaller ones in sub-projects, gives every Codex surface the same instructions.
- Sandbox and approval settings decide how independently Codex works locally – teams should agree on defaults instead of everyone choosing their own.
- Codex cloud containers run Linux, so iOS builds and device tests stay on a Mac or in macOS CI.
Four ways to use Codex – where the workshop starts
Teams often start with whichever Codex surface someone tried first and never look at the others. The workshop opens with a map, because choosing the wrong surface is the most common reason a Codex task disappoints. The Codex documentation describes each in detail; this is how we frame them for teams:
| Surface | Where it runs | Good for | Watch out for |
|---|---|---|---|
| Codex CLI | Your terminal, on your machine | Interactive work, debugging, anything that needs local tools or simulators | Sandbox and approval settings; what the agent can reach on your laptop |
| IDE extension | Inside your editor | Working next to the code you are reading, quick hand-offs between you and the agent | Keeping sessions focused on one task |
| Cloud tasks | Containers in OpenAI's cloud, started from ChatGPT | Well-defined tasks you can run in parallel and receive as pull requests | Environment setup, Linux only, network restrictions |
| Code review on GitHub | Your pull requests | A second reviewer that catches bugs and missed edge cases | Deciding what it owns and what humans still check |
For scripted, non-interactive runs – in CI or a git hook – the CLI also has an exec mode, which we show briefly at the end of the day.
How a one-day Codex workshop is organised
- Morning, part one: instructions. The group writes the repository's AGENTS.md together, starting from the build and test commands.
- Morning, part two: the CLI with guardrails. Pairs take a real ticket through the CLI and try each sandbox setting on purpose, so they see what each one allows and blocks.
- Midday: the IDE extension. Same ticket type, different surface – participants compare where each feels faster.
- Afternoon, part one: cloud tasks. We set up a cloud environment for the repository and delegate three or four small tasks in parallel, then review the resulting diffs.
- Afternoon, part two: review. Codex reviews the morning's pull requests; the team compares its comments with a human review.
- Close: the team agreement. Which surface for which work, default sandbox settings, who merges agent pull requests.
Our sample workshop agenda shows timings and breaks for a full day if you want to compare formats.
Talk to an AI Code Engineer about your agentic coding workshop.
In a free call we look at your team, your codebase and your goals and suggest a workshop format that fits – remote or on-site, in English or German.
Lab: an AGENTS.md that Codex actually follows
Codex reads AGENTS.md files for project instructions. Because AGENTS.md is an open, tool-agnostic format, the same file also helps other agents your team may use. In the lab, the group writes a first version and then tests it: if Codex still runs the wrong test command, the file is not clear enough.
A compact starting point for a mobile backend repository might look like this:
# Project instructions ## Commands - Install: make setup - Unit tests: make test (must pass before you finish) - Lint and types: make check ## Conventions - API handlers live in src/api, one file per resource. - New endpoints need a request test in tests/api. - Never change files in migrations/ that are already merged. ## Ask first - Adding a dependency - Touching auth, payments or anything in infra/
In monorepos, sub-projects get their own, smaller AGENTS.md with instructions that apply only there – the mobile app folder, for example, lists its own build commands. For a fuller template aimed at app projects, see CLAUDE.md and AGENTS.md for mobile projects.
Lab: sandbox and approval settings
Locally, Codex runs commands inside a sandbox, and an approval policy decides when it stops to ask. The broad levels are a read-only mode (it can look and answer but needs approval to change anything), a workspace-write mode (it edits files and runs routine commands inside the project, with network access off unless you enable it) and full access, which removes the guardrails.
In the lab, participants deliberately hit each boundary: a test that needs the network, an edit outside the project folder, a command that wants to install something globally. Seeing the prompts – and the failures – teaches more than a slide.
The team then agrees on defaults. Our usual recommendation: workspace-write with approvals on request for daily work, read-only for exploring unfamiliar code, and full access only inside a disposable container or VM, never on a laptop that holds production credentials. The secure agentic coding workshop goes further into isolation and secrets.
Lab: delegating work to cloud tasks
Cloud tasks are where Codex feels most like a teammate: you describe a task, it works in its own container and comes back with a diff you can turn into a pull request. The quality depends on two things the workshop practises.
The environment. The container needs your dependencies and tools. We write the setup script together, run a trivial task to prove the build and tests work, and decide which secrets – if any – the environment may hold. Check how your environment handles internet access while the agent works; many teams keep it restricted.
The task description. Cloud tasks cannot ask you clarifying questions halfway through the way a local session can. A good description names the files, the expected behaviour, the test to add and what "done" means. Vague tasks come back with confident but wrong guesses.
For mobile teams there is an important limit: the containers run Linux. Codex can edit Swift code there but cannot run xcodebuild, so iOS builds and UI tests have to happen on a Mac or a macOS CI runner. Android projects fare better – the SDK and Gradle can be installed in the setup script – but emulator tests usually belong in CI rather than in the agent's container.
Lab: Codex as a code reviewer
Codex can review pull requests on GitHub. In the workshop we let it review the pull requests the group created in the morning and lay its comments next to a human review. Usually it finds things humans skim over – an unhandled error path, a missing null check – and misses things only the team knows, such as a product rule or an agreement with another team.
The outcome is a short agreement: what the automated review covers, what a human reviewer must still check, and how to handle comments the team disagrees with. Teams that want to build this into a full review culture can continue with the AI code review workshop.
Codex in app projects – and how we run the workshop
Many of the teams we train build mobile apps. For them we add stack-specific exercises: Codex for SwiftUI, Codex for Android and Kotlin or Codex for Flutter. The release itself – signing, store listings, review – is covered in Codex app to the App Store.
Our AI Code Engineers run this workshop remote or on-site, in English or German, preferably on your own repository. If you are undecided between Codex and Copilot's agents, the comparison Codex vs. GitHub Copilot agent helps before you book.
Preparation checklist for a Codex workshop
- Every participant can sign in to Codex through the company's ChatGPT plan.
- The Codex CLI and the IDE extension are installed on the workshop machines.
- The repository is connected to ChatGPT so cloud tasks can access it.
- Build and test commands work from a clean checkout without manual steps.
- You have decided which secrets, if any, a cloud environment may contain.
- Three or four small, well-defined tickets are ready for the cloud task lab.
Frequently asked questions
Is Codex included in ChatGPT plans?
Codex is included with paid ChatGPT plans; limits and admin options differ between plans. Check the current plan details with OpenAI or your ChatGPT administrator before the workshop so every participant has access.
Should we use the CLI or cloud tasks?
Both. Use the CLI or IDE extension when you want to steer, debug or use local tools. Use cloud tasks for clearly described jobs that can run in parallel and come back as pull requests.
Can Codex cloud tasks build our iOS app?
No. The cloud containers run Linux, and iOS builds need Xcode on macOS. Let Codex edit the code in the cloud, then build, test and archive on a Mac or a macOS CI runner.
Do other tools read AGENTS.md too?
Yes, several coding agents read AGENTS.md, which makes it a good place for instructions you do not want to maintain twice. Tool-specific files can still add details for one agent.
Free, 15 minutes, no obligation
Plan your agentic coding workshop with us.
Our AI Code Engineers run hands-on workshops on Claude Code, OpenAI Codex, Cursor and AI app builders – and ship apps to the App Store and Google Play every week. Tell us about your team.
AI tools, store policies and requirements change quickly – always check the current documentation of the tools and stores you use. This article is independent advice and not affiliated with or endorsed by Apple, Google, Anthropic, OpenAI or any other company or product mentioned; all trademarks belong to their owners.