Ctxdiff debugs LLM agent context windows turn by turn and finds cache-busting characters

Character_Award_5542 · reddit · 2026-07-27

The author built ctxdiff, an open-source context-window debugger for LLM agents that records every call as content-hashed blocks in a single SQLite file.

It provides three main views:

The tool supports OpenAI, Anthropic, Gemini/Vertex, Bedrock, and OpenAI-compatible backends such as Ollama, vLLM, and LM Studio. It also works with LangChain/LangGraph, has a JS/TS SDK sharing the same trace format, makes no network calls, and ships with a one-command demo: pip install ctxdiff && ctxdiff demo.

Original post →

More from coding & agent

coding & agent channel →