Automatic Context Compression with Configurable Threshold #32614
J4GL
started this conversation in
Feature Requests
Replies: 1 comment 1 reply
-
|
This is what Github Copilot does, right? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’d like to propose a new feature for zed: automatic context compression. This mechanism would dynamically shorten or summarize the editor’s context (e.g., file buffers, chat history, code snippets) whenever it exceeds a user-defined threshold, ensuring the language model remains performant and within token limits.
Motivation
Proposed Behavior
Threshold Setting: In the IDE settings, allow users to define a maximum context size (e.g., 4 000 tokens).
Compression Trigger: Whenever the aggregated context approaches the threshold, invoke the compressor.
Compression Strategy:
Preview & Rollback: Display a summary preview before sending; allow users to revert or expand individual sections on demand.
Beta Was this translation helpful? Give feedback.
All reactions