agent-governance-toolkit
AGENTS.md6.4k starsChanged 2 months agoMITView on GitHub
Agent Governance Toolkit is a multi-package OSS monorepo for runtime governance of AI agents: policy enforcement, zero-trust identity, execution sandboxing, SRE, compliance, examples, docs, demos, SDKs, and publishing pipelines. Use this file for repository-wide routing. When you enter a subdirectory that has its own AGENTS.md, that narrower file takes precedence. This routing reflects the repo as it exists today while reserving room for approved language SDK migrations. Language SDKs may live in standalone top-level directories at the repository root. For…
- Installs packages
Trending
Less talk lately.about the whole repository
Who's talking about microsoft/agent-governance-toolkit
- @pythonhub.dev“microsoft / agent-governance-toolkit AI Agent Governance Toolkit — Policy enforcement, zero-trust identity, …”Bluesky · May 6, 2026 · 9 likes
- aaif/project-proposals“[Project Proposal] Agent Governance Toolkit”GitHub · Apr 26, 2026 · 6 reactions
- A Hacker News story“Agent Governance Toolkit”Hacker News · May 27, 2026 · 5 points
- @qdrddr.bsky.social“#OPA #Rego policies for #agents Integrates with most frameworks. #Python · #TypeScript · .NET · Rust · Go …”Bluesky · May 24, 2026 · 5 likes
- @alexmg.dev“Today's random GitHub ⭐! microsoft/agent-governance-toolkit Posted using Starrysky”Bluesky · Oct 1, 2026 · 2 likes
The biggest 5 of 53 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 53
Talked about on GitHub, Bluesky and Hacker News (53 times).
On GitHub · 43
- Apr 26, 2026[Project Proposal] Agent Governance Toolkit — aaif/project-proposals6 reactions · 33 comments
- Apr 20, 2026[Feature] Governance hooks for AI SDK — policy enforcement before tool execution — vercel/ai2 reactions · 17 comments
- Jul 22, 2026[Feature]: Integrate Microsoft Agent Governance Toolkit (AGT) as optional governance plugin — consolidate 53+ governance-related issues — NousResearch/hermes-agent1 reaction · 3 comments
- Jul 2, 2026🔄 Refresh `foundry-agt` — aiappsgbb/awesome-gbb1 reaction · 1 comment
- Jun 1, 2026🔄 Refresh `foundry-agt` — aiappsgbb/awesome-gbb1 reaction · 2 comments
38 more on GitHub
- May 29, 2026🔄 Refresh `foundry-agt` — aiappsgbb/awesome-gbb1 reaction · 1 comment
- May 26, 2026[Feature Request] GOVERNANCE_PROXY: native AGT sidecar integration for deterministic tool-call governance — openclaw/openclaw1 reaction · 1 comment
- May 26, 2026🔄 Refresh `foundry-agt` — 7 signal(s), impact: high — aiappsgbb/awesome-gbb1 reaction
- May 16, 2026feat(governance): phase 0 — agentmesh build spike — wildcard/caro1 reaction · 5 comments
- Apr 26, 2026Propose Agent Governance Toolkit for Sandbox stage — ossf/tac1 reaction · 22 comments
- Apr 20, 2026Proposal: Agent Governance Toolkit — Runtime Governance for Agentic AI (Sandbox) — lfai/proposing-projects1 reaction · 3 comments
- Mar 25, 2026Collaboration: Governance middleware for Mastra agents — mastra-ai/mastra1 reaction · 5 comments
- Oct 4, 2026agent-plugins.github.microsoft.agent-governance-toolkit: init at 5.0.0 — sudosubin/agents.nix0 reactions
- Oct 2, 2026External institutional authority binding for sandbox policy activation — anthropics/sandbox-runtime0 reactions
- Aug 13, 2026chore(deps): Bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-antigravity-cli — baoqger/agt-fork0 reactions
- Aug 13, 2026chore(deps): Bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-claude-code — baoqger/agt-fork0 reactions
- Aug 12, 2026Opportunity: optional external policy verdict input at the guard seam — ucsandman/DashClaw0 reactions · 10 comments
- Aug 12, 2026chore(deps): bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-copilot-cli — VLPraneeth/praneeth-agent-governance-toolkit0 reactions · 2 comments
- Aug 12, 2026chore(deps): bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-antigravity-cli — VLPraneeth/praneeth-agent-governance-toolkit0 reactions · 2 comments
- Aug 12, 2026chore(deps): bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-claude-code — VLPraneeth/praneeth-agent-governance-toolkit0 reactions · 2 comments
- Aug 11, 2026chore(deps): bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-antigravity-cli — guden/agent-governance-toolkit0 reactions · 3 comments
- Aug 11, 2026chore(deps): bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-claude-code — guden/agent-governance-toolkit0 reactions · 3 comments
- Aug 11, 2026chore(deps): bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-copilot-cli — guden/agent-governance-toolkit0 reactions · 3 comments
- Aug 11, 2026chore(deps): Bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-claude-code — dzungttfci/ms_agent-governance-toolkit0 reactions · 1 comment
- Aug 11, 2026chore(deps): Bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-copilot-cli — dzungttfci/ms_agent-governance-toolkit0 reactions · 1 comment
- Aug 11, 2026chore(deps): Bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-antigravity-cli — dzungttfci/ms_agent-governance-toolkit0 reactions · 1 comment
- Aug 10, 2026[Discussion] Asago — asago-ai/asago-policy-mapper0 reactions · 1 comment
- Aug 6, 2026chore(deps): Bump @microsoft/agent-governance-sdk from 4.0.0 to 5.0.0 in /agent-governance-copilot-cli — baoqger/agt-fork0 reactions
- Jul 20, 2026[LinkedIn Post] 2026-07-20 - Daily Post — rajshevde-01/Linkedin-Daily-Post0 reactions
- Jul 5, 2026[arXiv] Verifiable agent-memory provenance gate — ContextNest: Verifiable Context Governance for Autonomous AI Agent — mnemonik-dev/nightly-research0 reactions · 2 comments
- Jun 30, 2026Update agent-sre requirement from <2.0,>=1.0.0 to >=1.0.0,<4.0 in /packages/agent-compliance — igordjuric404/ophanix-platform0 reactions
- Jun 16, 2026Update agent-governance-toolkit requirement from >=3.7.0 to >=4.1.0 in /packages/agent-compliance — igordjuric404/ophanix-platform0 reactions
- Jun 8, 2026Limit agent execution by tokens consumed — microsoft/agent-framework0 reactions · 1 comment
- May 25, 2026Explore optional Microsoft Agent Governance Toolkit integration — sure-scale/hey-jude0 reactions
- May 19, 2026build(deps): Update agent-hypervisor requirement from >=3.5.0 to >=3.7.0 in /packages/agent-hypervisor — igordjuric404/ophanix-platform0 reactions
- May 15, 2026<h1>Dependency Review</h1> — nexoracontrol-ops/upgraded-guide0 reactions
- May 14, 2026[Project Proposal] Agent Governance Toolkit — guildaidev/aaif-project-proposals-demo0 reactions · 1 comment
- May 14, 2026[Project Proposal] Agent Governance Toolkit — guildaidev/aaif-project-proposals-demo0 reactions · 2 comments
- May 8, 2026[Project Proposal] Agent Governance Toolkit — guildaidev/aaif-project-proposals-demo0 reactions
- May 8, 2026Microsoft Agent Framework: Agent Governance Toolkit — phongnguyend/Practical.AI0 reactions
- May 8, 2026<!-- ai-pr-summary --> — selutions/Github0 reactions
- May 8, 2026<!-- ai-pr-summary --> — selutions/Github0 reactions
- May 6, 2026<!-- ai-agent:docs-sync-checker --> — selutions/Github0 reactions
On Bluesky · 8
- May 6, 2026microsoft / agent-governance-toolkit AI Agent Governance Toolkit — Policy enforcement, zero-trust identity, execution sandboxing, and… — @pythonhub.dev9 likes and reposts · 2 replies
- May 24, 2026#OPA #Rego policies for #agents Integrates with most frameworks. #Python · #TypeScript · .NET · Rust · Go #OpenSource MIT lic… — @qdrddr.bsky.social5 likes and reposts
- Oct 1, 2026Today's random GitHub ⭐! microsoft/agent-governance-toolkit Posted using Starrysky — @alexmg.dev2 likes and reposts
- Apr 4, 2026github.com/microsoft/ag... — @tommis.fi2 likes and reposts
- Jul 28, 2026📦 microsoft / agent-governance-toolkit ⭐ 4,981 (+17) 🗒 Python AI Agent Governance Toolkit — Policy enforcement, zero-trust identity,… — @github-trending.bsky.social1 likes and repost
3 more on Bluesky
- May 16, 2026On that - @h.olysh.it I was wondering if you’d seen AGT and had opinions - I love the ambition and scope. At the moment it’s fairly… — @ahrkrak.bsky.social1 likes and repost · 1 reply
- Apr 9, 2026microsoft/agent-governance-toolkit: AI Agent Governance Toolkit — Policy enforcement, zero-trust identity, execution sandboxing, and… — @fluid.sublimer.me1 likes and repost
- Apr 8, 2026Together, these tell you Microsoft is betting that governance and evaluation infrastructure will matter more than model capability for… — @nik-kale.bsky.social0 likes and reposts · 1 reply
On Hacker News · 2
- May 27, 2026Agent Governance Toolkit5 points
- May 26, 2026AI Agent Governance Toolkit2 points
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository17 other files it gives its agents.
- agent-governance-claude-code/AGENTS.mdAGENTS.md
- agent-governance-dotnet/AGENTS.mdAGENTS.md
- agent-governance-opencode/AGENTS.mdAGENTS.md
- agent-governance-python/agent-compliance/AGENTS.mdAGENTS.md
- agent-governance-python/agent-mesh/AGENTS.mdAGENTS.md
- agent-governance-python/agent-mesh/sdks/AGENTS.mdAGENTS.md
- agent-governance-python/agent-os/AGENTS.mdAGENTS.md
- agent-governance-python/AGENTS.mdAGENTS.md
- agent-governance-python/agent-sre/AGENTS.mdAGENTS.md
- agent-governance-rust/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- examples/AGENTS.mdAGENTS.md
- examples/demos/AGENTS.mdAGENTS.md
- .github/pipelines/AGENTS.mdAGENTS.md
- policy-engine/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- agt-policy-authoringSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
29 rules. About 1 is common, 21 are distinctive, and 7 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈21
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 9
Use this file for repository-wide routing.
- Distinctive: line 19
Treat current paths as a point-in-time representation, not a permanent architecture promise.
- Distinctive: line 20
When a standalone top-level implementation exists for a language, changes for that language should go there rather than into the repo root …
- Distinctive: line 39
Prefer the smallest correct scope for a change.
- Very specific: line 40
Put third-party integrations in examples/ or agent-governance-python/agentmesh-integrations/ before expanding core packages.
- Distinctive: line 42
Put marketing or ecosystem references in docs only after the integration is real, attributable, and useful to users.
- Very specific: line 44
Keep .github/ changes separate from feature work.
- Very specific: line 45
If both a legacy shared path and a standalone top-level path exist, prefer the standalone top-level path for new work unless maintainers …
- Distinctive: line 53
Read the nearest AGENTS.md before changing code in that area.
- Distinctive: line 54
Keep PRs scoped to the path described in the PR.
- Distinctive: line 55
Add or update tests for behavior changes, bug fixes, security fixes, and new public API surface.
- Distinctive: line 57
Prefer examples and docs for low-risk ecosystem additions.
- Distinctive: line 59
Do not add obscure dependencies to core paths just to support a single external project.
- Distinctive: line 63
Ask a maintainer before proceeding with:
- Common: line 74
Never commit secrets, credentials, or real tokens.
- Distinctive: line 75
Never weaken security defaults, trust thresholds, or review requirements.
- Distinctive: line 76
Do not mix unrelated changes into docs-only or example-only PRs.
- Distinctive: line 88
No code contribution, no tests, no integration — just a link or brand mention
- Very specific: line 95
When bumping the monorepo version (e.g.
- Very specific: line 104
After bumping, verify with: Select-String -Path package-lock.json -Pattern '"<new-version>"' and confirm only the SDK's own entries appear, …
- Distinctive: line 109
Before opening a PR:
- Distinctive: line 112
ensure commits satisfy DCO/signoff requirements
- Distinctive: line 113
run the relevant docs link checks for changed docs
- Distinctive: line 114
treat expected 403-prone external links as markdown-link-check exceptions, not flaky failures
- Distinctive: line 119
Run the narrowest existing tests for the paths you touched.
- Distinctive: line 126
Before opening a PR, proactively check the expected repository gates instead of waiting for CI feedback.
- Very specific: line 127
Use a semantic PR title in lowercase conventional-commit style such as docs: ..., fix: ..., or feat: ....
- Distinctive: line 128
Ensure commits are DCO-compliant by including a signoff (git commit -s).
- Very specific: line 130
Avoid markdown links to external sites that return 403 to automated link checkers.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Governance Toolkit - Repository Instructions
Project Overview
Agent Governance Toolkit is a multi-package OSS monorepo for runtime governance of AI agents: policy enforcement, zero-trust identity, execution sandboxing, SRE, compliance, examples, docs, demos, SDKs, and publishing pipelines.
Use this file for repository-wide routing. When you enter a subdirectory that has its own
AGENTS.md, that narrower file takes precedence.
Repository Layout Status
This routing reflects the repo as it exists today while reserving room for approved language
SDK migrations. Language SDKs may live in standalone top-level directories at the repository
root. For contributor routing, treat agent-governance-dotnet/, agent-governance-golang/, and
agent-governance-rust/ as the canonical standalone language homes.
Treat current paths as a point-in-time representation, not a permanent architecture promise. When a standalone top-level implementation exists for a language, changes for that language should go there rather than into the repo root or an older shared SDK path.
Where Changes Belong
| Area | Path | Use it for |
| Published Python packages | agent-governance-python/ | First-party reusable Python packages and SDK surfaces meant for direct external consumption |
| Python runtime and product code | */ | Runtime code, applications, policy engines, trust, SRE, compliance, and other Python product surfaces that have not moved into the standalone package home |
| Current shared SDK paths | agent-governance-python/agent-mesh/sdks/ | Public SDK APIs and language-specific packaging that still live in the shared layout today |
| Standalone language implementations | agent-governance-python/, agent-governance-dotnet/, agent-governance-golang/, agent-governance-rust/, and other agent-governance-* siblings | Top-level language-specific implementations at the repository root; use these as the canonical contributor-facing paths |
| Docs site | docs/ | Reference docs, tutorials, architecture, package pages |
| Runnable examples | examples/ | Self-contained integrations and worked examples |
| Interactive demos | examples/demos/ | Live demos, dashboards, real-service walkthroughs |
| Release automation | .github/workflows/ | GitHub Actions release, packaging, SBOM, provenance, and publishing automation |
| GitHub automation | .github/ | CI, PR automation, issue templates, policy workflows |
Routing Rules
- Prefer the smallest correct scope for a change.
- Put third-party integrations in
examples/oragent-governance-python/agentmesh-integrations/before expanding core packages. - Put marketing or ecosystem references in docs only after the integration is real, attributable, and useful to users.
- Keep
.github/changes separate from feature work; they require extra security review. - If both a legacy shared path and a standalone top-level path exist, prefer the standalone
top-level path for new work unless maintainers say otherwise. For Python package work, use
agent-governance-python/as the canonical package home. For the approved .NET standalone migration, contributor guidance should point toagent-governance-dotnet/as the canonical path.
OSS Contribution Expectations
- Read the nearest
AGENTS.mdbefore changing code in that area. - Keep PRs scoped to the path described in the PR.
- Add or update tests for behavior changes, bug fixes, security fixes, and new public API surface.
- Attribute prior art in PR descriptions and docs when a design borrows from another project.
- Prefer examples and docs for low-risk ecosystem additions; prefer core package changes only when the project has clear adoption and the integration belongs in AGT long-term.
- Do not add obscure dependencies to core paths just to support a single external project.
Decision Escalation
Ask a maintainer before proceeding with:
- new top-level packages or modules
- cross-cutting changes across 3+ packages
- security model changes
- public breaking API changes
- new framework integrations that materially expand the core surface
- CI/CD architecture changes
Boundaries
- Never commit secrets, credentials, or real tokens.
- Never weaken security defaults, trust thresholds, or review requirements.
- Do not mix unrelated changes into docs-only or example-only PRs.
- Preserve honesty in docs: document shipped behavior, not aspirational behavior.
Spam / SEO Outreach Filtering
Close or ignore PRs, issues, and discussions that are thinly disguised product placements or SEO link-building attempts. Common patterns:
- Offers of "paid collaboration" to insert a product mention into docs, README, or blog posts
- PRs that add a product/service link to a resources or ecosystem list with no real integration
- Issues framed as feature requests that are actually product placements ("Add support for X")
- Generic flattery about the project followed by a pitch to include an unrelated tool
- No code contribution, no tests, no integration — just a link or brand mention
Action: close with a short note ("We don't accept sponsored content or paid placements") or close without comment. Do not modify repo content to accommodate these requests.
Version Bumps
When bumping the monorepo version (e.g. 3.2.0 → 3.2.1):
- DO bump version strings in:
pyproject.toml,package.json,Cargo.toml,*.csproj,__init__.py, andREADME.mdbanner. - DO NOT bulk-replace version strings inside
package-lock.json— transitive dependencies may share the same version number (e.g.import-local@3.2.0,istanbul-reports@3.2.0) and will get corrupted into non-existent versions. Instead, bump onlypackage.json, then regenerate the lockfile withnpm install --legacy-peer-deps. - DO NOT bulk-replace inside
CHANGELOG.mdorRELEASE_NOTES_*.md— those are historical. - After bumping, verify with:
Select-String -Path package-lock.json -Pattern '"<new-version>"'and confirm only the SDK's own entries appear, not transitive deps.
PR Hygiene
Before opening a PR:
- fix the PR title so it is semantic and consistently formatted
- ensure commits satisfy DCO/signoff requirements
- run the relevant docs link checks for changed docs
- treat expected 403-prone external links as markdown-link-check exceptions, not flaky failures
- fix spell-check issues on changed lines before requesting review
Validation
- Run the narrowest existing tests for the paths you touched.
- For bug fixes, prefer a regression test that would fail without the change.
- For docs-only changes, make sure links, commands, and file paths are still correct.
- For SDK changes, verify language-specific build and test commands in the scoped instructions.
PR Hygiene
- Before opening a PR, proactively check the expected repository gates instead of waiting for CI feedback.
- Use a semantic PR title in lowercase conventional-commit style such as
docs: ...,fix: ..., orfeat: .... - Ensure commits are DCO-compliant by including a signoff (
git commit -s). - For docs PRs, run
python scripts/docs/check_links.pyandpython scripts/docs/check_frontmatter.pylocally first. - Avoid markdown links to external sites that return
403to automated link checkers. When an external source must be cited but the host blocks bots, prefer plain-text or code-formatted URLs in docs and put clickable links in the PR description instead.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

