4 ms·
I wish there was a feature to say "you must re-read X" after each compaction.
by 0x696C6961 9mo ago
I wish there was a feature to say "you must re-read X" after each compaction.
- nickreese 9mo agoSome people use hooks for that. I just avoid CC and use Codex.
- philipp-gayret 9mo agoThere's no PostCompact hook unfortunately. You could try with PreCompact and giving back a message saying it's super duper important to re-read X, and hope that survives the compacting.
- root_axis 9mo agoWhat would it even mean to "re-read after a compaction"?
- esafak 9mo agoTo enter a file into the context after losing it through compaction.
- taberiand 9mo agoGetting the context full to the point of compaction probably means you're already dealing with a severely degraded model, the more effective approach is to work in chunks that don't come close to filling the context window
- 0x696C6961 9mo agoThe problem is that I'm not always using it interactively. I'll give it something that I think is going to be a simple task and it turns out to be complex. It overruns the context, compacts, and the starts doing dumb things.
- esafak 9mo agohttps://github.com/anthropics/claude-code/issues/3537 https://github.com/anthropics/claude-code/issues/3537 https://github.com/anthropics/claude-code/issues/14258 https://github.com/anthropics/claude-code/issues/14258