A practical path through Codex in the ChatGPT desktop app: which mode to use, projects and Git, the model families and effort levels, permissions, a real build from plan to live site, AGENTS.md, computer use, context and compaction, memories, skills, subagents, goals and automations.
Reading map
- Part I — Where Codex lives: the three modes, the four ways to run Codex, plans and the sidebar extras (sections 1 to 3).
- Part II — Set up once: sessions, projects, Git and the side panel (sections 4 to 6).
- Part III — Models and settings: model families, effort, fast mode, permissions and usage (sections 7 to 10).
- Part IV — A real build: plan first, connect tools, build and test, review the diff, deploy (sections 11 to 15).
- Part V — Context that lasts: AGENTS.md, computer use, context and compaction, memories and skills (sections 16 to 20).
- Part VI — Working at scale: subagents, goals and scheduled automations (sections 21 to 23).
- A comparison table, a final perspective, a quick reference and a FAQ close the guide.
Why This Matters
Codex has grown from a code-completion tool into a full agent workspace: it plans, edits files, runs a browser, drives your computer, remembers your preferences and runs on a schedule. Most of that power sits behind menus that people never open. They type a prompt into a blank session, get an average result, and conclude that the model is the limit.
The model is rarely the limit. The setup around it is. A clear plan, the right tools connected, a short project file the agent reads every time, and a habit of reviewing changes turn the same model into a much more reliable collaborator. This guide follows the order in which those pieces are worth learning, using a small real project as the thread: a waitlist landing page that collects emails for a live webinar and ends up deployed on a real domain.
The prompt is the smallest part. The setup around it is what makes Codex good.
Part I — Where Codex Lives
1. Chat, Work or Codex
OpenAI currently offers three modes that all use the same family of models behind the scenes, and mixing them up is the most common source of confusion.
- Chat is for asking a question and getting an answer, like an advanced search.
- Work is for getting a deliverable: a slide deck, an email, a document. It can open projects and files.
- Codex is the developer mode: writing code, working inside a code base, building websites and running more advanced tasks.
In the ChatGPT desktop app, the switch sits at the top left of the window. Everything in this guide happens in Codex mode.

2. Four ways to run Codex
Codex itself runs in four places: inside the ChatGPT desktop app, in the cloud, as an IDE extension and as a command-line tool in your terminal. What you learn carries over between them, but the desktop app currently has the most features and the friendliest interface, so it is the best place to start. Download the ChatGPT app, sign in with your OpenAI account and switch to Codex.

3. Plans and the sidebar extras
Almost every feature works on the free plan, but agent work burns through usage quickly. In practice, the Go or Plus plan is the minimum for regular use; the Pro plan costs roughly 100 US dollars a month.
The sidebar also holds a few newer features worth knowing about, even if they are not Codex-specific:
| Feature | What it does |
|---|---|
| Spaces | Shared, Notion-style pages where people and AI edit together; chat with AI inside any page |
| Code review | Your GitHub commits, pull requests and reviews, reviewable inside the app |
| Sites | Turns a page or conversation into a simple static website hosted for you |
| Plugins | Official connectors to email, drives, GitHub, design and hosting tools |
| Scheduled tasks | Prompts that run every hour, day or week (section 23) |
Part II — Set Up Once
4. Sessions and projects
A new session wipes the conversation. That is a feature: a clean start, without earlier work confusing the model, often gives the best results. To keep related work together, group sessions into a project. For one website you might keep a session for the back end, one for the front end and one for the logo.
A project is simply a folder on your computer that also holds settings and past sessions. Press the plus button next to Projects, open an existing folder or create a new one, give it a name and an icon, and confirm that you trust the folder. From then on, new sessions started inside the project work in that folder.

5. The first prompt in any project: Git
Before writing any code, ask Codex to put the folder under version control. Git gives you checkpoints, so one bad change never costs you your work, and Codex knows how to install and use it. A prompt that works:
Tell me what's currently inside of this project, and then
initialize a new Git repo for me. If I don't have Git,
install it for me automatically.
Codex inspected the empty folder, found Git already installed and initialized a new repository. You do not need to know Git commands to benefit; you need the safety net.

6. The side panel
When a session is running, the panel on the right is where you check the work:
- Changes shows the diff: added lines, deleted lines and new files.
- The plus button opens more tabs: a built-in browser for the app you are building or any URL, a terminal, the file tree, a new page and a side chat for a quick question that does not derail the main session.
- The three-dot menu renames, forks, schedules, shares or copies the session.
Part III — Models and Settings
7. Which model to use
Open the model picker in the composer and you see a list of GPT models with names like Luna, Terra, Sol and Astra. Two rules cut through it.
Rule one: take the highest version number. A newer model in the same family is better and often cheaper per task, so GPT-6.1 Sol beats GPT-6 Sol.
Rule two: pick the family by the job. When asked, Codex summarized the lineup available on the Pro plan like this:
| Model | Best for | Relative token cost |
|---|---|---|
| GPT-6 Luna | Quick questions, summaries, extracting information, small code edits | 1× |
| GPT-6.1 Terra | Everyday writing, understanding screenshots and charts, working in apps | 10× |
| GPT-6.1 Sol | Most coding, debugging, planning and longer tasks; the recommended default | 20× |
| GPT-6 Astra | Difficult bugs, architecture, complex research and decisions | 100× |
Astra costs about five times as much as Sol and, in many benchmarks, scores about the same. If you want one answer, leave Codex on GPT-6.1 Sol and switch only when Sol cannot finish a task. Free plans usually see the previous generation, so your list may differ.

8. Effort level and fast mode
The effort level decides how long the model works and, more importantly, how much it checks its own work. There are five settings: light, medium, high, extra high and ultra.
- Medium is the right default for almost everything.
- Go to high or extra high when tasks are not getting finished or not checked properly.
- Ultra takes a very long time, uses a lot of usage and asks for maximum permissions. Save it for work that must be right the first time.
Fast mode is a separate toggle: type /fast. A lightning icon shows it is on. It gives roughly 1.5 times the speed for roughly twice the usage, so keep it on only when you have usage to spare.
9. Permission modes
Next to the model picker sits the permission mode:
| Mode | What happens | When to use it |
|---|---|---|
| Ask for approval | Stops on anything external or any tool that is not pre-approved | Unfamiliar projects, sensitive machines |
| Approve for me | Asks only when a step looks dangerous or unsafe | The recommended default |
| Full access | Uses the terminal, internet and files without asking | Only on a machine and project you can afford to lose |
Full access is tempting because it never interrupts you, but it also never stops a mistake. Approve for me is the sensible middle.
10. Watch your usage
The small pie chart in the composer is your usage meter. Click it to see the weekly limit and any extra credits; Manage usage opens the plan and analytics page. Limits are generous on the higher plans, but on long, heavy jobs it is worth checking now and then. If you are burning through usage too fast, lower the effort level or turn off fast mode. When the limit is reached, Codex stops accepting prompts until it resets or you use credits.
Part IV — A Real Build, From Plan to Live Site
11. Plan first, code later
The demo project is a waitlist page: a landing page for a free one-day webinar on a set date, a single email field, and a list of everyone who signs up. It is small, but it needs storage, a form and a real deployment, which makes it a good test.
The first step is not code. Describe the project in your own words, as if briefing a colleague, and end with an explicit stop:
Before you build anything, create a plan and ask me any
questions you need to clarify. I don't want you to code
anything yet. I just want a plan for now.
Codex returned a proposed plan and a list of questions about the date, audience, branding, email platform and follow-up. Answering them one by one took a few minutes and saved a lot of rework. Agentic tools will happily build plenty you never asked for; a short, agreed plan keeps the request pointed.
12. Connect your tools before you build
The second step is to connect the external tools the project will use, before any code exists. Under Plugins you will find official connectors for email, Google Drive, GitHub, Slack, Canva, HubSpot, image generators, hosting providers and more. Connect what this project needs; you can even ask Codex which connectors would be useful.
The reason to do it first: once the model knows which tools it has, it adjusts the plan around them. A site deployed through one hosting connector is built differently from one deployed elsewhere. In this example, a hosting provider’s connector handled the deployment, the domain and the database. The flow was the same as for any plugin: install it, sign in, restart Codex, then ask it to confirm the connection and list what it can access.

13. Build it and test it inside Codex
With the plan agreed and the tools connected, one prompt started the build: build out the entire site, test it and make sure it works; we will deploy later, not yet. About a minute later the page was running in Codex’s own browser tab, styled after an existing brand site.
That built-in browser is more than a preview. You can take screenshots, zoom and clear the cache, and, most usefully, right-click any element and choose Annotate. Type a note such as “make this title cleaner” and the comment arrives in the chat with the exact element attached, so the model knows what you mean. You can also paste your own screenshots, attach files and folders, or sketch. Test, review, add changes and iterate before moving to the next step.
14. Review the diff
To see what actually changed, open the Changes panel and switch its view from Branch to Uncommitted (everything not yet saved to Git) or Last turn (only what the last message changed). Every new file and every added or deleted line is listed. You do not need to read every line of a generated landing page, but scanning the list of files catches surprises early: a file you did not expect, a configuration change, a secret written somewhere it should not be.
15. Deploy with one prompt
Once the page passed its tests, deployment was a single prompt: using the hosting connector, please deploy this application on a live domain and tell me when it is finished. About a minute later the waitlist was online. A test email submitted through the live form returned the “you’re on the list” confirmation.
Part V — Context That Lasts
16. AGENTS.md: the project’s standing instructions
Every new session starts without memory of earlier chats. It can still read the files in the project, but it has to search them to learn your conventions. The fix is a file called AGENTS.md in the project’s root folder. Codex loads it automatically at the start of every session in that project: the tech stack, conventions, style rules and anything the agent should never forget. A simple example of such a rule: never use the color purple.
You do not need to write it by hand. Ask for it:
Based on the current project and the tech stack, rules and
conventions we followed, create an AGENTS.md file that
outlines all of that, and also tells us to never use the
color purple.
A new session asked “tell me what you know about this project” answered almost instantly, without reading every file first. Keep the file short and pointed: it is context the model pays for in every session.
17. Computer use: let Codex drive
Codex can take over your mouse and keyboard to test a site like a real user, fill in forms or operate other apps. To enable it, open Settings → Computer use, allow the apps it may control (or any app), and install the Codex extension for Google Chrome or Microsoft Edge. If you cannot find the option, search for computer use under Plugins.
Then ask in plain language: take over my computer, open the web app we just made, test it automatically and do it visually so I can see. A glowing border shows that ChatGPT is using your computer. It is slower than a scripted test, but it clicks through the page the way a person would, which catches a different class of problems.

18. Context limits and compaction
Type / in any session to see the command list. /status shows how much of the context window you have used. In one example, a long session had used about 245,900 of 475,000 tokens, with 48 percent left.
When a session approaches the limit, Codex compacts it automatically: it summarizes the conversation into fewer tokens. You can trigger this yourself with /compact. After compaction the demo session had 93 percent of its context free again. The trade-off is that details are lost in the summary. Models also tend to perform worse when the context is nearly full, so aim to stay under about 80 percent, and prefer a fresh session for a new task.
19. Memories: what Codex knows about you
Memories are different from AGENTS.md: they are facts about you that apply across all sessions and projects, such as your writing style or a design preference. They must be enabled first under Settings → Personalization, including the Codex memory switch.
Be explicit when you want something saved. A casual “remember that” may land somewhere else, such as the current project’s AGENTS.md. Saying “save this persistently as a Codex memory for all my sessions” worked. A brand-new session, asked which color it may not use for websites, answered: purple, including violet, lavender and lilac.

20. Skills: reusable workflows
A skill is a reusable workflow written as a markdown file. Anything you prompt for again and again, such as a video outline, a thumbnail brief or an accounting routine, should become one: the agent remembers the process, can improve it over time, and gives more consistent results. Installed skills are listed under Plugins → Skills, grouped as personal, project, system and recommended.
To create one, tag the built-in Skill Creator and describe what you want. For example, you can build a “devil’s advocate” skill that questions any idea, points out holes and keeps iterating until the idea is solid. Run a skill by typing / and its name.
Where you create it matters:
- Created in a general session, a skill is global: it lives in the
.codexfolder in your user directory and every session can use it. - Created inside a project (“make this a project skill”), it lives in that project only, and can be committed to Git and shared with teammates.

Part VI — Working at Scale
21. Parallel sessions and subagents
There are two ways to run work in parallel. The simple one is to start several sessions at once; a blue dot marks each one when it finishes. The more interesting one is to ask a single session to use subagents: “research this in parallel; use at least five subagents.” Each subagent gets its own task and its own context window, works independently and reports back to the main thread, which combines the results. A panel on the right shows each subagent and what it is doing.
Subagents are faster than one agent working through a list, but every subagent consumes usage. Use them when the work really splits into independent pieces.
22. /goal: keep going until it is done
Type /goal and a target icon appears. Codex will then keep working, and keep iterating, until the goal is reached. A good goal is one the agent can check by itself, such as “keep building until every feature passes all of the test cases.” A vague goal produces a long, expensive loop with no clear end.
23. Scheduled automations
Automations run a prompt on a schedule. You can create one under Scheduled or simply ask in chat, for example: every day at 9 a.m., check my email and tell me the most important thing I need to do today. Codex writes a cleaner description, sets the repeat rule and creates the task, which you can open, edit, pause or delete later. One limitation matters: local automations run only while the ChatGPT or Codex app is open on your computer.

The Features Compared
| Feature | What it is for | When to add it |
|---|---|---|
| Projects + Git | Grouped sessions in a folder, with checkpoints | Day one, every project |
| Model + effort | Sol on medium for most work | Day one; adjust per task |
| Plan first | Agreed scope before code | Every non-trivial build |
| Connectors | Real tools the plan can rely on | Before the build starts |
| Built-in browser + annotate | Testing and precise feedback | During the build |
| AGENTS.md | Project rules loaded every session | Once the project has conventions |
| Computer use | Testing like a real user, driving apps | When visual testing matters |
| /status, /compact | Managing long sessions | When a session runs long |
| Memories | Preferences about you, everywhere | When you repeat the same preference |
| Skills | Repeated workflows | When you prompt the same process twice |
| Subagents | Independent parallel work | Research and splittable tasks |
| /goal | Iterate until a checkable target | Test-driven or measurable work |
| Automations | Work on a schedule | Daily or weekly routines |
Final Perspective
The order matters more than any single feature. Knowing which mode you are in, putting every project under Git, and defaulting to a capable model at medium effort remove most early frustration. Planning before building and connecting tools before planning the build remove most wasted work. Reviewing the diff and testing in the browser keep quality visible without reading every line.
Only after that do the persistent layers pay off: AGENTS.md for the project, memories for you, skills for the processes you repeat. Subagents, goals and automations are powerful, but they multiply whatever habits sit underneath them, good or bad, and they spend usage quickly. Add them last, and only where the work is clear enough to delegate.
One note of caution: full access and computer use give an agent real control over your machine and accounts. Approve for me, a Git checkpoint and a quick look at the diff are cheap insurance.
Quick Reference
| Step | What to do |
|---|---|
| 1 | Switch the ChatGPT app to Codex (top left) |
| 2 | Projects → + → open or create a folder → trust it |
| 3 | First prompt: describe the project, initialize Git, install Git if missing |
| 4 | Model: highest version of Sol; effort: medium; permissions: Approve for me |
| 5 | /fast only with usage to spare; check the usage pie on long jobs |
| 6 | Plan first: “create a plan and ask me questions; don’t code yet” |
| 7 | Plugins: connect the tools the project needs, restart, verify |
| 8 | Build and test in the built-in browser; right-click → Annotate |
| 9 | Changes → Uncommitted or Last turn before you keep anything |
| 10 | Ask Codex to write AGENTS.md; keep it short |
| 11 | /status to check context; /compact near the limit; stay under ~80% |
| 12 | Settings → Personalization → memory; say “save as a Codex memory” |
| 13 | @Skill Creator for repeated workflows; global vs project skills |
| 14 | Subagents for independent work; /goal for checkable targets |
| 15 | Scheduled tasks for routines (the app must be open) |
FAQ
What is the difference between ChatGPT, Work mode and Codex?
All three use the same models. Chat answers questions, Work produces deliverables such as documents and slides, and Codex is the developer mode for writing code and working inside a code base, with extra tools like the diff panel, terminal and permissions.
Which GPT model should I use in Codex?
Use the newest Sol model, GPT-6.1 Sol as of November 2026, as the default for coding, debugging and planning. Luna is cheaper for quick questions and small edits, Terra suits everyday writing and screenshots, and Astra is for the hardest architecture work at several times the cost.
What effort level should I pick?
Medium for almost everything. Raise it to high or extra high only when tasks are not completed or not checked properly; ultra is very slow and uses a lot of usage.
What is AGENTS.md and do I need one?
It is a short file in the project’s root that Codex loads at the start of every session, with the tech stack, conventions and rules. It saves the agent from rediscovering your project each time. Ask Codex to generate it from the current project.
What is the difference between memories and skills?
Memories are facts about you that apply in every session, such as a design preference. Skills are reusable workflows, saved as markdown files, that you or the agent invoke for a repeated process.
Do Codex automations run when my computer is off?
Local scheduled tasks run only while the ChatGPT or Codex app is open on your computer. Cloud runs are a separate option when creating a task.
Further Reading
- Claude Code vs Codex vs Cursor: what the $20 plans give you
- ChatGPT vs Claude vs Gemini
- Learn Git before AI breaks your code
Model names, plan prices and menus are as they appeared in the ChatGPT desktop app in November 2026 and change often. Check OpenAI’s current documentation before you rely on a specific limit or price.
