Hi all,
Managing financial guardrails inside cyclical graphs or stateful agent loops can get messy. If internal graph conditions drift or encounter unhandled exceptions, the agent can enter an infinite retry loop that drains your keys before an alert triggers.
I open-sourced a developer utility called valta-leak to address this at the code level.
It’s a local static analysis CLI that scans your scripts to flag missing backoffs and computes a real-time dollar-per-hour exposure ceiling based on live model tokens, not a guessed number.
Source code is open on GitHub:GitHub - Valta-hq/valta-leak: Static analysis CLI that catches unbounded LLM agent loops, missing retry backoff, and leaked system prompts — with a real dollar-per-hour exposure ceiling computed from actual model pricing, not a guessed number. · GitHub
Let me know if you run into any edge cases with LangGraph condition parsing—happy to adjust the rules to support more complex graph setups.