· Codex stopped being a code completion tool and started being a worker.
· It reads a repository, edits files, runs commands, looks at what broke, and fixes it.
· The capability arrived before the workflow did.
· Most of us still keep one window open and do the work and the thinking in the same place, then submit a task and watch the progress indicator.
· Watching is the expensive part.
· A task runs twelve minutes and nothing else happens during those twelve.
· Turning the wait into throughput is the change that made this worth keeping.
· Here are the seven steps in the order I run them, what each is for, and where it breaks.
· Three real runs at the end.
Before you start
Only the things that actually change behaviour.
- OS: Windows 11
- codex-cli: 0.172.0
- Node.js: v22.22.2
- Model: gpt-6-sol
- Endpoint: an OpenAI-compatible base URL
- Invocation:
codex exec, non-interactive, stdin detached
That last one gets missed. Launch codex exec attached to a terminal and it blocks waiting on stdin. From a script, detach it explicitly.
Step 1: Split Codex and the chat window
The obvious objection first. Codex is a product of ChatGPT, so why split them.
· Correct, and on instruction quality alone neither side wins.
· The reason to split is not quality, it is context.
· Codex's context window is its workspace.
· Whatever sits in there becomes the basis for the next judgment.
· If the same window both edits files and holds a discussion about whether the approach feels wrong, or a complaint that yesterday's chart looked bad, that discussion stays in context and shapes how it reads the following task.
· After a while the output drifts and you cannot say exactly why.
· Split, and three roles separate.
· Codex receives instructions, executes, returns results.
· It does not host planning.
· A second window holds background, drafts the next instruction, runs the second review, and absorbs complaints.
· You hold the first review, the direction call, and the pre-submission check.
One sentence: Codex's context carries tasks only.
Step 2: Route complaints away, keep requirements in
One line decides it. Will this content affect how the next task is judged.
· Objectives, input paths, acceptance criteria, what specifically was wrong last time.
· These are execution inputs and belong in Codex.
· Aesthetic objections, a vague sense the approach is wrong, thoughts about trying another direction.
· These are your reasoning and belong in the other window.
· I got this wrong once.
· Unhappy with a chart, I wrote in the working window: this is ugly, redo it.
· It produced something equally ugly.
· "Ugly" is a valid instruction, so it had to guess.
· What worked was two minutes in the discussion window turning that into a specification, then submitting something executable.
· One pass.
· This is also why you cannot be a courier.
· Forwarding output without reading it sends unfiltered material into a second review, and the review can only work with what it was given.
Step 3: Give remote output a place to land
The step people skip is deciding where things go.
· If the task runs remotely, on a cluster or a VM or in a container, the results and figures and error logs exist only there.
· Reviewing them means opening them one at a time.
· Passing them to the other window means copy and paste, and figures do not survive the trip.
So Codex packages the run at the end of each task and drops it into a local tree keyed by task.
inbox/ for source material, tasks/ for task cards, runs/T001/ for a timestamped subdirectory per execution with artifacts and logs, reports/ for finished documents, BLOCKED.md for decisions I owe.
· Three things follow.
· Review is a local directory, not a remote session.
· Handing work to the other window is a path, with figures included.
· When something breaks the scene is intact, so you debug from the real error rather than from memory.
· The structure is arbitrary.
· What matters is that every run leaves a snapshot readable on its own.
Step 4: Start the conversation badly
· My first instinct was a proper project brief.
· Background, objective, method, deliverable.
· I stared at it and produced nothing.
· Starting beats planning here. Clarity comes from the conversation, not before it.
· A polished first version still gets rewritten the moment the direction shifts.
· So I started dumping fragments.
· First message is often three sentences that do not form a paragraph: I want to analyze something in this direction, I have this data, the goal is a draft I can send out.
· Send it.
· Then answer what comes back, about where the data lives, which definition to use, what level this is for.
· By round three or four there is a usable brief.
· The counterintuitive part: Codex handles fragments fine.
· "This data came out of some repository last week, about three thousand rows, missing values not handled yet" works.
· Compressing the specifics to sound professional is what breaks it.
Step 5: Set up the workspace
Four actions, no judgment.
· New Codex chat, working directory pointed at the folder from step 3.
· Get this wrong and every artifact lands elsewhere.
· Name the project, matching what you will submit against later.
· Trust the path when prompted, otherwise it cannot read the files.
· If you switch models underneath this arrangement, unify the endpoint so you are not editing config per line.
· One base URL:
https://api.crazyrouter.com/v1 With the address and key in place, OpenAI and the open models go through the same entry point. Available models are on the Crazyrouter model and pricing catalog, and header and field formats are in the Crazyrouter integration reference.
· Names deserve attention.
· With several lines running, the name is the only thing distinguishing them at submission.
· Near-identical names guarantee you eventually submit into the wrong project, and the symptom is quiet: unrelated files start changing while it does normal work somewhere else.
Step 6: Harvest mode, the step that changes throughput
· Conventional: submit, watch, wait, read, submit again.
· Twelve minutes each round with you present and idle.
· Harvest mode: submit, immediately turn to whatever else finished, collect, review, submit the next, turn again.
· One run made the gap concrete.
· The report finished writing at 11:42:15.
· I killed the process at 11:54.
· During those twelve minutes the report was already on disk while the interface still reported running.
· The event stream shows it, one reconnect error at the end and normal reads before that.
· Waiting conventionally means waiting until you intervene.
· The alternative is collecting another line during that window.
· The precondition is real: more than one line running.
· With one line, harvest mode means nothing and you wait, which is why the first thing to fix is splitting work into parallel lines.
Step 7: First review is yours, second review is not
· The step most likely to get skipped, and the failure mode looks like being helpful.
· Codex produces something, you forward it.
· The problem is position, not efficiency. You own the line.
· Whether the output is right depends on what the task was supposed to be, and only you hold that.
· A second review is good at asking whether the content holds together.
· It cannot ask whether it matches an intent it never received.
The two reviews look at different things.
- First review, you: does it answer what I asked, are the numbers traceable, is anything fabricated, what is missing. Judged against your original intent.
- Second review, other window: logical gaps, structure, ambiguity, consistency with the background. Judged against the content itself.
· The first review does not need expertise.
· Read once and ask three questions: is this what I wanted, where did this number come from, what should be here that is not.
· One of my runs is the counterexample.
· Codex finished the report and hung.
· I wrote the result file myself.
· Had I been a courier, I would have forwarded "it didn't deliver" and the review window would have had nothing to work with, because the first review was empty.
Two things outside the seven
Both bite regardless of how well the seven are running.
· The next instruction from the other window is a proposal, not an order.
· It reads cleanly, the steps are ordered, so you paste it.
· The run drifts and the premise turns out to be something you said in passing two rounds ago.
· Two questions before submitting, both must be yes: is this my direction, does finishing it move me toward the goal.
· Then verify the project name.
· With three windows open, the wrong target happens.
· Read the task file path out loud before submitting.
· Five seconds against a full redo.
· A finished marker is not a finished task either.
· Codex applies an idle timeout while waiting, five minutes by default with no data, after which it decides the connection dropped and reconnects.
· If the task finished writing but the stream never closed cleanly, it sits in reconnect while the interface reports running.
Counting turn.completed in that log returns zero. It never declared completion, with the report already written.
· So read three signals.
· Artifact on disk ranks highest: content in the report, figures that open, complete logs.
· The status marker ranks second: gone usually means done, present does not mean unfinished.
· Process exit ranks last: a process that stays alive may only have an unclosed connection.
· For scripted batches this beats exit codes, which describe what the process went through rather than what the task produced.
Where the cost actually is
· Input tokens across the last two runs were 259,896 and 250,602, with cache hits at 95.3% and 96.1%.
· The context overlaps heavily, so repeated reads mostly hit cache.
· T001 is blank because the process was terminated externally and the usage never got written.
· The real expense is redoing work.
· A vague task card sends a run the wrong way, and one redo is a full set of input plus output.
· So the thing worth polishing is the task card, not the prompt.
· State the objective, pass inputs as paths, write acceptance criteria that can be judged yes or no.
The task card has its own trap. Setting a 300-token output ceiling to force a minimal card returned nothing: finish_reason was length, completion_tokens was 300, of which reasoning_tokens accounted for 302, content empty. HTTP 200, status normal, deliverable empty. The ceiling has to cover thinking plus body.
One more thing worth knowing: ask Codex to audit the scaffolding you built around it, and the findings come back finer than expected.
Two of those findings were in the completion check I had just written. Both fixed.
Five things left after it starts working
Seven steps sounds like a lot until it becomes reflex. If you keep only five:
- Split into two windows. Tasks in Codex's context, discussion elsewhere.
- Leave a self-contained directory per run. Artifacts, logs, errors.
- Turn to another line the moment you submit. Requires at least two lines.
- Do the first review yourself. What I asked for, where the number came from, what is missing.
- Read three signals. Artifact first, marker second, exit code last.
The other two become habit after a few rounds.
The whole thing comes down to a division of labour
Seven steps in, three judgments survive.
· Context sets the ceiling, and the prompt is a minor contributor.
· The same instruction in a window carrying dozens of rounds of discussion and in a window carrying only the task produce different work.
· Two windows, task cards, isolated directories, all the same move: tighten the context.
· The human position is review, not relay.
· AI writes, runs, and fixes on its own.
· What it cannot reach is the original intent, what you wanted before you started describing it.
· Skip the first review and two machines pass a ball back and forth with neither knowing where the goal is.
· Completion is judged by artifact.
· A report on disk at 11:42 with the process alive until 11:54 settles that.
· Progress indicators and exit codes record what the process encountered.
· Neither says whether the task happened.
Tool details change with the next release. Where you put the judgment will not.
All measurements, logs, and behaviour described here come from three runs I executed on the versions listed above, and the screenshots are captures of those actual outputs. Codex CLI installation and configuration: official repository.







