Can a skill trigger proactively compaction? #199376
Replies: 2 comments 1 reply
-
|
Not possible yet. Auto-compaction is system-triggered only. The LLM cannot decide on its own to compact. What exists right now: · Manual trigger — Type /compact in chat to compact whenever you want What doesn't exist: LLM-initiated compaction. The LLM can't decide to compact itself at workflow checkpoints. Workaround for your spec generation use case:
|
Beta Was this translation helpful? Give feedback.
-
|
Yeah, I’ve run into this exact wall. Short answer: you can't do it right now. The LLM doesn't have the system permissions to trigger slash commands like /compact on its own. Compaction only happens if you manually type it, or if the system forces it behind the scenes because you're about to max out your token limit. Since we can't automate the actual command yet, here is how I handle it to keep things moving: Hopefully they give the LLM tool access to slash commands soon, but for now, dumping finalized stuff into workspace files is the cleanest workaround. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Question
💬 Feature/Topic Area
VS Code
Body
It seems like it is not possible to trigger proactively compaction from the LLM (the LLM choosing itself to trigger compaction). Not typing '/compact', I want to trigger compaction at specific points in my workflow. For instance, after a spec has been generated, today i have to say "Please create a new session to type '/compact'". → I want the workflow to do it automatically
Beta Was this translation helpful? Give feedback.
All reactions