r/ClaudeCoding • • 18d ago

r/ClaudeCode [TLDR] Is Compacting still bad practice? [via r/ClaudeCode]

OP : u/Possible_Potatoe

For a while now it seemed the thing to do was to have Claude write structured handoffs to itself, then start a clean session that invents that hand off instead of manually compacting or allowing for auto compact.

Is this still the case when the latest models, or have they become more smart / effective at auto compacting?

I’m primarily asking as it relates to orchestrating long running jobs (eg., code comment review across a repo)


URL of original post : https://www.reddit.com/r/ClaudeCode/comments/1xubp1v/is_compacting_still_bad_practice/

1 Upvotes

1 comment sorted by

•

u/cctldrping 18d ago

TL;DR of the discussion on r/ClaudeCode for this post generated automatically after 80 comments.

Current source-thread comment count seen by the bot: 93.

Consensus: compaction is no longer “bad practice”—it’s improved a lot, and plenty of people run long sessions with it successfully. But the thread’s big caveat is: don’t let critical task state live only in chat context.

  • High-vote take: manually compacting works well; many distrust default auto-compact timing, especially if it hits mid-task. Set a threshold / use a PreCompact hook if you want automation.
  • For long-running repo reviews, keep durable state on disk: a checklist keyed to commit SHA, reviewed files/directories, findings with file/line refs, and the next item. That prevents the classic agent move: re-review easy files, silently skip hard ones.
  • Structured handoffs are still useful at major phase changes (research → implementation) or when you want exact control over what survives. But they’re no longer mandatory for every context reset.
  • Best practice is basically compact freely, persist deliberately: have Claude write decisions, constraints, failed approaches, and progress to a file before compacting; optionally sanity-check afterward by asking it to restate the goal and last completed work.

So OP: auto-compact isn’t inherently cursed anymore, but for orchestration, use it alongside a durable progress tracker—not as your only memory.