Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/microsoft/agent-governance-toolkit/llms.txt

Use this file to discover all available pages before exploring further.

The Agent Governance Toolkit ships in five languages — Python, TypeScript, .NET, Rust, and Go. Python is the primary implementation and carries the full governance stack, including the unified CLI, governance dashboard, 20+ framework adapters, and advanced SRE tooling. The other four language packages now cover the core governance primitives needed to build governed agents in each ecosystem: policy evaluation, agent identity, trust scoring, audit logging, MCP security, execution rings, kill switch, and lifecycle management.

Quick Comparison

The table below shows which capabilities are implemented across all five language packages. A indicates partial implementation.
CapabilityPythonTypeScript.NETRustGo
Policy Engine
Identity & Auth
Trust Scoring
Audit Logging
MCP Security
Execution Rings
SRE / SLOs
Kill Switch
Lifecycle Management
Framework Integrations
Unified CLI
Governance Dashboard
Shadow AI Discovery
Prompt Defense Evaluator
Legend: ✅ Implemented · ◑ Partial · — Not yet available
.NET is marked partial for Identity & Auth because it supports stronger native asymmetric identity flows (ECDSA P-256) while the other SDKs centre on Ed25519-based identity material. Both are cryptographically sound; parity work is ongoing.

Core Primitives

Every language package implements the four foundational governance primitives. These are sufficient to build governed agents in any language without the full Python stack.
PrimitiveWhat It DoesPythonTypeScript.NETRustGo
Policy evaluationEvaluate actions against rules before executionPolicyEvaluatorPolicyEnginePolicyEnginePolicyEnginePolicyEngine
Agent identityCryptographic credentialsAgentIdentityAgentIdentityAgentIdentityIdentityAgentIdentity
Trust scoring0–1000 score based on behaviourTrustEngineTrustEngineTrustStoreTrustEngineTrustManager
Audit loggingAppend-only action logAuditLoggerAuditLoggerAuditLoggerAuditLoggerAuditLogger

Policy Backend Support

All five packages support YAML rules, OPA/Rego, Cedar, and programmatic policy evaluation.
BackendPythonTypeScript.NETRustGo
YAML rules
OPA / Rego
Cedar
Programmatic

Python-Only Capabilities

These capabilities are currently available only in Python. They represent the full governance stack for enterprise deployments.
CapabilityPackageDescription
Replay Debuggingagent-governance-toolkit-sreDeterministic replay of agent sessions for incident investigation
Governance Dashboardexamples/demos/governance-dashboard/Real-time fleet visibility (Streamlit)
Unified CLI (agt)agent-governance-toolkit-cliagt verify, agt doctor, agt lint-policy, agt red-team scan
OWASP Verificationagent-governance-toolkit-cliASI 2026 compliance attestation with signed evidence
20+ Framework Adaptersagentmesh-integrationsLangChain, CrewAI, AutoGen, OpenAI Agents, Google ADK, and more

TypeScript Package

Package: @microsoft/agent-governance-sdk · Install: npm install @microsoft/agent-governance-sdk
ModuleFeatures
PolicyEngineRule evaluation, allow/deny decisions, effect-based policies
AgentIdentityEd25519 key generation, DID creation, credential signing/verification
TrustEngineTrust score tracking, tier classification, decay
AuditLoggerStructured audit events, JSON export
McpSecurityScannerTool poisoning, typosquatting, hidden instruction, rug pull detection
LifecycleManager8-state lifecycle with validated transitions and event logging
RingEnforcer / KillSwitchDeny-by-default execution rings, breach handling, and emergency termination hooks
PromptDefenseEvaluator / GovernanceVerifier / ShadowDiscoveryPrompt auditing, control attestation, runtime evidence verification, and local discovery scanning
GovernanceMetrics / SLOTracker / CircuitBreakerMetrics, error-budget tracking, and resilience primitives
GenericFrameworkAdapterGeneric governance adapter for framework integrations
AgentMeshClientHigh-level client combining all primitives

.NET Package

Package: Microsoft.AgentGovernance · Install: dotnet add package Microsoft.AgentGovernance
NamespaceFeatures
PolicyPolicyEngine with YAML/JSON policy loading, organization scope, richer decision metadata, and fail-closed OPA/Rego and Cedar backends
TrustAgentIdentity, IdentityRegistry, FileTrustStore, delegation helpers, JWK/JWKS, DID document export, and native asymmetric ECDSA P-256 support
AuditAuditLogger, AuditEmitter with structured events
HypervisorExecutionRings (4-tier), SagaOrchestrator, KillSwitch
LifecycleLifecycleManager with 8-state machine and validated transitions
SreSloEngine with objectives and error budget tracking
SecurityPrompt injection detection and PromptDefenseEvaluator
DiscoveryConfig scanning, process scanning, reconciliation, inventory, and risk scoring
IntegrationGovernanceMiddleware for ASP.NET / Agent Framework
RateLimitingToken bucket rate limiter
TelemetryOpenTelemetry integration
McpMcpSecurityScanner (poisoning, typosquatting, hidden instructions, rug pull, schema abuse, cross-server), McpResponseSanitizer, McpCredentialRedactor, McpGateway

Rust Package

Crate: agentmesh + agentmesh-mcp · Install: cargo add agentmesh
ModuleFeatures
policyRule-based policy evaluation with allow/deny effects plus OPA/Rego and Cedar helper support
identityEd25519 key generation, DID creation, credential signing, delegation, and JWK/JWKS helpers
trustTrust scoring, tier classification, behavioural tracking, and trust-handshake helpers
auditAppend-only audit log with structured events
mcpMCP tool definition scanning, poisoning detection, and the standalone agentmesh-mcp security surface
rings4-tier execution privilege rings with configurable permissions, kill switch, circuit breaker, and SLO helpers
lifecycle8-state lifecycle manager with validated transitions
integration_supportFramework adapters, governance middleware, discovery, and prompt defence helpers
The standalone agentmesh-mcp crate (cargo add agentmesh-mcp) provides MCP-specific security primitives — gateway, rate limiting, redaction, session management — without pulling in the full governance stack. Use it when you only need MCP security in a Rust service.

Go Module

Module: github.com/microsoft/agent-governance-toolkit/agent-governance-golang · Install: go get github.com/microsoft/agent-governance-toolkit/agent-governance-golang
FileFeatures
policy.goRule-based policy evaluation, wildcard/conditional matching, YAML loading, rate limiting, approval gates
identity.goEd25519 identity generation, DID creation, signing/verification, JSON export/import
trust.goTrust scoring, tier classification, peer verification, optional disk persistence
audit.goHash-chained audit logging, filtering, JSON export, retention cap
mcp.goMCP security scanning — tool poisoning, typosquatting, hidden chars/homoglyphs, rug pull
rings.go4-tier execution privilege rings with default-deny access control
kill_switch.goScoped execution kill switches (global, agent, capability) with registry and history
lifecycle.go8-state lifecycle manager with validated transitions and transition history
client.goHigh-level client combining identity, trust, policy, and audit
policy_backends.goOPA/Rego remote + CLI + built-in evaluation, Cedar CLI + built-in evaluation
slo.goSLO objectives, event recording, latency/availability evaluation, error budget tracking
middleware.goComposable governance middleware stack, net/http adapter, capability guards, prompt defence, audit, and optional SLO tracking
discovery.goStructured shadow discovery models plus text, process, config-path, current-host, and GitHub repository scanners
promptdefense.goPrompt injection, prompt exfiltration, credential exfiltration, and approval-bypass detection
metrics.goLightweight governance metrics recorder stubs
Go parity status
Python parity areaGo status
Core governance primitives✅ Parity
MCP security✅ Parity
Execution rings✅ Parity
Kill switch✅ Parity
Lifecycle management✅ Parity
SRE / SLOs✅ Parity
Framework integrations✅ Parity
Shadow AI discovery✅ Parity
Prompt defence✅ Parity
OPA / Rego / Cedar policy backends✅ Parity
Unified CLI and governance dashboard— Python only today

Python Distributions (v4.0.0)

As of v4.0.0, 45 packages were consolidated into 5 top-level distributions. Legacy package names remain installable as stub packages that redirect to the consolidated distributions.
DistributionPyPI PackageWhat’s included
agent-governance-toolkit-coreagent-governance-toolkit-corePolicy engine, capability model, audit, MCP gateway, zero-trust identity, trust scoring, A2A/MCP/IATP bridges
agent-governance-toolkit-runtimeagent-governance-toolkit-runtimePrivilege rings, saga orchestration, termination control, execution plan validation, command denylist enforcement
agent-governance-toolkit-sreagent-governance-toolkit-sreSLOs, error budgets, chaos engineering, circuit breakers
agent-governance-toolkit-cliagent-governance-toolkit-cliagt CLI, OWASP verification, integrity checks, policy linting
agent-governance-toolkit[full]agent-governance-toolkitMeta-package installing all of the above

Install Reference

LanguageCommand
Pythonpip install agent-governance-toolkit[full]
TypeScriptnpm install @microsoft/agent-governance-sdk
.NETdotnet add package Microsoft.AgentGovernance
Rustcargo add agentmesh
Rust (MCP only)cargo add agentmesh-mcp
Gogo get github.com/microsoft/agent-governance-toolkit/agent-governance-golang

Build docs developers (and LLMs) love