artoo-corporation/D2-Python
Detect and Deny - Deterministic Function-Level Guardrails for AI Agents
It provides fine-grained, declarative policy enforcement for Python functions using a decorator-based approach, integrating with both synchronous and asynchronous application frameworks like Flask, Django, and FastAPI. Policies, defined in YAML, enable role-based access control, detect and block dangerous sequences of tool calls, validate input arguments, and sanitize sensitive data in responses.
Stars
17
Forks
2
Language
Python
License
—
Category
Last pushed
Jan 16, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/agents/artoo-corporation/D2-Python"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Featured in
Higher-rated alternatives
microsoft/agent-governance-toolkit
AI Agent Governance Toolkit — Policy enforcement, zero-trust identity, execution sandboxing, and...
ucsandman/DashClaw
🛡️Decision infrastructure for AI agents. Intercept actions, enforce guard policies, require...
vstorm-co/pydantic-ai-middleware
Middleware layer for Pydantic AI — intercept, transform & guard agent calls with 7 lifecycle...
mattijsmoens/sovereign-shield
AI security framework: tamper-proof action auditing, prompt injection firewall, ethical...
Dicklesworthstone/destructive_command_guard
The Destructive Command Guard (dcg) is for blocking dangerous git and shell commands from being...