Support for Background Compaction
Open
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
- Taking a snapshot of the conversation and sending it to the compaction endpoint.
- While that happens, the agent should continue working.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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