The best part about this blog post is that none of it is a surprise – Codex CLI is open source. It's nice to be able to go through the internals without having to reverse engineer it. Their communication is exceptional, too. Eric Traut (of Pyright fame) is all over the issues and PRs. https://github.com/openai/codex
For some reason a lot of people are unaware that Claude Code is proprietary.
Unrolling the Codex agent loop
171–180 of 220 posts
Re: Unrolling the Codex agent loop
#172Re: Unrolling the Codex agent loop
#173Re: Unrolling the Codex agent loop
#174Earlier quoted context omitted.
"encrypted_content" is just a poorly worded variable name that indicates the content of that "item" should be treated as an opaque foreign key. No actual encryption (in the cryptographic sense) is involved.
Are you sure? For reasoning, encrypted_content is for sure actually encrypted.
Re: Unrolling the Codex agent loop
#175Re: Unrolling the Codex agent loop
#176I use 2 cli - Codex and Amp. Almost every time I need a quick change, Amp finishes the task in the time it takes Codex to build context. I think it’s got a lot to do with the system prompt and a the “read loop” as well, amp would read multiple files in one go and get to the task, but codex would crawl the files almost one by one. Anyone noticed this?
What is your general flow with amp? I plan to try it out myself and have been on the fences for a while.
Re: Unrolling the Codex agent loop
#177The best part about this blog post is that none of it is a surprise – Codex CLI is open source. It's nice to be able to go through the internals without having to reverse engineer it. Their communication is exceptional, too. Eric Traut (of Pyright fame) is all over the issues and PRs. https://github.com/openai/codex
Re: Unrolling the Codex agent loop
#178One thing that surprised me when diving into the Codex internals was that the reasoning tokens persist during the agent tool call loop, but are discarded after every user turn. This helps preserve context over many turns, but it can also mean some context is lost between two related user turns. A strategy that's helped me here, is having the model write progress updates (along with general plans/specs/debug/etc.) to…
It depends on the API path. Chat completions does what you describe, however isn't it legacy? I've only used codex with the responses v1 API and there it's the complete opposite. Already generated reasoning tokens even persist when you send another message (without rolling back) after cancelling turns before they have finished the thought process Also with responses v1 xhigh mode eats through the context window multi…
Re: Unrolling the Codex agent loop
#179Earlier quoted context omitted.
The real question is how long it'll take for Z.ai to clone it at 80% quality and offer it at cost. The answer appears to be "like 3 months".
This is a super interesting dynamic! The CCP is really good at subsidizing and flooding global markets, but in the end, it takes power to generate tokens. In my Uber comparison, it was physical hardware on location... taxis, but this is not the case with token delivery. This is such a complex situation in that regard, however, once the market settles and monopolies are created, eventually the price will be what marke…
[1]: https://developer-blogs.nvidia.com/wp-content/uploads/2026/0...
Re: Unrolling the Codex agent loop
#180Earlier quoted context omitted.
worktrees are a bunch of extra effort. if your code's well segregated, and you have the right config, you can run multiple agents in the same copy of the repo at the same time, so long as they're working on sufficiently different tasks.
How do you achieve coordination? Or do you require the tasks be sufficiently unrelated?