langchain-azure / azure-ai
AGENTS.md148 starsChanged 3 months agoMITView on GitHub
Apply these instructions to libs/azure-ai/ in addition to the repository instructions.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,266 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 repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- samples/deepagents-storage-backend/mortgage-processing/AGENTS.mdAGENTS.md
- samples/hosting/langgraph-hosted-agents/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
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
16 rules. About 0 are common, 15 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
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 directory and module organization consistent with existing conventions.
- Distinctive: line 10
Keep internal comments sparse.
- Distinctive: line 14
Keep feature PRs focused and reviewable.
- Distinctive: line 17
Prefer consistent behavior across existing and new feature paths.
- Distinctive: line 19
Before opening a PR, consider using an available AI tool to review the proposed changes for issues.
- Distinctive: line 20
After pushing new commits to any PR, review its title and description.
- Distinctive: line 24
Treat public APIs as downstream compatibility contracts.
- Distinctive: line 25
Before exposing or changing an API, work through downstream usage, edge cases, error handling, sync/async behavior, and compatibility with …
- Distinctive: line 27
Every public API, class, and method must have complete Google-style docstrings.
- Very specific: line 32
Ensure extensions work across the Python versions required by the repository instructions and the upstream dependency ranges declared in …
- Distinctive: line 39
When working on agent hosting, consult these upstream SDK implementations as needed:
- Distinctive: line 48
When adding or changing published-package examples, validate the affected examples with the documented versions and extras in a clean …
- Distinctive: line 53
Add a focused regression test that reproduces the bug using the existing test suite and conventions.
- Distinctive: line 54
Run it and confirm it fails for the expected reason before changing the implementation.
- Distinctive: line 59
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 45,344 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 directory and module organization consistent with existing conventions. Avoid excessively long files; split code by cohesive responsibilities when it improves readability and navigation, without unnecessary fragmentation.
- Keep internal comments sparse. Explain non-obvious rationale or constraints rather than narrating what the code does.
Change Scope and Reviewability
- Keep feature PRs focused and reviewable; exclude unrelated refactors, cleanup, and pre-existing bug fixes unless the feature requires them.
- Compare suspected issues against the PR base before reporting them; pre-existing issues are non-blocking unless the feature requires a fix.
- Understand the relevant call flow and change scope before reviewing details. Follow the requested focus, distinguish correctness findings from readability suggestions, and briefly state review coverage and limitations.
- Prefer consistent behavior across existing and new feature paths. If alignment expands scope, document temporary differences with TODOs for a follow-up PR. Accept deferral of unrelated fixes or alignment when the feature works correctly without regressions.
- When scope analysis shows a feature is too large for one reviewable PR, plan independently reviewable, working increments, each with its required tests and documentation. Record the plan and a TODO checklist in the relevant design or feature documentation, clearly separating the current PR's scope from deferred work.
- Before opening a PR, consider using an available AI tool to review the proposed changes for issues. This is optional and does not replace human review.
- After pushing new commits to any PR, review its title and description; update them as needed to describe the current scope, behavior, and validation results for reviewers, and remove outdated details from earlier revisions.
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
- Treat performance as a critical requirement when changing hosting code. Avoid unnecessary or duplicate reads and writes to storage backends, checkpoint stores, response stores, and other persistence layers. Reuse data already available within the same request or execution when safe, without weakening durability, consistency, or isolation guarantees.
When working on agent hosting, consult these upstream SDK implementations as needed:
Validation and Evidence
- Match validation to changed behavior and affected consumers, reusing existing tests and checks. In integration and sample checks, exercise real SDK interfaces and execution paths, mock external service boundaries as appropriate, and assert observable contract behavior.
- When adding or changing published-package examples, validate the affected examples with the documented versions and extras in a clean environment, and state any unreleased API prerequisites.
- Report checks actually performed, results, and material coverage limits; distinguish source inspection, local/mock checks, and live-service validation. Include the tested revision and relevant environment when needed to interpret or reproduce results.
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.

