agent47
AgentGuard (repository name agent47, PyPI package name agentguard47, Python import name agentguard) is a Python runtime inspection tool for AI agents that stops runaway agents in instrumented code through guards such as budget, loop, retry, and elapsed-time guards. The base SDK has zero runtime dependencies, requires no account, and is MIT licensed. AgentGuard 2.0.0 requires Python 3.11 or higher; on Python 3.9 or 3.10, you must pin agentguard47==1.4.0. It can check before an operation, execute if allowed, and then record usage afterward; guards raise exceptions to make the application stop the next operation, and it supports local tracing and optional managed integration.