copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Conversation compact feature to preserve context among sessions

Open non-stop-dev opened this issue 3 months ago • 1 comments

Describe the feature or problem you'd like to solve

After fill a model context window truncated message shows forever.

Proposed solution

Would be nice to have the compact conversation feature where it can resume:

  • Problems found in the coding session
  • Solutions applied
  • Problems pending
  • Ongoing problem/solution
  • Modified/relevant files in the coding session (with relative path)
  • Variables changed/created that need to be accounted for
  • Relevant documentation (either a webpage explored, a markdown file created by AI or user, etc)

Then reopen a new API call to the model in a fresh conversation with clean context window and pass that summary as initial context for continuation.

/compact command or /summarize if you do not want to name it as other CLI.

Example prompts or workflows

No response

Additional context

No response

non-stop-dev avatar Oct 07 '25 05:10 non-stop-dev

I think this would be really useful.

Anecdotally, I often end up starting a fresh new chat in the middle of a task, simply because the context window has grown too large and the quality of the output has diminished.

TSMMark avatar Oct 24 '25 14:10 TSMMark