artoo-corporation/D2-Python
Detect and Deny - Deterministic Function-Level Guardrails for AI Agents
This project helps software developers secure their AI applications by controlling what actions an AI agent can take. It allows you to define policies in a simple configuration file that specify which functions an AI can call, in what order, and with what arguments. The system takes these policy rules and enforces them at every step of the AI agent's execution, preventing unintended or malicious actions.
Use this if you are building an AI agent-driven application and need to ensure your AI only performs authorized actions, even when the AI itself decides the execution flow.
Not ideal if your application does not use AI agents or if you only need traditional security measures like API gateways or application firewalls.
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
ucsandman/DashClaw
🛡️Decision infrastructure for AI agents. Intercept actions, enforce guard policies, require...
Dicklesworthstone/destructive_command_guard
The Destructive Command Guard (dcg) is for blocking dangerous git and shell commands from being...
microsoft/agent-governance-toolkit
AI Agent Governance Toolkit — Policy enforcement, zero-trust identity, execution sandboxing, and...
vstorm-co/pydantic-ai-shields
Guardrail capabilities for Pydantic AI — cost tracking, prompt injection detection, PII...
Pro-GenAI/Agent-Action-Guard
🛡️ Safe AI Agents through Action Classifier