logoalt Hacker News

strbeantoday at 6:46 PM1 replyview on HN

Claude Code supposedly supports a "post-compaction" hook, so you could have it automatically run the prompt "We just compacted the context, quickly refresh yourself on the rules in CLAUDE.md etc..".

Depending on what you've got in those files, maybe that will just use up all the context again though.


Replies

troupotoday at 7:48 PM

> supposedly supports a "post-compaction" hook, so you could have it automatically run the prompt

Keyword "supposedly" :)

I've had it in my settings forever, and still...

Asking it to analyse and fix the issue it produced a plausible "my training supercedes/overrides settings especially if triggered by certain words in the phrase" (paraphrasing the long text)

show 1 reply