Debug why an AI agent run is consuming too much context by watching the breakdown live as your code runs
Catch context overflow before it causes silent truncation by setting up the 70/85/95 percent warnings
Replay a completed agent run step by step to understand what the model saw at each decision point
Drop ContextScope into any OpenAI-compatible Python or Node.js project by changing just the base URL
Requires macOS 14+, Xcode 15 to build from source, no signed binary or Homebrew install available yet.
ContextScope is a macOS application that lets developers watch exactly what gets sent to an AI language model during a conversation or agent run. It works by acting as a local proxy: you point your existing AI code at a local address on your Mac instead of directly at the API provider, and ContextScope intercepts and visualizes everything that passes through, then forwards the request to the real service. Nothing is sent anywhere except your original request to your model provider. The main visualization is a live view of the context window as it fills up, broken down by type: system instructions, conversation history, tool definitions, retrieved content, and tool outputs. The tool shows how much of the available context space each category is consuming and fires warnings when usage crosses 70, 85, or 95 percent. Alongside that, there is an execution graph showing the sequence of model calls and tool calls in your agent run, plus a timeline replay feature that lets you scrub back through any completed run to see what the model had in front of it at each step. Setup requires pointing your code at a local URL. In Python that means passing "http://127.0.0.1:4319/v1" as the base URL to the OpenAI client library, the same works with Node.js or any tool that accepts an OpenAI-compatible endpoint. API keys are stored in the macOS Keychain and are never written to logs or exports. All captured data stays in a local SQLite database on your machine. The project runs on macOS 14 or later and currently requires building from source using Xcode 15 or later. A demo mode is available without an API key, offering a few pre-recorded scenarios including a healthy request, a bloated context example, and a runaway tool loop. All features are listed as in development, this is a pre-release project with no signed binary available yet. The README notes that signed releases and a Homebrew install option are planned.
← ashutosh160798 on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.