agentleFS
MicrosoftKnown publishermicrosoft/agent-governance-toolkit/AGENTS.md

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

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 1 mentionApr 2026: 7 mentionsMay 2026: 19 mentionsJun 2026: 4 mentionsJul 2026: 5 mentionsAug 2026: 14 mentionsSep 2026: 0 mentionsOct 2026: 3 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/agent-governance-toolkit repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/agent-governance-toolkit

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

38 more on GitHub

On Bluesky · 8

3 more on Bluesky

On Hacker News · 2

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
  1. Distinctive:

    Use this file for repository-wide routing.

    line 9
  2. Distinctive:

    Treat current paths as a point-in-time representation, not a permanent architecture promise.

    line 19
  3. Distinctive:

    When a standalone top-level implementation exists for a language, changes for that language should go there rather than into the repo root …

    line 20
  4. Distinctive:

    Prefer the smallest correct scope for a change.

    line 39
  5. Very specific:

    Put third-party integrations in examples/ or agent-governance-python/agentmesh-integrations/ before expanding core packages.

    line 40
  6. Distinctive:

    Put marketing or ecosystem references in docs only after the integration is real, attributable, and useful to users.

    line 42
  7. Very specific:

    Keep .github/ changes separate from feature work.

    line 44
  8. Very specific:

    If both a legacy shared path and a standalone top-level path exist, prefer the standalone top-level path for new work unless maintainers …

    line 45
  9. Distinctive:

    Read the nearest AGENTS.md before changing code in that area.

    line 53
  10. Distinctive:

    Keep PRs scoped to the path described in the PR.

    line 54
  11. Distinctive:

    Add or update tests for behavior changes, bug fixes, security fixes, and new public API surface.

    line 55
  12. Distinctive:

    Prefer examples and docs for low-risk ecosystem additions.

    line 57
  13. Distinctive:

    Do not add obscure dependencies to core paths just to support a single external project.

    line 59
  14. Distinctive:

    Ask a maintainer before proceeding with:

    line 63
  15. Common:

    Never commit secrets, credentials, or real tokens.

    line 74
  16. Distinctive:

    Never weaken security defaults, trust thresholds, or review requirements.

    line 75
  17. Distinctive:

    Do not mix unrelated changes into docs-only or example-only PRs.

    line 76
  18. Distinctive:

    No code contribution, no tests, no integration — just a link or brand mention

    line 88
  19. Very specific:

    When bumping the monorepo version (e.g.

    line 95
  20. Very specific:

    After bumping, verify with: Select-String -Path package-lock.json -Pattern '"<new-version>"' and confirm only the SDK's own entries appear, …

    line 104
  21. Distinctive:

    Before opening a PR:

    line 109
  22. Distinctive:

    ensure commits satisfy DCO/signoff requirements

    line 112
  23. Distinctive:

    run the relevant docs link checks for changed docs

    line 113
  24. Distinctive:

    treat expected 403-prone external links as markdown-link-check exceptions, not flaky failures

    line 114
  25. Distinctive:

    Run the narrowest existing tests for the paths you touched.

    line 119
  26. Distinctive:

    Before opening a PR, proactively check the expected repository gates instead of waiting for CI feedback.

    line 126
  27. Very specific:

    Use a semantic PR title in lowercase conventional-commit style such as docs: ..., fix: ..., or feat: ....

    line 127
  28. Distinctive:

    Ensure commits are DCO-compliant by including a signoff (git commit -s).

    line 128
  29. Very specific:

    Avoid markdown links to external sites that return 403 to automated link checkers.

    line 130

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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

AreaPathUse it for
Published Python packagesagent-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 pathsagent-governance-python/agent-mesh/sdks/Public SDK APIs and language-specific packaging that still live in the shared layout today
Standalone language implementationsagent-governance-python/, agent-governance-dotnet/, agent-governance-golang/, agent-governance-rust/, and other agent-governance-* siblingsTop-level language-specific implementations at the repository root; use these as the canonical contributor-facing paths
Docs sitedocs/Reference docs, tutorials, architecture, package pages
Runnable examplesexamples/Self-contained integrations and worked examples
Interactive demosexamples/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

  1. Prefer the smallest correct scope for a change.
  2. Put third-party integrations in examples/ or agent-governance-python/agentmesh-integrations/ before expanding core packages.
  3. Put marketing or ecosystem references in docs only after the integration is real, attributable, and useful to users.
  4. Keep .github/ changes separate from feature work; they require extra security review.
  5. 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 to agent-governance-dotnet/ as the canonical path.

OSS Contribution Expectations

  • Read the nearest AGENTS.md before 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, and README.md banner.
  • 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 only package.json, then regenerate the lockfile with npm install --legacy-peer-deps.
  • DO NOT bulk-replace inside CHANGELOG.md or RELEASE_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: ..., or feat: ....
  • Ensure commits are DCO-compliant by including a signoff (git commit -s).
  • For docs PRs, run python scripts/docs/check_links.py and python scripts/docs/check_frontmatter.py locally first.
  • Avoid markdown links to external sites that return 403 to 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.