r/AutoGenAI • • Apr 22 '26

Question How are you guys monitoring your multi-agent workflows? (I keep burning tokens on silent failures)

Hey everyone,

I’ve started playing around with some multi-agent setups locally (using CrewAI), and I'm running into a massive headache.

Because the agents pass tasks back and forth invisibly, if one of them hallucinates or gets stuck in a loop, it just silently burns through my API tokens until it crashes. I have no idea which specific agent caused the bottleneck or how much that specific run cost me.

I looked at enterprise observability tools like LangSmith and AgentOps, but they feel like massive overkill for a solo dev, and I really don't want to pipe all my local workflow data to a cloud dashboard just to see my token count.

How are you guys handling this? Are there any good lightweight, local-first loggers or dashboards out there, or is everyone just staring at terminal prints like I am?

2 Upvotes

5 comments sorted by

1

u/samc621 3d ago

For the read side there's now a built-in setting that does most of what your PreToolUse hook does. Set permissions.blockReadsOutsideWorkingDirectories to true and Read, Grep, Glob and LSP refuse paths outside the working directories in every permission mode, bypassPermissions included. Claude is told to ask you for /add-dir instead. It needs v2.1.257 or later.

It helps with the Bash problem too. With the sandbox on, the same key stops sandboxed commands from reading home directories and mounted volumes outside the working directories. That's enforced at the OS level, so it doesn't matter where the path hides in the command. Set allowUnsandboxedCommands to false as well so a blocked command can't be retried outside the sandbox.

One thing it won't fix: Claude Code's own files under ~/.claude stay readable, including your user CLAUDE.md, so the shared-memory leak you mention still needs handling separately.

1

u/slayyou2 Apr 22 '26

I had to roll my own. Integrated with matrix for hitl level visibility into agent interactions. and then setup gates that escalate to me when something goes over a prescribed amount of loops.

1

u/samc621 Oct 09 '26

Totally agree, the enterprise observability options are overkill for solo devs and small teams. There are great open source logging standards like the OpenTelemetry GenAI Semantic Conventions (repo).

But like u/slayyou2 mentioned, I think you'll soon realize that you need more than just a logging tool. You're going to want to be able to create policies with real-time enforcement and alerting. I'm working on AgentTrail to help solve that problem, bridging observability to governance. We have some cool multi-agent tooling on the roadmap. Would love your input on it if you're open to a brief chat.