News for hackers. Stuff that matters.
Re:Gemini 4 Argon by marcus_holmes on Wednesday September 30, 2026 @09:27PM (#49916591)
I have a "wrap up the session" skill that I use when the session gets >50% of its token use. It commits everything, updates documentation, writes a handoff doc, makes sure the todo.md is up to date, etc.

Still works better than compaction.

Re:Gemini 4 Argon by mikepurvis on Wednesday September 30, 2026 @11:48PM (#49917520)
This is what I've been working toward as well. It's interesting how having the agent do its own reasoning about what it thinks is the most relevant knowledge to carry forward into the next pieces of work is vastly more effective (and even fast sometimes) than whatever the mystery-meat "compaction" process is.

Mentioned by the author in a recent HN thread, I'm also experimenting with automating this through a tiny issue tracker called epiq [1] that basically lets the agent sessions themselves file tickets with the follow-on tasks and relevant handoff right in them, and then a dispatcher automatically launches those tickets into new agent sessions.

[1]: https://ljtn.github.io/epiq/

Re:Gemini 4 Argon by varman11 on Thursday October 01, 2026 @12:13AM (#49917659)
The idea to kill "mystery-meat compaction" and use an external handoff primitive is brilliant, but doesn't letting the agent author its own handoff tickets re-introduces the same failure mode?
Re:Gemini 4 Argon by mikepurvis on Thursday October 01, 2026 @10:33AM (#49922217)
You would think so, right? But as with others in the thread, I'd found directing the agent itself to prepare the handoff does deliver much better continuity.

I assume Anthropic & friends have noticed this as well and will change how they handle long running sessions, so the gap will likely close over time, but this is definitely where things stand today.

Re:Gemini 4 Argon by rnxrx on Wednesday September 30, 2026 @10:20PM (#49916922)
I do something similar - as I approach the context limits I have a pre-compact flush skill that extracts anything useful from the context, updates the MEMORY.md and my Obsidian vaults (set up as a poor man's graph DB) and so forth. Once everything's been stored I run /compact to keep the general session flow intact. Recently I added a small embedder/vector search setup to the same skill, which seems promising so far.

On another environment I've been doing something roughly similar, but have integrated Hindsight as a kind of all-in-one of the above and am still trying to suss out the best compaction strategy.

Re:Gemini 4 Argon by w0m on Thursday October 01, 2026 @10:01AM (#49921833)
i have active disagreements with teammates on the value of compaction/months-long sessions.

Same teamates also post 'Sol deleted my git repo!' or 'Sorry, ignore those 300 PR comments i was just looking!' ~once a month.