Add token‑limit error handling and switch git diff to null‑delimited output for reliable file detection.