AI and agents · Data + prompt

Claude Code vs Codex, in numbers.

I gave Claude Code and Codex the same take with the same brief: everything I ask for out loud is an effect, and how to do it is up to them. This is what each one spent, taken from their own logs.

12 effects asked for with gestures
0 corrections, for both
1:59 raw footage in 4K at 60 fps
29-09-2026
Claude Code · Opus 5.5, effort medium $24.07 at API prices
Codex · GPT-6 Astra, effort medium $67.48 at API prices
01

The numbers, side by side

⌄
Claude CodeCodex
Cost at API prices$24.07$67.48
Tokens processed67.9 M49.6 M
Agent working time3 h 27 min2 h 44 min
Tool calls266364
Length of the master50.2 s44.9 s
Corrections00
Paid for anything extraYes, with my permission: one Nano Banana image, $0.039No, all free and local
02

Where the cost comes from

⌄

Claude Code used more tokens and still cost almost three times less. 98% of both agents' tokens are context the agent rereads from the cache at every step, and rereading costs five times more on GPT-6 Astra: $1 per million against $0.20. That's where $35 of the $43 difference comes from.

Price per million tokensOpus 5.5GPT-6 Astra
Input$4$10
Cache read$0.20$1
Cache write$8 (1 h cache)$12.50
Output$20$50
Tokens: cache read · new · output66.96 M · 0.75 M · 0.23 M48.45 M · 0.95 M · 0.19 M
It's what it would cost paying through the API. With a subscription you pay the fee, not this; the number is there to compare how much work each one spent. Codex doesn't report its cache writes; if its new tokens were cache writes, its total would go up to $69.85. None of its requests went over 272 thousand tokens, the threshold where GPT-6 Astra charges the long-context rate.
03

Tools, task by task

⌄

They started from the same material and the same installed tools. Both edited with Remotion and chose Three.js for the 3D. Where they split the most was the background.

TaskClaude CodeCodex
EditingRemotion bothRemotion
3D logosThree.js: Claude extruded from its official SVG, and Codex's official icon on a 3D piece bothThree.js: both extruded from their official SVGs
Cutting me out of the backgroundRobustVideoMatting, at 1080x1920 bothRobustVideoMatting, masks at 360x640
TranscriptionWhisper large-v3-turbo, locally bothWhisper large-v3-turbo, locally
Tracking my handsMediaPipe HandsOpenCV, and by hand for the throw
The room without meThe real wall + Nano Banana for the gap, with my permissionStable Diffusion locally, free, and it removed the chair
SubtitlesInside RemotionBurned in with ffmpeg
Sound effectsSynthesized in code bothSynthesized locally

Skills both of them read

Remotion's official skills and my editing skill, only as a reference for subtitles and branding.

Only Claude Code

Used the Nano Banana skill once, to generate the part of the room I was covering.

04

Do it yourself, step by step

⌄

This is how I prepared mine, in order. What changes the result the most happens before you open the agent: the script for the take and how you record.

  1. Write the script for the take. A list of commands and, for each one, what you say, the gesture and the effect you want. The first line has to work on its own, because it's your hook. Save it as take-script.md. Three of mine:
    • “Put the Claude logo here, in 3D.” · open palm facing up · the logo floating above your hand
    • “Hide me.” · you cover your face · you disappear from the shot
    • “Full screen.” · finger snap · back to the full shot
  2. Record it with the edit in mind. Vertical, 4K at 60 fps and on a tripod: the camera doesn't move for the whole clip. A lavalier mic, so both hands are free. A medium shot with room on the sides, so your hands don't leave the frame when you open your arms. Start with 3 seconds of empty shot, without you: it's the clean background the effects where you disappear need. Between commands, hands down for a second, and after each command hold the gesture for a second and a half in silence: that's where the effect goes.
  3. Prepare the folder. The clip, take-script.md, a logos/ folder with the official logos of every brand you name (from each one's press kit) and your videos if any command uses them.
  4. Open the agent in that folder and paste the prompt. I used Claude Code with Opus 5.5 on medium effort; Codex with GPT-6 Astra did it too. Fill in what's between square brackets.
  5. Review at every phase. First the list of effects with their seconds: this is where almost everything gets fixed. Then the first effect, which sets the style for the rest. At the end, the master. Ask for specific changes (“bring the logo in 3 frames earlier”, “bigger”) and not a “make it better”.
  6. Expect it to take a few hours. For me, a video under a minute took the agent 3 h 27 min of work, and at API prices it would have been about $24 with Claude Code.
05

The prompt, ready for your clip

⌄

It's the same brief I gave both of them, with the same freedom: what I want, not how to do it. With that freedom they did their best work; both chose their own tools and almost matched. What was specific to my project is now gaps in square brackets for yours, and I've added two things I learned in the test: recording the empty shot and checking the sync before the master.

Prompt
Edit my clip [clip-name.mov] (vertical video for [TikTok / Instagram], in [language]).

Work only in this folder. If it's a git repo, work on a new branch, never use git add -A and don't merge anything into main without my OK.

Before anything else, read take-script.md: the commands I give in the clip, each one with its gesture and the effect I'm asking for.

Everything you need is in this folder:
- [clip-name.mov]: the raw footage. Don't move it, delete it or modify it.
- logos/: the official logos of the brands I name. Don't recolor or distort them.
- [my-videos/]: my own videos, for the commands that use them.

The brief: in the clip I ask for effects out loud, one after another, each one with its gesture. Everything I ask for is an editing instruction. Do them all, as well as you can: it has to look spectacular, and every effect has to land right on its gesture. How is up to you. Use whatever tools you need:
- I already have installed: [ffmpeg, Remotion, RobustVideoMatting to cut me out of the background, Whisper to transcribe and Playwright]. Put what you have, and where it is.
- Remotion has official skills for agents at github.com/remotion-dev/skills: read them if you're going to use Remotion.
- If you're missing something free (hand tracking, 3D, layer cut-outs, background fill), install it inside this folder or in its own environment, never globally, and write it down. If something is paid or needs an account, ask me first.

What I already know about the clip:
- [What's spare at the start and the end.]
- [Words the transcription might get wrong. Example: where I say "Cloud" it's "Claude".]
- [If I repeated a command: keep the best one.]
- The first 3 seconds are the empty shot, without me: it's the clean background for the effects where I disappear or get split into layers. The camera doesn't move for the whole clip.
- [If a command asks to explain something on screen, the exact content. Example: "CRISPR in three steps: the album, the scissors and the writing".]
- Subtitles in [language] burned in, at the bottom, except when there's an effect at the bottom.

Phases:
1. Transcribe the clip and give me the list of effects with their exact second and how you plan to do each one (which tool). Wait for my OK.
2. Do the first effect and show it to me. Wait for my OK.
3. Do the rest. Before giving me the master, look frame by frame at the moment of each effect and check that the voice is in sync with the image; fix whatever you see and deliver it.

Deliver, in this folder:
- the master with subtitles ([1080x1920], [60] fps);
- the same master without subtitles, with the same timing;
- an edit list: which second of the raw footage goes at which second of the master. Don't change the speed of the clip;
- a short INFORME.md: which tool you used for each effect, what you installed and what didn't work out and why.
06

How I measured it

⌄

Tokens and cost

From each session's local log: the usage of every response in Claude Code and Codex's last counter before finishing the edit. Anthropic's official prices; OpenAI's, from two sources that match.

Time

The same method for both: from each message of mine to the agent's last action before the next one. It doesn't count how long I took to answer. Both worked at the same time on the same computer.

Corrections

Zero for both: no effect had to be redone.

What it doesn't measure

Which one edited better. You decide that by watching the video.