Live data from Hacker News

OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

github.com

241–250 of 298 posts

Re: OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

#241

Anyone have any anecdotes on how expensive this is to operate, ie compared to performing the same task via Claude Code?

A one line change, that took a decent amount of reasoning to get to for a large codebase, cost $3.57 just now. I used the o3 model. The quality and the reasoning was excellent. Cheaper than an engineer.

Technically it’s more expensive, because it cost engineer + $3.57 :)

Re: OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

#242
post #155

Earlier quoted context omitted.

Not really, repo map only gives LLMs an overview of the codebase, but aider doesn't automatically bring files into the context - you have to explicitly add the files you wish for it to see in their entirety to the context. Claude Code/Codex and most other tools do this automatically, that's why they're much more autonomous.

Aider regularly asks me the authorization to access files that I didn't explicitly add.

(This happens when the LLM mentions them.)

Re: OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

#243
Claude Code has outstanding performance in code understanding and web page generation stability, thanks to its deep context modeling and architecture-aware mechanism, especially when dealing with legacy systems, it can accurately restore component relationships. Although Codex CLI (o4-mini) is open source and responsive, its hallucination problems in complex architectures may be related to the compression strategy of the sparse expert hybrid architecture and the training goal of prioritizing generation speed. OpenAI is optimizing Codex CLI by integrating the context control capabilities of Windsurf IDE, and plans to introduce a hybrid inference pipeline in the o3-pro version to reduce the hallucination rate.

Re: OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

#244
post #149

Earlier quoted context omitted.

Why not just select Gemini Pro 2.5 in Copilot with Edit mode? Virtually unlimited use without extra fees. Copilot used to be useless, but over the last few months has become quite excellent once edit mode was added.

copilot (and others) try to be too smart and do context reduction (to save their own wallets). I want ENTIRETY of the files I attached to context, not RAG-ed version of it.

Cline doesn’t do this - this is what makes it suitable for working with Gemini and its large context.

Re: OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

#245

Earlier quoted context omitted.

Claude Code has a closed license https://github.com/anthropics/claude-code/blob/main/LICENSE.... There is fork named Anon Kode https://github.com/dnakov/anon-kode which can use more models and non-Anthropic ones. But the license is unclear for it. It's interesting to see codex to be Apache License. Maybe somebody extends it to be usable with competing models.

In terms of terminal-based and open-source, I think aider is the most popular one.

I didn't like not seeing the reasoning of the models

Re: OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

#247
post #74

I tried one task head-to-head with Codex o4-mini vs Claude Code: writing documentation for a tricky area of a medium-sized codebase. Claude Code did great and wrote pretty decent docs. Codex didn't do well. It hallucinated a bunch of stuff that wasn't in the code, and completely misrepresented the architecture - it started talking about server backends and REST APIs in an app that doesn't have any of that. I'm curiou…

there was one post that detailed how those OpenAI models hallucinate and double down on thier mistakes by "lying" - it speculated on a bunch of interesting reasons why this may be the case

recommended read - https://transluce.org/investigating-o3-truthfulness

I wonder if this is what's causing it to do badly in these cases

Re: OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

#248
post #165

Earlier quoted context omitted.

> Its not cheap, but its by far the best, most consistent experience I have had. It’s too expensive for what it does though. And it starts failing rapidly when it exhausts the context window.

I keep seeing this sentiment and it's wild to me. Sure, it might cost a few dollars here and there. But what I've personally been getting from it, for that cost, is so far away from "expensive" it's laughable. Not only does it do things I don't want to do, in a _super_ efficient manner. It does things I don't know how to do - contextually, within my own project, such that when it's done I _do_ know how to do it. Like…

Thanks for sharing. Are you able to control the context when using Claude Code, or are you using other tools that give you greater control over what context to provide? I haven't used Claude Code enough to understand how smart it is at deciding what context to load itself and if you can/need to explicitly manage it yourself.

Re: OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

#249
You can try out the same thing in my homemade tool clai[1]. Just run `clai -cm gpt-4.1 -tools query Analyze this repository`.

Benefit of clai: you can swap out to practically any model, from any vendor. Just change `-cm gpt-4.1` to, for example, `-cm claude-3-7-sonnet-latest`.

Detriments of clai: it's a hobby project, much less flashy, designed after my own usecases with not that much attention put into anyone else

[1]: https://github.com/baalimago/clai

Re: OpenAI Codex CLI: Lightweight coding agent that runs in your terminal

#250

Earlier quoted context omitted.

Claude Code is just way too expensive. These days I’m using Amazon Q Pro on the CLI. Very similar experience to Claude Code minus a few batteries. But it’s capped at $20/mo and won’t set my credit card on fire.

Is it using one of these models? https://openrouter.ai/models?q=amazon Seems 4x costlier than my Aider+Openrouter. Since I'm less about vibes or huge refactoring, my (first and only) bill is <5 usd with Gemini. These models will halve that.

No, Amazon Q is using Amazon Q. You can't change the model, it's calling itself "Q" and it's capped to $20 (Q Developer Pro plan). There is also a free tier available - https://aws.amazon.com/q/developer/

It's very much a "Claude Code" in the sense that you have a "q chat" command line command that can do everything from changing files, running shell commands, reading and researching, etc. So I can say "q chat" and then tell it "read this repo and create a README" or whatever else Claude Code can do. It does everything by itself in an agentic way. (I didn't want to say like 'Aider' because the entire appeal of Claude Code is that it does everything itself, like figuring out what files to read/change)

(It's calling itself Q but from my testing it's pretty clear that it's a variant of Claude hosted through AWS which makes sense considering how much money Amazon pumped into Anthropic)

Post reply on HN