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

agent-governance-toolkit / agent-mesh

AGENTS.md6.4k starsChanged 2 months agoMITView on GitHub

AgentMesh is a trust-first communication layer for AI agents — providing cryptographic identity, multi-dimensional trust scoring, scope chains, and governance enforcement for multi-agent systems. Architecture: 4-layer trust stack - All data models use Pydantic BaseModel - Identity: AgentIdentity with .sign(data: bytes) -> str (base64 Ed25519 signatures) - Trust scores: 5 dimensions — competence, integrity, availability, predictability, transparency - DID format: did:mesh:{hex} — see the proof-of-possession note under Boundaries: registry/app.py derives DIDs from the public key, while AgentDID.generate mints a random…

  • 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

We split this AGENTS.md into the rules it gives an agent

6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    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. Very specific:

    All data models use Pydantic BaseModel

    line 60
  2. Distinctive:

    Keep backward compatibility with existing protocol messages

    line 76
  3. Distinctive:

    All new features must include tests

    line 81
  4. Very specific:

    Run pytest tests/ -v before committing

    line 82
  5. Very specific:

    Use pytest-asyncio for async tests (asyncio_mode = "auto")

    line 83
  6. Very specific:

    Use conventional commits: feat:, fix:, docs:, test:, refactor:, chore:

    line 87

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

AgentMesh — Coding Agent Instructions

Project Overview

AgentMesh is a trust-first communication layer for AI agents — providing cryptographic identity, multi-dimensional trust scoring, scope chains, and governance enforcement for multi-agent systems.

Architecture: 4-layer trust stack

  • Layer 1 (Identity): Ed25519 agent identity, DID (did:mesh:xxx), AI Card integration
  • Layer 2 (Trust): 5-dimension trust scoring, trust decay, handshake protocol, bridges
  • Layer 3 (Governance): Policy enforcement, compliance, hash chain audit chains
  • Layer 4 (Reward): Reputation tracking, reward distribution

Build & Test Commands

# Install dependencies (development mode)
pip install -e ".[dev]"

# Run all tests
pytest tests/ -v

# Run tests with coverage
pytest tests/ --cov=src/agentmesh --cov-report=html

# Type checking
mypy src/

# Lint and format
ruff check .
ruff format .

# Or use Black (also configured)
black --check .

Code Style

  • Formatter: Black (line-length: 100, target: py311)
  • Linter: Ruff (line-length: 100, rules: E, F, I, N, W, UP)
  • Type checker: MyPy strict mode
  • Python: >=3.11
  • Docstrings: Google-style

Key Files

FilePurpose
src/agentmesh/identity/AgentIdentity, AgentDID, Ed25519 key management
src/agentmesh/trust/TrustScore (5 dimensions), TrustHandshake, TrustBridge
src/agentmesh/governance/Policy enforcement, compliance checking
src/agentmesh/integrations/ai_card/AI Card standard adapter (schema, discovery)
src/agentmesh/integrations/a2a/A2A protocol integration (wraps AICard)
src/agentmesh/services/Backend services
src/agentmesh/cli/CLI commands
the repo rootExternal packages (langchain-agentmesh, mcp-proxy)

Coding Conventions

  • All data models use Pydantic BaseModel
  • Identity: AgentIdentity with .sign(data: bytes) -> str (base64 Ed25519 signatures)
  • Trust scores: 5 dimensions — competence, integrity, availability, predictability, transparency
  • DID format: did:mesh:{hex} — see the proof-of-possession note under Boundaries: registry/app.py derives DIDs from the public key, while AgentDID.generate mints a random identifier
  • Private keys stored as _private_key (never serialized)
  • AICard: from_identity() creates signed cards; from_trusted_agent_card() bridges existing formats
  • Tests in tests/ directory

Boundaries

  • Never serialize private keys in JSON/YAML output
  • Never commit secrets, API keys, or credentials
  • Never weaken trust thresholds — only tighten
  • Never accept public keys without proof-of-possession — any HTTP endpoint that accepts a public_key or verification_key MUST verify the caller controls the corresponding private key via Ed25519 signature over (key || timestamp). DIDs issued by the registry MUST be derived from SHA-256(public_key), never client-supplied. See registry/app.py for the reference implementation. CI enforces this via scripts/ci/no-unauthed-registration.sh.
  • A did:mesh identifier is not self-certifying — AgentDID.generate mints a random identifier (secrets.token_hex(16), identity/agent_id.py), so it is not derived from the key and carries no cryptographic binding to one. Only registry-issued DIDs are key-derived. Consequently, request authentication MUST resolve the DID's key through a trusted registry and MUST NOT trust a caller-supplied public key, even when it "matches" the DID. See integrations/request_auth.py.
  • Keep backward compatibility with existing protocol messages
  • the repo root are standalone — changes there need their own test suite

Testing Requirements

  • All new features must include tests
  • Run pytest tests/ -v before committing
  • Use pytest-asyncio for async tests (asyncio_mode = "auto")

Commit Style

Use conventional commits: feat:, fix:, docs:, test:, refactor:, chore:

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.