langchain-azure / azure-ai
AGENTS.md147 starsChanged 3 months agoMITView on GitHub
Apply these instructions to libs/azure-ai/ in addition to the repository instructions. When working on agent hosting, consult these upstream SDK implementations as needed:
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,736 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 repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- samples/deepagents-storage-backend/mortgage-processing/AGENTS.mdAGENTS.md
- libs/azure-cosmosdb/.github/copilot-instructions.mdCopilot instructions
- libs/azure-postgresql/.github/copilot-instructions.mdCopilot instructions
- code-reviewSkill
- release-notesSkill
- document-classificationSkill
- mortgage-fact-extractionSkill
- mortgage-underwritingSkill
- packet-intakeSkill
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 0 are common, 9 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Keep implementations concise, focused, and self-documenting through descriptive names, precise type hints, and straightforward control flow.
- Distinctive: line 9
Keep internal comments sparse.
- Distinctive: line 13
Treat public APIs as downstream compatibility contracts.
- Distinctive: line 14
Before exposing or changing an API, work through downstream usage, edge cases, error handling, sync/async behavior, and compatibility with …
- Distinctive: line 16
Every public API, class, and method must have complete Google-style docstrings.
- Very specific: line 21
Ensure extensions work across the Python versions required by the repository instructions and the upstream dependency ranges declared in …
- Distinctive: line 26
When working on agent hosting, consult these upstream SDK implementations as needed:
- Distinctive: line 34
Add a focused regression test that reproduces the bug using the existing test suite and conventions.
- Distinctive: line 35
Run it and confirm it fails for the expected reason before changing the implementation.
- Distinctive: line 40
When you discover outdated guidance in an applicable AGENTS.md, verify it against the current codebase and authoritative documentation, …
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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
langchain-azure-ai Instructions
Apply these instructions to libs/azure-ai/ in addition to the repository instructions.
Code Quality
- Keep implementations concise, focused, and self-documenting through descriptive names, precise type hints, and straightforward control flow. Preserve correctness and clarity when simplifying code.
- Reuse existing helpers and upstream abstractions; add new abstractions only when they solve a concrete need.
- Keep internal comments sparse. Explain non-obvious rationale or constraints rather than narrating what the code does.
Public APIs and Documentation
- Treat public APIs as downstream compatibility contracts. Preserve existing import paths, signatures, defaults, return types, and documented behavior; prefer backward-compatible changes.
- Before exposing or changing an API, work through downstream usage, edge cases, error handling, sync/async behavior, and compatibility with upstream contracts. Cover affected public behavior with tests.
- Obtain explicit approval before intentional breaking changes, and provide a deprecation or migration path.
- Every public API, class, and method must have complete Google-style docstrings. Document purpose, parameters and defaults, return values, raised exceptions, and important behavior or constraints as applicable; include usage examples where helpful.
Upstream Alignment and Compatibility
- Align class design, naming, interfaces, and extension patterns with the corresponding LangChain or LangGraph abstractions. Prefer supported upstream extension points over private implementation details.
- Ensure extensions work across the Python versions required by the repository instructions and the upstream dependency ranges declared in pyproject.toml. Check feature availability before relying on version-specific APIs or syntax.
- Consult the upstream documentation and relevant implementations when designing integrations or when API contracts or compatibility are uncertain. Verify behavior against the supported versions, not only the latest release.
Agent Hosting
When working on agent hosting, consult these upstream SDK implementations as needed:
Bug Fixes
- Add a focused regression test that reproduces the bug using the existing test suite and conventions.
- Run it and confirm it fails for the expected reason before changing the implementation.
- Make the smallest corrective change, then rerun the regression test and relevant existing tests until they pass.
Instruction Maintenance
- When you discover outdated guidance in an applicable
AGENTS.md, verify it against the current codebase and authoritative documentation, then update or remove the stale content as part of the task.
References
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.

