Claude Code's hook output limit (~10K chars) was truncating the full context load. Split output into chunks at section boundaries, deliver first chunk on UserPromptSubmit, save remaining chunks to disk for drip-feeding on subsequent PostToolUse calls. Two-pass algorithm: split at "--- KEY (group) ---" boundaries, then merge adjacent small sections up to 9K per chunk. Separates session_id guard (needed for chunk state) from prompt guard (needed only for search), so PostToolUse events without a prompt can still pop chunks. |
||
|---|---|---|
| .. | ||
| defaults | ||
| schema | ||
| src | ||
| build.rs | ||
| Cargo.toml | ||
| config.example.jsonl | ||