Skip to content

Latest commit

 

History

History
200 lines (151 loc) · 12 KB

chatgpt-codex.md

File metadata and controls

200 lines (151 loc) · 12 KB

Tutorial: your first task with Codex in the ChatGPT app

In this tutorial you open a project with Codex in the ChatGPT desktop app, check that devkit is active, and give devkit's crew a real task: a small reading-list web page. On the way you learn to read what devkit shows you: the status block, the progress updates, the moments it waits for you, the crew graph, and the dashboard. It takes about 30 minutes, most of it while the crew works.

The ChatGPT app for Mac includes Codex, OpenAI's coding agent. When you work in a folder on your Mac, it runs its own copy of Codex with the same ~/.codex configuration as Codex in Terminal: devkit's rules, hooks, skills, and crew roles.

Partly verified in the app. Sessions observed on November 10, 2026 confirmed instruction loading, crew registration, and the pre-tool hook. They also exposed missing project identity and canary scores when a chat started outside a repository. The corrections have contract tests; the corrected installation still needs a fresh-session check. This tutorial's complete build flow and button names have not been verified in every app version. See the surface evidence matrix for the limits.

What you need

  • devkit installed on your Mac, with Codex chosen in the setup wizard and every line of dev doctor showing ✓. If you have not installed it yet, follow Your first install, step by step.
  • The ChatGPT app for Mac, signed in with a ChatGPT account that includes Codex.
  • If the app was open while you installed or updated devkit, quit it (Command-Q) and open it again, so it reads the new configuration.

Step 1: create the project folder

A project is a folder with your code in it. Create one in Terminal (Command-Space, type Terminal, press Return):

dev new reading-list

It creates ~/Development/_local/reading-list and prints that path. For a project from GitHub, run dev clone <owner>/<repo> instead; it goes to ~/Development/<owner>/<repo>.

Step 2: open the project in Codex

  1. In the ChatGPT app, choose Codex in the box where you type.
  2. Under Choose where to work, open a folder and pick ~/Development/_local/reading-list. In the folder window, Command-Shift-G lets you type the path.
  3. Start a New chat in that folder.

Work in the folder on your Mac. A Codex cloud environment runs on OpenAI's computers, without devkit.

If you started a chat without a project, check dev session ls --json from that chat. The corrected hooks bind the registered main session to its managed checkout after an executed repository call or a progress run. This covers short tasks and commands that execute but fail. The hooks retain the app's original working directory. A rejected call or another session cannot supply that binding. With the older 26.11.10 hooks, the record can remain empty: start a new chat in the repository, or install the verified correction through the supported developer workflow and start a fresh session. A correctly named progress run alone is not proof that the session is bound.

The main session uses its own work/ for scratch and outputs/ for deliverables. Each crew member gets only its own work/scratchpad/<member>/; a reviewer can run probes there without writing into the lead's outputs, and a write outside its own folder gets advice.

Step 3: check that devkit is active

Type this and press Return:

What is this project, and what is its status?

The reply starts with a bold line that begins with [Firefly> DevKit], followed by three bullets. For example:

**[Firefly> DevKit]** reading-list · `main` · Project status
- **Done:** read the project: an empty git repository with no commits and no tasks yet.
- **Check:** – nothing to verify, a status question
- **Next:** tell me what to build; I plan it and bring in the crew.

That block is the status block. Every development reply should start with it. It shows that the reply follows the visible format; it does not prove that the hooks or Stop checks ran. Use dev canary to inspect recorded scores. An empty report is not a passing result. If the reply has no such line, go to When something goes wrong.

At the first prompt, devkit sends its welcome through the session-start hook. Its placement in the app is not yet verified. For this new project the message reads:

devkit · reading-list · new project
› No history yet: say what you want to build
· main · no commits yet

It is dev status in a few lines: what needs you, what runs, what is next, and where you are. Concepts › The session-start welcome explains each line.

Step 4: give the crew a task

Type this request and press Return:

Build a one-page web app in this folder where I can add books to a reading list and mark them as read. Keep the
list in the browser, add tests, and write a short README that explains how to open it.

What happens, and what you see:

  1. devkit reminds the tech lead how to route. Along with your request, devkit reminds Codex that it is the tech lead: declare the request's kinds of work by their ids from the catalog and route each to the member the RACI makes Responsible. For this request, the tech lead declares front-end work, done by the Frontend engineer (Trinity) and approved by the Code reviewer (Seraph).
  2. Codex answers as the tech lead (Morpheus). He posts a plan and an estimate. Work under ten minutes he does himself; this request gets steps for the crew.
  3. The crew starts. The tech lead launches each member as a Codex agent role, for example trinity, in the order and slots shown by dev crew next. Codex records the launch at the member's start; a launch over devkit's limit is marked then, because this host has no pre-launch hook.
  4. Progress updates arrive after each finished step, and every ten minutes or so while a long step runs.
  5. The final report closes the run: what changed, the evidence, what is not done, and the next step.

You can add a request while the crew works. Corrected Codex hooks keep human requests from this chat's validated rollout in the continuity brief; a recovered request is never recorded as your answer to a decision. This behavior has contract coverage, but still needs verification after installation in a fresh app session.

Step 5: read what devkit shows you

The status block, line by line

**[Firefly> DevKit]** reading-list · `main` · Reading list
- **Done:** the page adds books and marks them as read; the list stays after a reload.
- **Check:** ✓ 6 tests pass in a headless browser
- **Progress:** 3 of 4 steps · now 4. review · 31m active of ~45m · ETA ~10m–15m
- **Crew:** Frontend engineer (Trinity) ✓ the page · QA engineer (Mouse) ✓ the tests · Code reviewer (Seraph) ▸ the review
- **Next:** the Code reviewer finishes the review, then I write the final report.
Line What it tells you
Header The project, the branch, and the task in a few words
Done What was done or found, in one sentence
Check The proof. ✓ checked in this session, ⚠ partly or not checked, ✗ failed, – nothing to check
Progress Required while a run is going: steps done of the total, the step running now, active time against the estimate, and when it is likely to finish. When it is missing, devkit reminds the agent at your next development prompt instead of sending the reply back
Crew Only when crew members work: each one by its role and name, with ▸ working, ✓ done, or ✗ failed
You Only when something waits for you: an action on your Mac or account, such as signing in; in guided mode, also a decision that is yours
Next The next step, and who takes it

macOS shows a notification when a run finishes or gets blocked.

When devkit waits for you

In auto, the default, the crew goes on with the recommended option of each decision and records it, so nothing waits for your answer, and the You line names only what you alone can do on your Mac or account, such as signing in. In guided mode (dev crew mode guided), a crew member that reaches a choice that is yours, for example whether finished books move to the bottom of the list, stops, and Codex shows you the question with its options and a recommendation. Answer in the conversation; the tech lead records your answer with dev crew decide and resumes the member.

devkit holds no command for your OK. Codex acts with the permissions of its settings, so what it runs is at your risk (see Concepts › Agents act with your permissions).

The crew graph

In Terminal, run:

dev crew graph --latest

It draws the newest run on this Mac, with the tech lead, every step with its state and owner, what each step waits for, and the decisions waiting for you. The Claude Code tutorial shows a full example and explains the symbols.

The dashboard

Run dev dashboard in Terminal. Your browser opens devkit's dashboard, a page on your Mac that updates by itself while it is open. It opens on Now, which says in one sentence whether anything needs you and when your run lands. Open Background (or press g then b): your run is there with every step, who owns it, and anything waiting for you. The Dashboard guide describes every view.

Step 6: finish

The run ends when every approver has reviewed the work they own: here, the Code reviewer (Seraph) reviews the Frontend engineer's page. Ask Codex how to open what it built: a one-page app is a file that opens in your browser. devkit records the session in the project's handoff note, so the next session, in the app or in Terminal, starts from where this one stopped.

When something goes wrong

What you see What to do
The reply has no [Firefly> DevKit] line Check that the chat works in the folder on your Mac, not in a cloud environment. Quit the app, open it again, and start a new chat in the folder. Still missing: run dev doctor in Terminal and follow the fix it prints
The progress run names the project, but dev session ls --json shows no project or branch Check whether the chat started outside the repository. Open a new chat in the repository and check its session record; a tool's workdir alone did not update session identity in the observed 26.11.10 sessions
dev canary has no scored turns Do not read this as a pass. Check the session directory and the surface evidence matrix; projectless app sessions exposed a scoring gap
dev doctor shows devkit hooks trusted failing Codex skips hooks until they are trusted. Run dev install --only codex, or review the hooks in the app's settings, then quit and reopen the app
dev doctor says the ChatGPT app does not see the devkit plugin Run dev install --only codex, then quit and reopen the app
A commit or pull request says it was made with Codex That is an account setting at OpenAI. dev doctor fails while it is on; turn it off in your Codex settings
The work seems stuck Run dev crew graph --latest in Terminal. In guided mode, a step that says waiting for decision D1 waits for your answer
The app shows no artifact or refuses to attach a devkit worktree The app and devkit have separate registries. Check the crew graph and launch records; an empty artifact list does not prove no agents ran. Do not edit the registries to force attachment
Codex says you reached a usage limit dev agents shows how much of your plan's usage is left and when it resets

Troubleshooting has more problems and their fixes.

See also Where to use devkit, Codex CLI, and Agents › Claude Desktop and the ChatGPT app.