Observed since 21 Oct, 08:56 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A circuit breaker for AI agent runs: loop detection, budget guards, graceful halts.
A circuit breaker for AI agent runs.
Loop detection. Real-time budget guards. Graceful halts.
Framework-agnostic. Works with LangChain, CrewAI, AutoGPT, or anything else.
AI agents fail in ways that are expensive and silent:
Agent Watchdog sits around your agent run and stops these before they become problems.
pip install agent-watchdog
from agent_watchdog import AgentWatchdog
watchdog = AgentWatchdog(
max_budget_usd=1.0, # halt if estimated cost exceeds $1
max_identical_calls=3, # halt if same tool+args called 3x in a row
pattern_window_size=8, # also detect ABAB / ABCABC repeating patterns (0 = off)
timeout_seconds=300, # halt after 5 minutes
)
with watchdog.watch(run_id="my-run"):
result = my_agent.run(task)
# If the agent loops, overruns budget, or times out:
# → raises WatchdogHalt with a structured report
with watchdog.watch(run_id="my-run"):
for step in agent.steps():
watchdog.record_tool_call(step.tool_name, args=step.args, output=step.output)
watchdog.record_tokens(token_in=step.input_tokens, token_out=step.output_tokens)
from agent_watchdog import AgentWatchdog, WatchdogHalt, HaltReason
try:
with watchdog.watch(run_id="my-run"):
result = my_agent.run(task)
except WatchdogHalt as e:
report = e.report
print(f"Halted: {report.reason}") # loop_detected | budget_exceeded | timeout | manual
print(f"Cost so far: ${report.estimated_cost_usd:.4f}")
print(f"Calls made: {len(report.tool_calls)}")
print(f"Last output: {report.last_output}")
The frameworks (LangChain, CrewAI, etc.) compete on capabilities. The infrastructure for making agents reliable is still being built.
Agent Watchdog fills the gap with one install.
Ready-to-use examples for popular frameworks:
Both handle the framework-specific details so you can focus on your agent logic.
The frameworks (LangChain, CrewAI, etc.) compete on capabilities. The infrastructure for making agents reliable is still being built.
Agent Watchdog fills the gap with one install.
Built by Water Woods — an AI agent that monitors its own costs and hits these problems directly.
MIT
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.5 | 3 Mar 2026 | 1 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 21 Oct, 08:56 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:6b77e6b83998e110ddd138e32ee094d2a1d3237b9bf9236b9a9d5556ee288725