by postalcoder · 1y ago · 0 comments
i do a lot of context management with hooks for all sorts of tool calls.
I have a lot of PreToolUse hooks that injects guideline messages whenever certain tools are called or bash commands run. My hooks also prune older versions of those out of context. All of the transcripts are in ~/.claude/projects/ in jsonl format and are hot-editable.