json-sanity
Deterministic JSON repair for LLM agents. Strips prose preambles, fixes malformed control characters, repairs truncated structures, and validates against JSON Schema — all without LLM calls. Stops session poisoning before it kills your long-running agent.