Agent-Aegis vs Microsoft Agent Governance Toolkit — an honest comparison
Side-by-side: what it takes to add governance to your agent.
import aegis
aegis.auto_instrument()
from agent_os import PolicyEngine, CapabilityModel
capabilities = CapabilityModel(
allowed_tools=["web_search", "file_read"],
denied_tools=["file_write", "shell_exec"],
max_tokens_per_call=4096
)
engine = PolicyEngine(capabilities=capabilities)
decision = engine.evaluate(
agent_id="researcher-1",
action="tool_call",
tool="web_search"
)
Capabilities of each framework. Sources linked in methodology.
| Feature | Agent-Aegis | MS AGT |
|---|---|---|
| Policy engine | Yes | Yes |
| Built-in guardrails (injection, PII) | Yes (85+ patterns) | No (use Azure AI Content Safety) |
| Verifiable audit (Merkle proofs) | Yes (O(log n) proofs) | Hash-chain only (JSONL) |
| Academic paper implementations | 24 papers | 0 (industry best practices) |
| Minimal dependencies | PyYAML only | pydantic + rich required |
| OWASP Agentic Top 10 | Partial | 10/10 |
| Multi-language SDKs | Python only | Python, TS, Rust, Go, .NET |
| Execution sandboxing | No | 4-ring isolation model |
| SRE (SLOs, chaos, circuit breakers) | No | Yes |
| Framework adapters | 7 (LangChain, CrewAI, OpenAI, etc.) | 12+ (AutoGen, Semantic Kernel, ADK, etc.) |
| Temporal monitoring (6 patterns) | Yes | No |
| MCP security (manifest, ETDI, scanning) | Yes (3 modules) | MCP gateway only |
| Trust calibration (contextual bandit) | Yes | No |
| Identity binding (BAID) | Yes | DID-based identity |
| RAG poisoning detection | Yes (6 methods) | No |
| Tool poisoning graph analysis | Yes | No |
| Agent marketplace | No | Yes |
| RL training governance | No | Yes |
| Metric | Agent-Aegis | MS AGT | Note |
|---|---|---|---|
| Single rule policy eval (p50) | 3.5 µs | 11 µs | Different hardware |
| Policy eval ops/sec | 249K | 84K | Different hardware |
| Circuit breaker check | 1.1 µs | 0.5 µs | MS AGT faster |
| Audit entry write | 10.4 µs | 2.0 µs | Merkle tree vs JSONL append |
| Merkle inclusion proof | 2.7 µs | N/A | Agent-Aegis only |
| Install size | ~2 MB | ~53 MB (full) | With all packages |
| External dependencies | 1 (PyYAML) | pydantic + rich + more | Core package deps |
Agent-Aegis implements peer-reviewed research as pure Python modules. Each paper is a working implementation — not a citation. Zero external dependencies. Thread-safe. Sub-millisecond. No other governance framework offers this.
| Action Governance | Content Guardrails | Verifiable Audit | Research Depth | |
|---|---|---|---|---|
| MS AGT | Yes | No (use Azure) | Hash chain | Industry practices |
| Guardrails AI | No | Yes | No | No |
| NeMo Guardrails | Partial | Yes | No | No |
| Agent-Aegis | Yes | Yes (built-in) | Merkle proofs | 24 papers |
tests/bench_paper_modules.py, Python 3.12, Apple Silicon M-series. Source: github.com/Acacian/aegisCorrections welcome. Open an issue if anything is inaccurate.
pip install agent-aegis
24 academic papers. 1 dependency. Two lines of code.
GitHub · Docs · Playground