codemap
codemap copied to clipboard
session-start output (~17 KB) exceeds Claude Code's 10,000-char hook cap
codemap hook session-start prints ~17 KB on this repository (380 files). Claude Code truncates hook stdout / additionalContext at 10,000 characters, so on any repo past roughly 300 files the tree is cut mid-directory and whatever follows the tree (hubs, intent, "Next codemap") is lost.
Suggestion: budget session-start to the cap: depth-limit the tree first, keep the trailer, and print a one-line "tree truncated at depth N, run codemap . for the rest" instead of letting the host cut it.