Skip to content

Improve Support for Long-Horizon, Multi-Session Development Tasks #13241

Description

@EricGT

What variant of Codex are you using?

VSCode Extension

What feature would you like to see?

Codex works well for short, focused tasks, and Plan Mode helps structure near-term work. However, many real-world efforts unfold over extended periods and multiple sessions.

Examples of longer-horizon workflows include:

  • Software & Engineering

    • Large multi-file refactors completed in stages
    • Staged optimization (e.g., instrumentation → data collection → rebuild)
    • Developing parsers against real-world input where the data may deviate from formal specifications and must be refined iteratively
  • Research & Science

    • Designing and refining experiments over multiple hypothesis cycles
    • Analyzing evolving datasets with iterative model adjustments
  • Writing & Knowledge Work

    • Writing a fiction book across chapters and revisions

The OpenAI Cookbook example on long-horizon tasks reflects this style of work, where progress unfolds over many coordinated steps rather than a single interaction.

It would be valuable for Codex to better support the creation and execution of long-horizon tasks, which often appear straightforward in concept but prove significantly more complex in practice.

EDIT

The original long-horizon tasks link is now dead:
https://github.com/openai/openai-cookbook/blob/main/examples/codex/long_horizon_tasks.md
per openai/openai-cookbook@2de2dbd
https://developers.openai.com/blog/run-long-horizon-tasks-with-codex

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestsessionIssues involving session (thread) management, resuming, forking, naming, archiving

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions