gitwtfhub

wtf is agent-governance-toolkit?

microsoft/agent-governance-toolkit — explained in plain English

Analysis updated 2026-08-13

5,899PythonAudience · developerComplexity · 3/5LicenseSetup · easy

TL;DR

A Microsoft toolkit that enforces rules on what AI agents can do, logging every decision for audit and compliance.

Mindmap

mindmap
  root((Agent Governance Toolkit))
    What it does
      Enforces AI agent policies
      Logs every decision
      Identifies which agent acted
    Tech stack
      Python
      TypeScript
      Rust
      Go
    Use cases
      Block risky actions
      Require approvals
      Audit trails
    Audience
      Developers
      Security teams

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Block an AI agent from performing destructive database actions like dropping tables.

REASON 2

Require human approval before an agent can send emails or take other risky actions.

REASON 3

Keep an audit trail proving which agent performed which action and why it was allowed.

What's in the stack?

PythonTypeScript.NETRustGo

How it stacks up

microsoft/agent-governance-toolkitdpkp/kafka-pythonbrainblend-ai/atomic-agents
Stars5,8995,8905,911
LanguagePythonPythonPython
Setup difficultyeasymoderatemoderate
Complexity3/53/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 30min

Requires writing a YAML policy file to define what actions are allowed.

Free to use, modify, and sell, as long as you keep the copyright notice.

Wtf does this do

The Agent Governance Toolkit is a Microsoft project that helps companies control what AI agents are allowed to do once they are running in production. AI agents can call tools, browse the web, query databases, and even hand off tasks to other agents, and once deployed they often make decisions on their own. This toolkit answers three basic safety questions: is a given action allowed, which specific agent performed it, and can the company prove afterward what happened and why. Rather than trying to make an AI model behave safely just by asking it nicely in a prompt, which the project argues is not reliable, the toolkit intercepts every tool call, message, and delegation in regular application code before it happens. A policy written in a YAML file decides whether an action is allowed, requires human approval, or gets blocked outright, and every decision is logged for audit purposes. For example, a policy could block any AI agent from dropping a database table while still allowing normal read access. Getting started involves installing the Python package with pip, then wrapping any function a company wants an agent to call with a "govern" wrapper. The toolkit works with any agent framework, not just Microsoft's own tools, and offers software libraries for Python, TypeScript.NET, Rust, and Go, so the same governance rules can apply across different programming languages. It also plugs directly into Claude Code as an installable plugin. The project positions itself around industry compliance frameworks like the OWASP Agentic Top 10, a checklist of common risks in AI agent systems, and cites published research on how often AI models can be tricked into ignoring their instructions. It is currently in public preview, meaning it works but may still change before a full release. The license is MIT, a permissive open source license that allows free use, including for commercial products.

Yoink these prompts

Prompt 1
Help me install the Agent Governance Toolkit and wrap one of my Python functions with govern().
Prompt 2
Write a policy.yaml file that blocks destructive database actions but allows read access.
Prompt 3
Show me how to add Agent Governance Toolkit as a Claude Code plugin.
Prompt 4
Explain how the govern() wrapper decides whether to allow, deny, or require approval for a tool call.

Frequently asked questions

wtf is agent-governance-toolkit?

A Microsoft toolkit that enforces rules on what AI agents can do, logging every decision for audit and compliance.

What language is agent-governance-toolkit written in?

Mainly Python. The stack also includes Python, TypeScript, .NET.

What license does agent-governance-toolkit use?

Free to use, modify, and sell, as long as you keep the copyright notice.

How hard is agent-governance-toolkit to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is agent-governance-toolkit for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.