Re:Porting 100k lines from TypeScript to Rust using Claude C...
by 0x696C6961 on Monday January 26, 2026 @11:01AM
(#46767276)
I wish there was a feature to say "you must re-read X" after each compaction.
[ Parent
| on HN ]
Re:Porting 100k lines from TypeScript to Rust using Claude C...
by nickreese on Monday January 26, 2026 @11:01AM
(#46767285)
Some people use hooks for that. I just avoid CC and use Codex.
Re:Porting 100k lines from TypeScript to Rust using Claude C...
by philipp-gayret on Monday January 26, 2026 @01:03PM
(#46769184)
There'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.
Re:Porting 100k lines from TypeScript to Rust using Claude C...
by root_axis on Monday January 26, 2026 @02:35PM
(#46770408)
What would it even mean to "re-read after a compaction"?
Re:Porting 100k lines from TypeScript to Rust using Claude C...
by esafak on Tuesday January 27, 2026 @12:20AM
(#46775842)
To enter a file into the context after losing it through compaction.
Re:Porting 100k lines from TypeScript to Rust using Claude C...
by taberiand on Monday January 26, 2026 @05:58PM
(#46772892)
Getting 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
Re:Porting 100k lines from TypeScript to Rust using Claude C...
by 0x696C6961 on Tuesday February 03, 2026 @08:01AM
(#46870463)
The 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.
Re:Porting 100k lines from TypeScript to Rust using Claude C...
by esafak on Tuesday January 27, 2026 @12:19AM
(#46775834)