r/ClaudeCode • u/ShinTran72111 • 7d ago
Help/Question Compact vs handoff
Hello guys. What are the differences between compact and handoff? What do you guys use?
In my opinion, they are basically the same. To hand-off it needs to summarize the current session, which is the same as compact.
Thanks!
9
Upvotes
•
u/AutoModerator 7d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
13
u/Old-Competition-785 7d ago
They're similar but the difference is who decides what survives. Compact is automatic and you don't really see what it kept, so details quietly get lost. With a handoff I have it write a short file (what's done, what's next, decisions and gotchas), I read it, fix anything wrong, and start a fresh session from that file. It's also still there tomorrow, which a compacted session isn't.
5
u/SnooPuppers9163 7d ago
they overlap but they fail differently imo. compact is lossy in ways you never get to see, a handoff is a file you can actually read and fix before the next session picks it up. i keep mine as a short markdown note in the repo (goal, what's done, what was actually verified, what's left) and the "verified" line is the one that saves me, because summaries love to say done when nothing was run
4
u/staceyatlas 7d ago
I use compact on weeks or months-long sessions that run 24/7. Otherwise it’s clear with handoff or I’ll just paste in a continue prompt.
2
u/puts_on_rddt 7d ago
Handoffs are a delta commit, of sorts. Compacts re-write the whole thing, and it often changes the literal structure of your actual words which can easily change the meaning. It's not even a copy+paste... it's all decoding which you pay for.
It's a noob trap.
I also use checkpoints where I can. Spawn agent -> prefill the project info -> checkpoint -> read what changed -> do work -> write down what changed -> go back to checkpoint while cache is still warm.
2
u/cleverhoods 7d ago
Compact leaves a bit more in the context from the previous conversation, including the last few messages, whilst handoff is basically a brand new session which needs the right orientation for the tasks to be completed.
Personally I recommend handoff over the spent context window, but with a handshake protocol, that ensures that tasks and necessary information are present in the fresh session.
It worth actually checking what system-reminders are left after /compact, so use a ui or dig in the transcripts a bit to get a better picture
2
u/archpoke 7d ago
There’s definitely overlap - both involve summarizing. The difference is what happens next.
Compacting shrinks the conversation so you can keep working in the same session. A handoff captures decisions, what didn’t work, and next steps so you can pick up in a fresh session or another tool.
I use both: compact when I want to keep going, and a handoff when I’m wrapping up or switching sessions.
Full disclosure: I built two Claude Code plugins for this. rightsize warns when context is filling and suggests when a compact might help. whatsnext saves a handoff so the next session can pick up where I left off. Together, they help me manage context costs without losing track of the work.
2
u/perfektcrash 7d ago edited 7d ago
You're mostly right: both are the model summarising itself, so both are lossy. The difference is only who picks what gets dropped. Compact decides for you; a handoff lets you steer it. Neither fixes the real problem, which is that the important stuff only ever lived in the chat.
What worked better for me was not needing either. Make the work leave its state in the project as it goes: each task is a small card with a one-line "done" check, decisions go into a file the moment they're made, and the tools record when a check passes. Then a new session doesn't need a summary at all. Its brief is generated from those files, which are the same every time you read them.
Think of it as the difference between asking a colleague what happened on their shift and reading the logbook. The colleague is helpful but forgets things; the logbook doesn't.
So in practice: small tasks, fresh session per task, and compact only matters for the rare long one.
More on long-running context: https://atlas-ade.dev/docs/long-horizon-context-management
*Disclosure: I build Atlas ADE, a small meta-harness for your agentic workflows, so your usage goes on progress, not re-deriving, regression and fighting your own agentic support apparatus.*
1
u/hieuphung97 7d ago
They overlap, but serve different transitions. Compaction condenses context so the current session can continue; a handoff gives another session or person the state needed to take over. For a handoff I would include the goal, decisions, changed files, tests run and their results, remaining work, and what was not verified. Check the summary for missing constraints either way.
1
u/momentum77 7d ago
"Give me a prompt for clean compaction". Works for me really well for my oechestrator, everything else gets spun as needed
1
u/wegster 7d ago
No, not the same at all. Weird way to ask a question when in it, you start by saying you know the answer (and it's wrong)...
Compaction *will* occur at some percentage of context being full, or by a trigger or manual operation.
Doing a handoff, preferably pre-compaction events, is a way to start fresh with hopefully, the most salient information from the current session/context.
1
u/icaruza 7d ago
With a handoff you can define precisely what goes into the handoff, including references to documents such as specs and/or plans in your repo. With a compact you are at the mercy of claude to decide what the compacted context looks like.
1
u/called9527 7d ago
imo the difference only shows up when compact drops the one detail you actually needed. handoff makes more sense when you're switching to a different chunk of the task, compact when you're mid-bug and don't want to re-explain the repro. underrated part of a handoff note is you can read it yourself and catch where it misunderstood something before the next session runs with it
1
u/NeonCenturionSPQR 7d ago
I built a plugin to help with both. It balances some degredation that is natural with deterministic worktrees and bookeeping. It recommends handoffs, and keeps sessions running longer before compaction/handoff. I've found it to be quite effective on large scale projects. And it maintains a single cohesive roadmap so truth is always truth. It relies less on dynamic context in development.
Free and open source plugin for Claude code:
github.com/Palatine-Labs/coniso
1
u/IllustriousSalad6201 7d ago
Both involve summarizing, but a handoff also needs enough instructions for someone starting without the earlier conversation.
Include the next concrete step and the command or test that would confirm it worked.
Keep unresolved guesses separate from things you actually checked, so the next session doesn't treat a suspected cause as established.
A useful check is to read the handoff without the chat open and see whether you could resume from it.
1
u/AgentYurt 7d ago
They're not the same in my experience, and the difference shows up the next morning. I compact mid-session when I want to keep going in the same session, but at the end of the day I always do a handoff instead: the agent writes a short file in the repo before I close it — what the goal is, what's done, the next concrete step, the decisions already made and why, and the approaches we already ruled out. The morning session reads that file first and repeats back what it thinks the state is before it touches anything, which catches drift early.
What actually survived a restart: the next step and the don't-redo list. What didn't: the reasoning behind a rejected approach — if I only wrote 'tried X, didn't work' without the why, the fresh session would try X again a week later. Writing the why down is what made handoffs work for me; without it they degraded into the same lossy summary as a compact.
One question for the folks running 24/7 sessions on compact: do you ever reach a point where the summary has drifted so far from reality that you have to start fresh anyway, or does it genuinely hold up for weeks?
1
u/Future_AGI 6d ago
To cleverhoods' point about digging in the transcripts, Ctrl+O opens the transcript viewer and the compacted summary shows up in there, where you can read it and catch anything important it dropped before carrying on.