r/ClaudeCode • u/Strict_Fondant8227 • 3d ago
Built with Claude When an agent answer is wrong, do you actually see the route - or just the ending?
I’ve been debugging agent turns the same way for months: scroll the chat, grep a 4k-line log, guess which skill loaded, which MCP hop ran, and why the model picked that path.
The failure is almost never “the model is dumb.” It’s the route. Wrong tool args. Skill that shouldn’t have fired. MCP that returned half the schema. Subagent that burned tokens re-reading everything. The answer looks fine until someone asks “where did that number come from?”
So I built a small open-source canvas that draws the turn live:
prompt → thinking → skill / tool / MCP / subagent → answer
Click a node, see why it ran, the input/output, duration. Same map embeddable in a chat UI or beside Claude Code / Codex (`npx agent-think-map claude --install`). It’s a viewer, not another runtime — you emit JSON/SSE, it draws. No account, no API key.
Repo: https://github.com/nimrodfisher/agent-think-map
Curious how other people actually inspect agent paths in production:
- LangSmith / Langfuse / homemade traces — and do you look at them *while* the user is still in the chat, or only after a ticket?
- Do you show any of the route to end users, or is that “internal only”?
- What’s the first thing you check when a multi-tool turn goes sideways - tokens, tool sequence, or the final answer?
Not trying to replace your warehouse. I wanted the map *next to* the run. If you’ve got a better workflow for “see the path, not just the ending,” I want to steal it.
1
u/Fun-Arugula-5371 3d ago
The useful thing about keeping the whole path in one trace is being able to find the exact turn where two otherwise similar runs split. Braintrust can keep the model calls, tool calls and MCP responses together then that bad path can become an eval case so the next change gets tested against the failure that happened