openai / openai/codex

Support for Background Compaction

Open
#38,267 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app context enhancement
Dominant language
Rust
Stars
125k
Forks
19.5k
PR merge metrics
PR metrics pending

Description

What variant of Codex are you using?

App

What feature would you like to see?

Compaction currently pauses the agent loop while the previous context is compacted. Codex could make compaction time completely hidden if the agent is allowed to continue working during this time.

This involves

  1. Taking a snapshot of the conversation and sending it to the compaction endpoint.
  2. While that happens, the agent should continue working.
  3. When the compacted context is ready, it should replace the context up to the snapshot point.

This is already implemented in GH Copilot.

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by tracing the existing compaction flow and agent loop; done means compaction runs from a conversation snapshot while the agent continues, then the resulting context replaces the conversation through that snapshot.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
ai-infra-agents, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.