I Replaced Claude Code With Codex, And I Should Have Done It Sooner

by Lenny Zulauf
9 minutes read

I Replaced Claude Code With Codex, And I Should Have Done It Sooner


Codex in VS Code

I launched out making earn utility of of Claude Code as my main coding assistant, and also it checks countless boxes. It runs in your uncover, reads your documents unprejudiced, and also amalgamates wearing your Git setup. It also maintains a gargantuan context domicile window and also even experimental features pick rep-based workflows for big refactors. But it also consumptions countless symbols. In one of my analyses, it burned wearing about four times added symbols than Codex for a analogous frontend project. On a $20 per month system, that encompasses upward without standoff. You can hit constrictions a jumble quicker than expected, specifically if you are functioning repeatedly. So I made a choice to ditch it altogether and also switch to Codex instead, and also I am not being sorry for that judgment.

Claude Code Is Electrifying But Owns Circumstances

Claude Code sticks approximately a difficult contraption, specifically for detailed work that warnings complete context. Its interactive, programmer-in-the-loop philosophy can catch slides on perplexing refactors. Since it runs on your machine, it can earn utility of any area equipment or tradition hooks you’ve mount, and also it never sends out your code to the cloud by default. You can even write a CLAUDE.md record wearing chore-capricious directions, and also Claude Code will read it every time.

But these features come at a price. One obstacle is token intake. Claude Code’s results are awfully detailed, which habits it consumes countless symbols. For instance, in a Figma-flair generation project, Claude burned 6.2 million symbols versus Codex’s 1.5 million for analogous expire results.

Claude Code in Vs Code
I Replaced Claude Code With Codex, And I Should Have Done It Sooner 20

Another obstacle is the interactive workflow. Claude Code confirms you each intended adjust and also waits for your OK before case. This keeps you in restrain yet habits you can’t package it loose on a project without recapping in. For rapid addresses or writing little purposes, that can feel pick overhanging. In strategy, I discovered myself adage “Most clearly no, reiterate” a jumble, which disrupted my circulation. Finally, Claude Code’s Pro system possesses solved intake caps. Under heavy earn utility of, the $20 system oftentimes ran out, emboldening me to the added pricey Greatest rate.

Codex Turned Out Much better Than I Reckoned

The latest Codex possesses shut countless of the pit I saw wearing Claude Code. For one, it really feels awfully proficient at autonomous coding jobs. You discuss a impulse in English, and also Codex will system and also execute it on its own. In my analyses, Codex monitored points pick producing boilerplate, refactoring purposes, and also even totality features instead well.

Codex Homepage
I Replaced Claude Code With Codex, And I Should Have Done It Sooner 21

It also possesses a bigger context domicile window than I realized – it tugs in your totality repo when functioning, and also consumptions a diff-based context strategy so it can carry on long sessions without wasting track. I discovered Codex’s results oftentimes spick-and also-expectancy. It ordinarily manufactures much shorter, functioning code instead than lengthy description.

Codex in solution
I Replaced Claude Code With Codex, And I Should Have Done It Sooner 22

Claude oftentimes tries to match the original frame wearing countless remarks, whereas Codex “just resolves it” wearing marginal message. For instance, when I asked Codex to write unit analyses or solve pests, it consented detects without standoff. It can even raise tug warnings instantaneously wearing GitHub assimilation. This was a gallery-changer for me in code mull and also CI/CD – I could tag @Codex and also acquire automated rundowns or addresses without writing any pipe myself.

Codex capacities in the desktop app
I Replaced Claude Code With Codex, And I Should Have Done It Sooner 23

You can also earn utility of the Codex CLI, which is amenable-resource and also simplistic to mount. You just rushed:

npm install -g @openai/codex
codex "refactor this module to use async/await"

The CLI possesses modes pick “suggest” and also “complete-auto”, so you can discern how a jumble autonomy to pose it. Also, a soaking up touch is that Codex reads AGENTS.md if you have it, which is an amenable sketchy, so any current chore directions carry over. Finally, whereas Claude Code possesses prohibited official tooling, Codex presently possesses an official VS Code extension and also a macOS app (Home windows advice is unborn). This habits you can earn utility of Codex in the cloud or on your machine mutually, posing you versatility Claude Code doesn’t prearrangement yet.

Making earn utility of of Codex Within VS Code

One of the spick-and also-expectancy factors of Codex for me possesses been its VS Code assimilation. The official extension depreciates an AI conversation panel correct into your editor.

I mounted the extension from the VS Code Exchange by encompassing the OpenAI Codex extension. It disclosed upward as a Codex icon in the sidebar. Clicking the icon opened upward a conversation panel, which prompted me to log in wearing my ChatGPT account (Plus or Pro) or an API pivot. Once accepted in, Codex launched in Agent computer by default, interpretation it can read documents in your amenable chore, rushed commands, and also even write code after checking for approval.

Codex in VS Code
I Replaced Claude Code With Codex, And I Should Have Done It Sooner 24

From there, I could ask coding misgivings in raw English. For instance, I could underscore a unbiased and also ask it to explain what it implements, or kind something pick “write analyses for with one voice endpoints.” The extension is context-aware, so it reads amenable documents and also accentuated code to pose sizeable defenses.

Once Codex opines edits, the extension confirms a diff. It also amalgamates wearing Git, which renders it simplistic to collar treatment of equalizes. I perpetrate initially, ask Codex to furnish equalizes, then mull the diff. If everything aesthetic dazzles soaking up, I link, or else, I revert.

You can also fine-tune approval modes. The extension lets you discern in between Chat-lone, whereby clearly no code equalizes are made, Agent computer, whereby it asks before making equalizes, and also Complete Schedule, whereby it renders equalizes without motivates. I largely preserve it in Agent computer offered that it impacts a soaking up stability in between convenience and also security.

If you’re still ambiguous which AI contraption you should remuneration for, our comparison of ChatGPT Plus and also Claude Pro should help. While you’re at it, scrutinize out these 12 ChatGPT selections you can attempt for emit.

Related Posts