agentleFS
MicrosoftKnown publishermicrosoft/agent-framework/python/AGENTS.md

agent-framework / python

AGENTS.md14k starsChanged 10 months agoMITView on GitHub

Instructions for AI coding agents working in the Python codebase. Key Documentation: - DEV_SETUP.md - Development environment setup and available poe tasks - CODING_STANDARD.md - Coding standards, docstring format, and performance guidelines - samples/SAMPLE_GUIDELINES.md - Sample structure and guidelines - Python function-calling loop specification - Required behavior, scenario-to-test mapping, coverage gaps, and extra validation for function-loop changes Agent Skills (.github/skills/) — detailed, task-specific instructions loaded on demand: - python-development — coding standards, type annotations, docstrings, logging, performance - python-testing —…

Trending

More talk lately.about the whole repository

Dec 2025: 1 mentionJan 2026: 0 mentionsFeb 2026: 1 mentionMar 2026: 3 mentionsApr 2026: 5 mentionsMay 2026: 3 mentionsJun 2026: 1 mentionJul 2026: 1 mentionAug 2026: 1 mentionSep 2026: 3 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/agent-framework repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/agent-framework

The biggest 5 of 31 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 31

Talked about on GitHub, Bluesky and Hacker News (31 times).

On GitHub · 17

12 more on GitHub

On Bluesky · 10

5 more on Bluesky

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When making changes to a package, check if the following need updates:

    line 23
  2. Distinctive:

    When preparing a PR description:

    line 51
  3. Very specific:

    Follow the repository PR template at .github/pull_request_template.md and keep its structure/headings.

    line 52
  4. Distinctive:

    Do not add ad-hoc validation sections (for example, "Validation" or "Tests run").

    line 54
  5. Very specific:

    Run uv run poe from the python/ directory to see available commands.

    line 58
  6. Distinctive:

    Update only the smallest affected sections when normative behavior, the scenario inventory, an acknowledged coverage gap, or the …

    line 66

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

AGENTS.md

Instructions for AI coding agents working in the Python codebase.

Key Documentation:

  • DEV_SETUP.md - Development environment setup and available poe tasks
  • CODING_STANDARD.md - Coding standards, docstring format, and performance guidelines
  • samples/SAMPLE_GUIDELINES.md - Sample structure and guidelines
  • Python function-calling loop specification - Required behavior, scenario-to-test mapping, coverage gaps, and extra validation for function-loop changes

Agent Skills (.github/skills/) — detailed, task-specific instructions loaded on demand:

  • python-development — coding standards, type annotations, docstrings, logging, performance
  • python-testing — test structure, fixtures, async mode, running tests
  • python-code-quality — linting, formatting, type checking, prek hooks, CI workflow
  • python-feature-lifecycle — package vs feature lifecycle stages, decorators, enums, and promotion guidance
  • python-package-management — monorepo structure, lazy loading, versioning, new packages
  • pull-requests — writing PR descriptions (template) and handling/resolving PR review comments
  • agent-framework-py-release — Python release PR workflow, CHANGELOG-driven package bumps, lifecycle version rules, and dependency-floor validation

Maintaining Documentation

When making changes to a package, check if the following need updates:

  • The package's AGENTS.md file (adding/removing/renaming public APIs, architecture changes, import path changes)
  • The agent skills in .github/skills/ if conventions, commands, or workflows change

At the end of every run, re-read AGENTS.md and the relevant skill files and update any guidance that the conversation revealed to be out of date, incomplete, or misleading (renamed files, changed commands, new conventions the user confirmed, etc.). Before adding a new principle or rule, ask the user whether they want it captured as a durable principle — do not invent team norms from a single conversation without explicit confirmation.

Terminology

  • Avoid "GA" for Agent Framework code. Reserve GA for hosted services (e.g. "the Foundry service is GA"). For Agent Framework packages, features, and APIs use "released" or "stable" depending on context — these match the feature-lifecycle stages documented in the python-feature-lifecycle skill.

Changelog Ownership

  • Individual feature, fix, documentation, and dependency PRs must not update python/CHANGELOG.md.
  • CHANGELOG entries and release sections are assembled centrally during the Python release-preparation workflow.

Pull Request Description Guidance

When preparing a PR description:

  • Follow the repository PR template at .github/pull_request_template.md and keep its structure/headings.
  • Describe the net change relative to main (this is implied; do not call it out explicitly as "vs main").
  • Do not add ad-hoc validation sections (for example, "Validation" or "Tests run"); CI/CD and the template checklist cover validation status.

Quick Reference

Run uv run poe from the python/ directory to see available commands. See DEV_SETUP.md for detailed usage.

Function-Calling Loop Changes

Changes to the Python function-calling loop, approval resume behavior, function-call history, provider serialization, or transport result handling must be reviewed against the function-calling loop specification. Reading and validating against the specification is required; editing it is not the default. It is a stable contract, not a per-PR changelog. Update only the smallest affected sections when normative behavior, the scenario inventory, an acknowledged coverage gap, or the authoritative scenario-to-test mapping intentionally changes. Do not update it for implementation details or tests that preserve existing documented behavior. This area requires extra validation because small changes can duplicate side effects, orphan call/result pairs, replay stale approval authority, or make streaming and non-streaming behavior diverge. External contributors must check with the Agent Framework core team before picking up issues in this area.

Project Structure

python/
├── packages/
│   ├── core/                 # agent-framework-core (main package)
│   │   ├── agent_framework/  # Public API exports
│   │   └── tests/
│   ├── foundry/              # agent-framework-foundry
│   ├── lab/                  # Standalone experimental Lab project
│   ├── anthropic/            # agent-framework-anthropic
│   ├── ollama/               # agent-framework-ollama
│   └── ...                   # Other provider packages
├── samples/                  # Sample code and examples
├── .github/skills/           # Agent skills for Copilot
└── tests/                    # Integration tests

Package Relationships

  • agent-framework-core contains core abstractions and OpenAI/Azure OpenAI built-in
  • Provider packages (foundry, anthropic, etc.) extend core with specific integrations
  • The root agent_framework public API is lazy-loaded from packages/core/agent_framework/__init__.py and described for type checkers in packages/core/agent_framework/__init__.pyi; keep both plus __all__ in sync.
  • Core uses lazy loading via __getattr__ in provider folders (e.g., agent_framework/azure/)

Package Documentation

Core

  • core - Core abstractions, types, and built-in OpenAI/Azure OpenAI support

LLM Providers

  • anthropic - Anthropic Claude API
  • bedrock - AWS Bedrock
  • claude - Claude Agent SDK
  • foundry_local - Microsoft Foundry Local
  • ollama - Local Ollama inference

Azure Integrations

  • foundry - Microsoft Foundry chat, agent, memory, and embedding integrations
  • azure-contentunderstanding - Azure Content Understanding context provider
  • azure-ai-search - Azure AI Search RAG
  • azure-cosmos - Azure Cosmos DB for NoSQL vector, history, and checkpoint integrations

Durable Task and Azure Functions integrations are maintained in the Durable Agent Framework extension.

Protocols & UI

  • a2a - Agent-to-Agent protocol
  • hosting-a2a - A2A hosting conversion helpers
  • hosting-mcp - MCP hosting conversion helpers
  • ag-ui - AG-UI protocol
  • chatkit - OpenAI ChatKit integration
  • devui - Developer UI for testing

Storage & Memory

  • mem0 - Mem0 memory integration
  • redis - Redis storage

Infrastructure

  • copilotstudio - Microsoft Copilot Studio
  • declarative - YAML/JSON agent definitions
  • github_copilot - GitHub Copilot extensions
  • purview - Data governance

Experimental

  • lab - Experimental features; standalone uv project with its own lockfile
  • monty - Monty-backed CodeAct integrations (alpha)

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.