Claude Code or Codex: which AI agent edits a website better?
For new pages, the Claude model is slightly stronger by user votes, and Codex is cheaper to start with: it is included even in free ChatGPT. Claude Code is paid only, from Pro at $20 a month, but it undoes edits from a menu. The better agent for an existing site is the one whose bad edit you know how to reverse, so start with one small edit and check right away how to undo it.
Roman Kaufman, founder of Kaufman Lab · Data as of: October 2026

Our site was built with an AI agent, a program that changes files itself instead of only answering in a chat. According to our review of Kaufman Lab's edit history as of October 2026, 229 edits are marked as co-authored by Claude models, and the word Codex does not appear there once. So we can't compare the agents from our own experience, and the question remains: which of them is more careful when editing a site that already exists?
Claude is slightly ahead, but the ranking measures models
The closest thing to website editing is the open WebDev Arena ranking. Two models each build a web page for the same task, and users vote for the better one. As of October 16, 2026, first place there goes to Claude Opus 5.5 with 1807 points, second to GPT-6 Astra from OpenAI with 1777. The numbers come from a summary on the Developers Digest site, checked against the official leaderboard.
The gap is small, and the score ranges of places two to four overlap. People vote for models, and Claude Code and Codex are only programs running on top of them. The test also builds each page from scratch. Your site, like ours, already works, and the ranking does not measure an edit to a heading or a block. Use the ranking to pick a model for a new page, not an agent for your own site.
At the start, money decides
You can try Codex for free, Claude Code only with a paid plan. The table is based on the pricing pages of Anthropic and OpenAI as of October 31, 2026.
| Claude Code | Codex | |
|---|---|---|
| For $0 | no | yes, "for quick tasks" |
| For $20 a month | Pro plan | Plus plan |
| Limit | 5-hour window and a weekly limit, shared with Claude chat | on Plus, 15–160 messages per 5 hours on GPT-6.1 Sol, an estimate |
| Protection | in Manual mode, waits for a "yes" on every edit | sandbox by default |
Sandbox here means a boundary that Codex does not cross without asking, and full access mode ("Full access") is turned on by hand. If you have no budget for a trial, Codex is the only one of the two you can open for free. If you already pay for a Claude plan from Pro up, Claude Code is included. We covered what a project will cost in the article AI for building apps.
The better one is the one whose edit you can undo
We found no test of editing an existing site for either agent, so the better one is the one whose bad edit you know how to undo. Both can undo, but each has its own limit.
According to Anthropic's help page on checkpoints, Claude Code sets a restore point before each of your messages, and the /rewind command opens the undo menu. Snapshots are kept for about 30 days. If the agent changed a file only through terminal commands rather than with a regular edit, it can't be restored this way. For that, the help page recommends git, the version history of a folder.
Git remembers every state of the files recorded in it, and in Codex the undo itself is built on git. The changes panel with the "Revert all" button works only in a folder under git, and without git the app offers to create it, says OpenAI's help page on reviewing changes. Just keep in mind that "Revert all" discards every change not yet recorded in git, including your own edits.
Our site has one more layer. Before publishing, a checking program reads the built files, the same ones that will go to the server, and on an error it stops publishing before the first file is copied. When you are starting out, checking the page with your own eyes right after the edit does this job.
A first edit you can undo
You get to know your agent through a heading you changed yourself and changed back yourself.
- Open the site folder. With a Claude plan from Pro up, open the Code tab in the Claude app, choose the Local environment, then "Open folder…" and the site folder (how to start in the app). Without a plan, open the folder in the ChatGPT app and pick Codex in the list. Your site lives only in a website builder and there is no folder? The agent has nothing to open, so edit in the builder.
- Make one edit. In Codex, open the changes panel and agree to create git. In Claude Code, turn on Manual mode. Ask it to change the heading of one page (how to set the task), accept the edit and open the page.
- Undo it. In Claude Code, that is /rewind or Esc twice, then "Restore code". In Codex, press "Revert all" while the edit is not yet recorded in git.
If the heading is back, move on to real edits. If not, repeat step 3 before any new tasks. A company site, and you're afraid of touching something extra? Default permissions are enough, don't turn on "Full access". Start with one page, because a big task will eat up the limit.
Frequently asked questions
Which AI is best for coding?
The WebDev Arena user vote as of October 16, 2026 puts Claude Opus 5.5 first and GPT-6 Astra second. The gap is 30 points, 1807 against 1777, and the scores of second, third and fourth place overlap. The ranking says nothing about an agent editing an existing site.
What is Codex in ChatGPT, and is it free?
In the ChatGPT app, OpenAI's AI agent called Codex reads and changes files in a folder you choose. It is included in all ChatGPT plans, the free one too, but on the Free plan OpenAI promises only quick tasks.
What is Cursor?
The Cursor code editor is built on VS Code and suggests code with built-in AI. Claude Code works in it the same way as in VS Code and JetBrains.
Do they work in Russia?
Claude Code officially doesn't: as of October 31, 2026, Russia is not on Anthropic's list of countries. OpenAI doesn't list Russia among the countries for its API, and we did not check the country list of ChatGPT itself, where Codex works, so look it up before paying.