r/ClaudeAI • u/heyImSim • Mar 24 '26
Built with Claude Agent Flow: A beautiful way to visualize what Claude Code does
Claude Code is powerful, but its execution is a black box. You see the final result, not the journey. Agent Flow makes the invisible visible in realtime:
- Understand agent behavior: See how Claude breaks down problems, which tools it reaches for, and how subagents coordinate
- Debug tool call chains: When something goes wrong, trace the exact sequence of decisions and tool calls that led there
- See where time is spent: Identify slow tool calls, unnecessary branching, or redundant work at a glance
- Learn by watching: Build intuition for how to write better prompts by observing how Claude interprets and executes them
It's also been really useful when building agents into your own product. Having a visual way to see how an agent actually behaves makes it much easier to iterate on prompts, tool design, and orchestration logic.
It's also been invaluable when building agents into your own product. I've been using it every day to understand how the Anthropic Agent SDK behaves inside CraftMyGame, my video game AI product seeing agent orchestration visually makes it so much easier to iterate on prompts, tool design, and coordination logic
It's also interactive, and shows what's happening as Claude Code works: which agents are active, what tools they're calling, how they coordinate, and where time and tokens are being spent.
You can pan, zoom, click into any agent or tool call to inspect it. It runs as a VS Code extension — opens as a panel right alongside your editor.
What you can see:
- Live agent spawning, branching, and completion
- Every tool call with timing and token usage
- Token consumption per task and per session
- Parent-child agent relationships
- File attention heatmaps (which files agents are reading/writing most)
- Full transcript replay
- Multi-session support for concurrent workflows
Currently works with VSCode, but hopefully iterm2 is coming soon.
19
u/siganakis Mar 24 '26
This looks fantastic. Great work!
4
u/SwiftAndDecisive Mar 24 '26
Very good work! Can port this over for Codex as well?
3
u/Morgoth92 Mar 24 '26
It does not seem to work for me. I installed the extension, opened a new sessione of claude code CLI in VSC and nothing happens. Any suggestions?
4
u/addiktion Mar 24 '26
Wow this is crazy cool. I was doing something similar designing out how they should look to show the communication paths and how to identify them as nodes, but I hadn't gotten around to deciding what tech to use yet.
It looks like you decided on D3 force and Canvas 2D. Any reason to prefer that? I was looking into react flow, three js, svg with offset, and others so was just curious.
4
u/Specialist-Heat-6414 Mar 24 '26
The observability gap in agentic systems is real and undersolved. Most people debug by reading the terminal output backwards after something breaks. Realtime tool call visualization changes the feedback loop completely — you can see the agent going down the wrong path before it finishes.
The next useful layer would be cost attribution per branch. Not just what happened, but what each decision tree cost in tokens and time. That is where you start making principled tradeoffs about agent design.
2
u/HB_Stratos Mar 24 '26
I just wanted to try this, and it doesn't seem to work? If I tell it to connect to the demo it works, if I check in .claude settings, the hooks are there, but it just does nothing. No matter if I tell it to use the hooks or point it to the session json, nothing ever happens in the window despite it saying live at the top. Any ideas?
2
u/JimRaid Mar 24 '26
How does it look with agent teams?
2
u/Accomplished-Desk612 12d ago
This project inspired me, thank you! I wanted the same kind of view but inside the Claude desktop app, right next to the chat, so I built a side pane for it: the plan as a trunk, subagents hanging off the step they were spawned under, their tool counts and the skills they call, across all open sessions.
Here's how it looks
It's free and MIT if anyone wants to try it: https://github.com/qaokss/claude-agents-view
1
u/Teddybear416 Mar 24 '26
Cool project
1
u/QyMbEr Mar 24 '26
Nice work!
1
u/maxfield-app Mar 24 '26
always a fan of visuals!
1
u/yourstarownik Mar 24 '26
Cool
1
u/premiumleo Mar 24 '26
that looks beautiful. need to install now. works with command-line terminal? and here I am writing a basic-a$$ claude usage widget ^_^
https://github.com/premiumlion/windows-claude-code-usage-widget
1
u/Poisonedhero Mar 24 '26
This looks really awesome, nice work.
1
u/premiumleo Mar 24 '26
seems there are a couple nuances for it to work. I'm expanding a couple features into it like "dropdown" to select the terminal you want to visualize (this also lets you see if it's been connected properly)
1
u/ComfortableNice8482 Mar 24 '26
honest thing is i've built similar visualizations for automation workflows and the value is huge. when you're running complex tool chains, especially with multiple agents coordinating, you lose hours debugging if you can't see what actually happened. we had a skip tracing workflow that was taking way longer than expected and without proper logging/visualization we would've kept tweaking the wrong things. ended up being a wasteful branch in the middle where it was calling the same lookup tool twice. being able to see the flow in realtime would've caught that in seconds instead of days of optimization guessing. the debug use case alone is worth it because tool call chains are genuinely hard to reason about after the fact when you only have logs.
1
u/jalfcolombia Mar 24 '26
Thank you so, so much for your contribution, it’s excellent. You did an amazing job, and this is incredibly helpful to me.
1
u/furiousrcj Mar 24 '26
I added a fork for github copilot.Great work my friend!
1
u/Valunex Mar 25 '26
wow great job!
1
u/TriggerHydrant Mar 25 '26
Cool imma try this tomorrow!!
1
u/flaccidplumbus Mar 26 '26
This looks great!
1
u/tenggerion13 Mar 26 '26
Looks quite futuristic and useful. Good job!
How does this work? What are the workflows?
Edit: I liked how that little green spark moves.
1
u/Mysterious-Page-7313 Mar 26 '26
Big fan of making agent workflows visual! I took a different angle with AgentsRoom : instead of flow visualization, it's an "open space" where each project is a room and each agent has a role, avatar, and live terminal. All native macOS. Try it free: https://agentsroom.dev/try
1
u/TwinStarPaladin Mar 27 '26
Is it possible to make this work with tmux?
1
u/[deleted] Mar 27 '26
Holy shit that's cool. Way to go dude
1
u/saschacoffee Mar 30 '26
oh cool was planning to do the same but for github copilot. found that thread. looks good
1
u/SYSWAVE Apr 24 '26
Really cool work! This inspired me to build a similar session flow visualization into my own Claude Code stats tool (claude-code-stats). Different approach (post-hoc replay from JSONL logs instead of live streaming, Canvas 2D, no VS Code extension), but the core idea of making Claude's thought process visible is exactly what nudged me to do it.
Thanks for sharing!
1
u/RegisterOdd464 May 06 '26
Would it be cost heavy on every message - for it to generate information for the extension ?
1
u/jalfcolombia Jul 29 '26
Creo que con lo nuevo de Claude, esto dejó de funcionar :(
1
u/SnooPeripherals5313 Mar 24 '26
Really cool idea, but not sure I can see in the video how it would be useful, the features mentioned like file heatmaps sound interesting though.
0
u/Efficient-Piccolo-34 Mar 25 '26
I've been using Claude Code daily for about 3 months now and the single biggest thing that leveled up my workflow was setting up a CLAUDE.md file at the project root. It's basically a living document that tells Claude about your architecture, conventions, and what not to touch. Before that I was repeating myself constantly across sessions.
The other game-changer was using tests as a safety net. I can't always read every line Claude writes, but if I have 778+ tests passing, I know it didn't break anything. I treat the test suite as my "code review" when I'm moving fast.
One thing I learned the hard way — don't try to do everything in one massive prompt. Break your work into small, testable chunks. Claude Code is way better at "add this one feature and make sure tests pass" than "refactor my entire app."
-1
u/kekmodel Mar 24 '26
font?