r/OpenAssistant • • 4d ago

AgentGuard v1.0.1 (PyPI) – Zero-dependency loop killer, spend velocity cap, and JSONL audit log for local & API tool-calling agents

Local models and smaller tool-calling agents are especially prone to getting stuck in subtle tool loops or retrying timed-out calls.

I just published AgentGuard (`v1.0.1`) on PyPI—zero external dependencies (pure Python stdlib), Apache-2.0 licensed, and wraps any Python function or OpenAI-compatible tool call:

- Sliding-window dollar/token velocity cap (`max_spend_per_minute`)

- Strict tool allowlists (`allowed_tools`)

- Consecutive loop detection (`max_consecutive_repeats`)

- Automatic idempotency window (`idempotency_window`) to block duplicate retries

- Dry-run shadow preview mode (`dry_run=True`) + human approval gates

- Versioned JSONL audit logs (`schema_version: "1.0"`)

```bash

pip install agentguard-seatbelt

2 Upvotes

0 comments sorted by