news.volyx.in

Unrolling the Codex agent loop (openai.com)

456 points by tosh · 271 days ago · 208 comments on HN

Article summary

The article discusses the Codex agent loop and how it handles reasoning tokens, which are used to preserve context over multiple turns. However, the article's content is not available, and the discussion is based on the comments. The comments reveal that the Codex agent loop has limitations, such as discarding reasoning tokens after every user turn, which can lead to loss of context. Users have found workarounds, such as using external tools to store and manage context.

Main themes

  • Codex agent loop
  • Reasoning tokens
  • Context management
  • Agentic coding
  • Tooling and workarounds
  • User experience

What commenters say

  • The Codex agent loop discards reasoning tokens after every user turn, which can lead to loss of context and make it difficult to manage complex conversations.
  • Using external tools, such as markdown files or separate storage, can help preserve context and improve the overall user experience.
  • Some users find the Codex CLI to be efficient and seamless, while others prefer alternative tools, such as Claude Code or Gemini CLI, despite their limitations.
  • The lack of clarity in the Responses API documentation can lead to confusion and unexpected behavior, such as silently discarding reasoning tokens.
  • Preserving reasoning tokens across user turns can lead to a buildup of invisible context, potentially causing the model's and user's understanding of the chat to diverge.
  • The Codex agent loop's behavior is seen as a deliberate design choice to keep the context aligned with what the user sees, rather than a limitation.
  • Users have developed various workarounds, such as using git worktrees or external storage, to manage context and collaborate on projects.
  • The performance and user experience of different agentic coding tools, such as Codex CLI and Claude Code, vary widely, with some users preferring one over the others.