Microsoft open-sources agent-governance-toolkit to enforce policy on autonomous AI agents
The toolkit intercepts every tool call before execution, covers all ten OWASP Agentic risks, and works with LangChain, CrewAI, AutoGen, and other frameworks across Python, TypeScript, Go, Rust, and .N
Microsoft has released the agent-governance-toolkit as open source under the MIT license, giving developers a deterministic policy layer that sits between autonomous AI agents and the tools they invoke. Instead of relying on prompt-level instructions that research shows can be bypassed with 100% success rates on leading models, the toolkit intercepts every tool call, message send, and delegation in application code before the model's intent reaches the wire. Actions the policy engine denies become structurally impossible rather than merely unlikely.
Seven modules cover the full agent lifecycle
The toolkit ships seven composable modules. Agent OS acts as the policy engine and governance gate, evaluating each action against YAML, OPA, or Cedar rules. Agent Mesh provides zero-trust identity, discovery, and encrypted routing between agents using SPIFFE, DID, and mTLS. Agent Runtime manages dynamic execution rings for sandboxing. Agent SRE adds reliability engineering primitives such as circuit breakers and retries. Agent Compliance automates regulatory checks and emits scored evidence. Agent Marketplace governs plugin lifecycles, and Agent Lightning handles reinforcement-learning workflows. Teams can start with a single module and add layers as risk profiles grow.
Framework-agnostic with multi-language SDKs
The governance layer integrates with LangChain, CrewAI, AutoGen, OpenAI Agents SDK, Semantic Kernel, and other agent frameworks. Official SDKs are published on PyPI, npm, NuGet, and crates.io for Python, TypeScript, .NET, Rust, and Go. A single pip install "agent-governance-toolkit[full]" pulls the consolidated core distribution; the base wheel installs only the compliance CLI. The policy engine itself is a Rust core published upstream as the agent-control-spec crate, ensuring fail-closed decisions with deterministic latency.
Policy-as-code with audit trails
Policies are expressed in version-controlled YAML. A rule can allow, deny, or require human approval for specific action types — for example, blocking drop, delete, or truncate operations while routing send_email to a security-team approver. Every evaluation writes a tamper-evident decision record capturing the active policy, the requested action, and the verdict. The CLI includes agt verify for OWASP Agentic Top 10 compliance checks, agt red-team scan for prompt-injection audits against a prompt directory, and agt lint-policy for policy syntax validation in CI pipelines.
Identity and mesh networking built in
Agent Mesh assigns each agent a cryptographic identity and enforces mutual TLS on every hop. This solves the attribution problem in multi-agent systems where five agents might share a single API key. When an incident occurs, the audit log shows exactly which identity performed which action under which policy version. The mesh also handles service discovery and routing, so agents can delegate securely without hard-coded endpoints.
Quick start in two lines
from agentmesh.governance import govern
safe_tool = govern(my_tool, policy="policy.yaml")The wrapper evaluates the policy on every call, logs the decision, and raises GovernanceDenied when a rule blocks the action. For programmatic control, the AgentControl API accepts a manifest and evaluates envelopes containing agent identity and input parameters. TypeScript, .NET, Rust, and Go examples follow the same pattern: instantiate a policy engine or client, then call evaluate or execute_with_governance with the action name and parameters.
Claude Code integration
Developers using Claude Code can add the toolkit as a plugin marketplace and install the governance plugin with two commands:
/plugin marketplace add microsoft/agent-governance-toolkit
/plugin install agt-governance@agent-governance-toolkitThis brings policy enforcement directly into the coding assistant workflow without leaving the terminal.
Sources
Related news
- Open SourceOpenBot: Open-Source Workspace for AI CoworkersCopilotKit released OpenBot, a modular platform that provides AI agents with their own isolated computers, browsers, and file systems for enterprise-ready automation.·same source: github.com
Open SourceMicrosoft releases openclaw-windows-node client for AI agentsMicrosoft introduces an official Windows companion for OpenClaw, utilizing Microsoft Execution Containers (MXC) for secure agent-driven system control.·same source: github.com
Open SourceFive Open-Source No-Code Platforms for Building LLM Agents Including AutoAgentA roundup of five open-source no-code platforms — AutoAgent, AnythingLLM, LangChain Open Agent Platform, Sim, and Dify — that let teams build LLM, RAG, and AI agent systems without writing code.·same source: github.com
Open SourceNVIDIA Releases SkillSpector: Open-Source AI Agent Skill Vulnerability ScannerNVIDIA open-sources SkillSpector, a security scanner detecting vulnerabilities in AI agent skills. Found 26.1% of 31K skills vulnerable, 5.2% malicious. Apache-2.0 licensed.·same source: github.com
AI AgentsAWS launches agent-toolkit-for-aws for AI coding agentsAWS released a toolkit providing AI agents with 40+ skills, 3 plugins, and an MCP server to manage 15,000+ AWS APIs and deploy applications.·same source: github.com
- AI AgentsMicrosoft is introducing Scout as its first Autopilot agentMicrosoft Scout is an always-on agent that works autonomously across Microsoft 365 apps to handle coordination and task follow-through without constant prompting.·shared tag: Microsoft
Comments
Weekly digest
The best of vibe coding, AI agents and open source — once a week, no spam.