Loading video...

Video Failed to Load

Go Home

background compaction just landed in OpenCode as a experimental setting go try it out and tell us what you think

84,040 views • 6 days ago •via X (Twitter)

35 Comments

Stefan's profile picture
Stefan6 days ago

@opencode how does it work?

♠️ Critical Nexus ✊🏿's profile picture
♠️ Critical Nexus ✊🏿6 days ago

@opencode @Teknium this would be nice for hermes

Daniel Lenton's profile picture
Daniel Lenton6 days ago

@opencode There goes my 55 second break

avrl ☘'s profile picture
avrl ☘6 days ago

@opencode Finally its here, this was in github copilot and I really wanted this in opencode as im experimenting cool stuff with it

Ayush Walekar's profile picture
Ayush Walekar6 days ago

@opencode Gotta update my notes already:

PsyChip's profile picture
PsyChip6 days ago

@opencode that's the one of parts in my own fork i struggled often, found the solution as forks. letting each agent consume their own context eg one question+5 subagents starting from a single feature list, a common goal set by user bring the fork feature

Jitendra's profile picture
Jitendra6 days ago

@opencode is there any relation of compaction with cache?? I wanna understand if compaction is killing the cache

Filip's profile picture
Filip6 days ago

@opencode no it's not killing the cache, its working as it used to but faster

Pratham's profile picture
Pratham6 days ago

@opencode I saw this in Pi first in the Discord server, so I'm so glad to see more harnesses adopting this!

Khushal's profile picture
Khushal6 days ago

@opencode finally it forgets stuff in the background like a normal person

alex getman's profile picture
alex getman6 days ago

@opencode @thsottiaux you know

ZOHEB THE DEV's profile picture
ZOHEB THE DEV6 days ago

@opencode woopencode

동욱's profile picture
동욱6 days ago

@opencode Does the agent keep working while it compacts, or does the turn wait until it's done?

Jimmy Young | building LUCI's profile picture
Jimmy Young | building LUCI6 days ago

@opencode When a tool finishes while the summary is being written, does its result stay verbatim after the switch?

Antonio Ivanovski's profile picture
Antonio Ivanovski6 days ago

@opencode Would be nice to be possible to configure thresholds per context size or per model or agent.

Osinachi Okpara's profile picture
Osinachi Okpara6 days ago

@opencode I hope @ajambrosino and @thsottiaux are seeing this? 🥲

Donnie's profile picture
Donnie6 days ago

@opencode a connection is made 🎵

toe_knee's profile picture
toe_knee6 days ago

@opencode Is it intentional that openai native compaction only works if you use the auth methods marked "legacy" was confused why mine stopped working when I had to reauth today

Eran Mazur's profile picture
Eran Mazur6 days ago

@opencode Was trying to figure out other methods of compaction for a while now.. this one looks very interesting

Braden's profile picture
Braden6 days ago

@opencode We do this in Buddy! It's a huge QoL win.

Caelan C's profile picture
Caelan C6 days ago

@opencode Hell yeah

Donnie's profile picture
Donnie6 days ago

@opencode also, this is fast fast

Max's profile picture
Max6 days ago

@opencode What about caching? Do you keep the system prompt + tools stable so they stay cached or each compaction just invalidate the whole cache?

Yuvraj's profile picture
Yuvraj6 days ago

@opencode Wish codex team implement this

g_vit's profile picture
g_vit6 days ago

@opencode Letting compaction run quietly is a welcome improvement for focus.

Sid Borah's profile picture
Sid Borah6 days ago

@opencode Whats the logic? is it configurable? if cacheExpired && context.size() > 80% ??

Adam Liu.'s profile picture
Adam Liu.6 days ago

@opencode FYI a lot of people are asking why DeepSeek v4.1 flash is so slow and doesn’t feel the same as the official api

blankfella 🦫🦀's profile picture
blankfella 🦫🦀6 days ago

@opencode The point is to never need compaction so I hope it stays opt in

OP or Mid's profile picture
OP or Mid6 days ago

@opencode compacting in the background instead of freezing the session mid-task is a nice quality of life change. long sessions are where that stop and wait feeling hurts most.

heath's profile picture
heath6 days ago

@opencode If it preserves the current step and tool results, background compaction could make long coding sessions way less stop-start.

Ongi | AI web pipelines's profile picture
Ongi | AI web pipelines6 days ago

@opencode compaction in the middle of a task is exactly where mine forget what they were doing will give it a try

Claudiu C. Bogdan's profile picture
Claudiu C. Bogdan6 days ago

@opencode That looks so cool! I hope codex and claude do the same it soon.

AI 教父(外挂版)'s profile picture
AI 教父(外挂版)6 days ago

@opencode 后台自己压上下文,人才不用盯窗口水位。 这截该外挂出去——别自己手动清 session。

ounissi zakaria's profile picture
ounissi zakaria6 days ago

@opencode what do you think about omp's snapcompact ?

doanbactam's profile picture
doanbactam6 days ago

@opencode does background mode still wait until the context is full to kick in?

Related Videos