Purpose
The Agent Governance Toolkit (AGT) is aimed at teams that need to put autonomous AI agents into production environments, and it solves three core problems:
- Is this action allowed? An agent with send_email and query_database permissions should not be able to execute drop_table. OAuth scopes and IAM roles control which services an agent can access, not what it can do after connecting.
- Which agent did it? In a multi-agent system, five agents may share one API key, and when something goes wrong, "some agent did it" is not enough as a basis for incident response.
- Can what happened be proven? Auditors and regulators need tamper-proof records of decisions: what policy was in effect at the time, what the agent requested, and why it was allowed or denied.
AGT does not try to win this confrontation inside the prompt. Every tool call, message send, and delegation is intercepted by deterministic application code before the model's intent reaches the network. Actions rejected by the AGT kernel are not "unlikely"; they are structurally impossible.
Main Capabilities
- Policy enforcement: Evaluate YAML policies on every call, record decisions in the audit trail, and throw GovernanceDenied when a policy blocks an action.
- Zero-trust identity: Provide identity and trust mechanisms for agents.
- Execution sandbox: Provide execution isolation capabilities.
- Reliability engineering (SRE): Reliability assurance for autonomous agents.
- Audit logs: Record every decision to form a tamper-proof record.
- Multi-language SDKs: Five language SDKs implement core governance (policy, identity, trust, audit), and Python provides the complete stack. Copilot CLI and Claude Code are first-party developer interfaces built on the TypeScript SDK.
- Framework adaptation: Provide integration and quick-start examples for a variety of mainstream agent frameworks.
- Specifications and tests: Each major component has a formal RFC 2119 specification and conformance tests, 992 conformance tests ensure the code aligns with the specification, and 29 architecture decision records explain the reasons behind the design.
Usage
Prerequisite: Python 3.11+.
The quick-start import requires the [full] extra. Basic agent-goveThe rnance-toolkit wheel only installs the compliance CLI; the governance modules live in the consolidated core distribution. The agentmesh quick start imports are still the current wrapper API. Importing agent_os emits a DeprecationWarning because the old agent-os-kernel distribution is deprecated and you should use agent-governance-toolkit-core instead (or the [full] extra that includes it). The policy engine host code uses the ACS SDK; agt-policies provides a one-way v4 to v5 migration command. The pre-ACS agent_os.policies rule model has been removed, and BREAKING_CHANGES.md lists the replacements.
The policy engine is published upstream as agent-control-spec, and agent-hooks defines its interception contract. AGT keeps the AgentControl host API and framework adapters in policy-engine/, rather than a second decision engine, so that policy evaluation is centralized in one place. AGT can adopt upstream fixes through dependency updates while retaining its host API and framework integrations.
Govern any tool function in two lines of code: on each call, safe_tool evaluates the YAML policy, records the decision to the audit trail, and throws GovernanceDenied when the policy blocks the action. The full AgentControl API is also available for programmatic control.
For Claude Code, you can add AGT as a plugin marketplace and install the governance plugin.
Every layer is optional. Start with govern() and add layers as your risk profile grows. Most teams only run policy enforcement plus audit logging and do not need the full stack.
When to use it
- Teams that need to deploy autonomous agents to production and meet audit and compliance requirements.
- Scenarios in multi-agent systems where you need to distinguish which specific agent performed an action.
- Scenarios where you need to prevent agents from performing dangerous operations (such as dropping database tables).
- Developers using development interfaces such as Claude Code and Copilot CLI who want to add governance capabilities.
Limitations
- The project is in Public Preview and may have breaking changes before GA.
- AGT enforces governance at the application middleware layer rather than the operating system kernel layer, and the policy engine shares the same process boundary as the agent. For production, it is recommended to run each agent in a separate container to achieve operating system-level isolation.
- Prompt-level security is not a control plane. OWASP LLM01:2025 explicitly states that there is no foolproof defense against prompt injection; Andriushchenko et al. (ICLR 2025) report a 100% attack success rate on the JailbreakBench benchmark using adaptive attacks against GPT-4o, GPT-3.5, Claude 3, and Llama-3. Microsoft's own AI red team agent formalizes attack success rate (ASR) as the canonical metric for this class of failure, and emphasizes that mitigations cannot completely eliminate risk and that red teaming must be a continuous process.
- If you use AGT to build applications that interoperate with third-party agent frameworks or services, you do so at your own risk; we recommend reviewing all data shared with third-party services and understanding the third party's data retention and storage practices.
- Official sources are limited to channels maintained by the project team, and the team does not maintain or endorse any third-party websites, packages, or documentation sites that claim to be official.
License and provenance
This project is licensed under the MIT License. The project may contain trademarks or logos for projects, products, or services, and use of Microsoft trademarks or logos must follow Microsoft's trademark and brand guidelines.