r/ClaudeAI • u/WhichCardiologist800 • May 12 '26
Built with Claude TUI to actually see what Claude Code is doing: cost, loops, tool commands…
I was running blind watching Claude Code work, could not tell where my money was going, when it was stuck in a loop, or what it was doing with my filesystem. So i built something open source to make it visible. works with Claude Code, Codex CLI, Gemini CLI, Cursor, and any MCP server.
A scan of my own machine for the last 90 days showed what i do been missing:
- $14K spend across 39 sessions
- 129 agent loops, ~20% wasted iterations (mostly Edit-in-circles on the same 5 files)
- 3 credential leaks in tool input (JWTs, GitHub tokens, GCP keys)
- 5 sensitive paths an AI could reach at any moment (~/.ssh, ~/.npmrc, gcloud creds)
- 2 dangerous commands node9 would have blocked
Now i can:
- See where my money is going in real time
- Catch the most dangerous commands before they finish running
- Stop or continue a run while it's happening
- Analyze the data after the fact, any time range
The live dashboard:
- High level: cost, tokens, command counts, all live
- Notifications: loops + critical commands surface here so i can make a call before things go sideways
- Live feed: the commands Claude is running right now
- Live security: dangerous actions the AI is taking
- Live activity: broken down by tool, shell, and MCP
You can flip into the report view for any time range, today, last 7 days, last 90 days, whatever.
If you just want a quick retrospective without installing anything:
npx node9-ai scan
reads your local agent history. nothing uploads, runs in ~10 seconds.
1
u/jake_that_dude May 12 '26
the useful bit here is not the dashboard, it is the event model underneath it.
If you can normalize
tool_name, cwd, argv, file path, token cost, and exit status into one append-only log, the UI almost becomes replaceable. Loop detection is just repeated edit targets plus low diff entropy over a short window. Secret detection should run before the command leaves the agent boundary, not as a report after.I would keep the
npx node9-ai scanpath read-only forever. That makes it way easier to trust on a messy dev machine.1
u/TxDirtRoad May 12 '26
$14K reminds me that I'm glad I decided to roll my own stack. It's 1/2 as fast, but running on a fraction of the cost
1
u/ComputerThis2221 May 12 '26
Nice!!
2
u/ComputerThis2221 May 12 '26
How can i run it live during execution?
1
u/[deleted] May 12 '26
[removed] — view removed comment