ccglass turns AI coding agent traffic into something builders can actually inspect

updates

ccglass is a local proxy and dashboard that exposes the prompts, tool schemas, usage, and request diffs behind AI coding agents, turning agent debugging into something much more inspectable.

GitHub README capture for jianshuo/ccglass

Most AI coding agents still feel a little too magical when something goes wrong. You know a tool call failed, or a model went off track, or a cost spike appeared out of nowhere, but the actual request path is hidden behind a black box. ccglass is interesting because it treats that opacity as a product problem. Instead of telling developers to trust the agent loop and hope for the best, it gives them a local proxy plus a dashboard that shows what the agent really sent, what the model really saw, and how the conversation changed from turn to turn.

What the project actually does

According to the README, ccglass is a lightweight local logging reverse proxy and web dashboard for coding-agent tools like Claude Code, Codex, OpenCode, Kimi, DeepSeek-TUI, Reasonix, Ollama, OpenRouter, and more. The setup is intentionally small: install it globally, launch it for the client you want to inspect, and it starts a local proxy, points the client at that proxy through the right base-URL environment variable, and opens a dashboard.

That dashboard is the real point of the project. It lets you inspect the full system prompt, tool schemas, message history, tool-call flow, token usage, cache behavior, estimated cost, request latency, and turn-to-turn diffs. Instead of guessing why an agent behaved strangely, you can actually look at the payloads.

Why the implementation choice matters

The clever part is not just that ccglass logs traffic. Plenty of people have wanted that. The clever part is where it sits in the request path.

The README explains that many agent CLIs ignore standard HTTP_PROXY and HTTPS_PROXY settings, which makes classic debugging tools like Charles or mitmproxy much less useful. ccglass avoids that trap by intercepting the plain HTTP hop to localhost after the client has been pointed at a local base URL. The client still handles HTTPS to the real provider on its side, so the user does not have to fight certificate installation, TLS pinning, or brittle patching hacks just to inspect traffic.

That is strong product thinking. It starts from the messy behavior of real tools, then chooses an architecture that works with those constraints instead of pretending they do not exist.

Why builders should care about this

I think the deeper value here is that ccglass treats agent observability as part of the user experience, not just a developer convenience. When an AI coding tool becomes part of daily work, people need more than a nice interface and a capable model. They need to understand failure modes, token burn, hidden instructions, tool selection, and what context is actually being passed upstream.

ccglass makes that inspectable in a way that feels much closer to a real product than a packet sniffer. The dashboard organizes the information into useful views: a live request stream, paired tool_use and tool_result sequences, cost and cache summaries, latency signals, export formats, and even diffs between turns. That matters because the core problem is not only data capture. It is helping humans reason about an agent loop without drowning in raw logs.

There is also a trust angle here. AI coding tools ask people to hand over increasingly important work, but they often reveal surprisingly little about what they are doing behind the scenes. A tool like ccglass pushes the category in a healthier direction. If an agent is going to become part of your workflow, you should be able to inspect the instructions, tools, and context that shaped its behavior.

The most interesting detail in the repo

The feature I like most is probably the turn-to-turn diff plus the broader flow visualization. A lot of agent debugging pain comes from not knowing what changed between one request and the next. Was new context appended? Did a cache breakpoint appear? Did the tool result come back in a way that bloated or distorted the next prompt? That is where many weird behaviors actually start.

By surfacing those transitions directly, ccglass is solving a more useful problem than generic logging. It is helping developers answer the question that matters in practice: what changed in the loop that caused the next decision to look different?

I also like that the project includes self-inspection through MCP when wrapping Claude Code. That is such a good example of tool taste. Instead of making observability live in a completely separate surface, the repo lets the agent inspect its own captured requests from inside the chat. Even if teams do not use that exact flow, it points at a better future where agent products expose their own reasoning context more intentionally.

Where the limits are

This is not magic, and the README is refreshingly clear about that. Some client modes still bypass the setup entirely. For example, Codex in ChatGPT-login mode uses a WebSocket path that does not honor the same base-URL hook, so the dashboard stays empty unless the user switches to API-key mode. IDE support is also strongest when the tool allows a custom API base URL in BYOK-style setups.

That limitation does not weaken the repo much for me. If anything, it makes the project more credible because it documents the real boundaries instead of pretending to be universal. It also highlights a broader truth about this space: the more locked-down agent products become, the harder it is for users to inspect or control what is happening inside them.

There is a second tradeoff worth keeping in mind too. Deep visibility into prompts, tools, and payloads is incredibly useful, but it also means teams need to think carefully about secret handling and log retention. Observability is good, but observability without discipline can create its own risk surface.

Why this repo feels timely

Agent tooling is maturing past the stage where “it works” is enough. Builders now care about cost visibility, trust, repeatability, and debugging ergonomics just as much as raw model quality. That makes projects like ccglass more important than their star count alone might suggest. They are filling in the missing operating layer around AI coding tools.

That is why this repo stood out to me. ccglass is not trying to be another agent. It is trying to make agents easier to understand. And in a category full of black boxes, that feels like one of the more durable product ideas.

GitHub: https://github.com/jianshuo/ccglass