agentleFS
MicrosoftKnown publishermicrosoft/amplifier-smart-tool-digital-twin-universe/AGENTS.md

amplifier-smart-tool-digital-twin-universe

AGENTS.md0 starsChanged 2 months agoMITView on GitHub

This is a Smart Tool that must conform to Microsoft's Amplifier Smart Tool Spec.

  • 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 repositoryOne other file it gives its agents.

The file

Show its rules and text

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

20 rules. About 0 are common, 11 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If not already, set up the environment by following docs/DEVELOPMENT.md.

    line 5
  2. Very specific:

    After making changes, prek run --all-files and uv run pytest must pass before the work is done.

    line 6
  3. Distinctive:

    Every change to the library or CLI bumps the version: minor for breaking changes while below 1.0, patch otherwise.

    line 13
  4. Distinctive:

    Never modify this file unless explictly told.

    line 14
  5. Distinctive:

    When adding to existing documents, add only what's needed.

    line 19
  6. Distinctive:

    Do not restructure or rewrite existing content unless asked.

    line 20
  7. Distinctive:

    Always prefer code blocks and other formatting over tables.

    line 21
  8. Distinctive:

    Never write em dashes

    line 23
  9. Distinctive:

    Don't generate characters that a user could not type on a standard keyboard like fancy arrows (layout trees are fine)

    line 31
  10. Distinctive:

    Follow the Google Python Style Guide.

    line 34
  11. Very specific:

    NEVER add imports to __init__.py files.

    line 35
  12. Very specific:

    Always prefer pathlib for dealing with files.

    line 36
  13. Very specific:

    When using pathlib, always Use .parents[i] syntax to go up directories instead of using .parent multiple times.

    line 37
  14. Distinctive:

    When writing tests, use pytest and pytest-asyncio.

    line 38
  15. Distinctive:

    Prefer using loguru for logging instead of the built-in logging module.

    line 39
  16. Very specific:

    NEVER use # type: ignore. It is better to leave the issue and have the user work with you to fix it.

    line 40
  17. Distinctive:

    Don't put types in quotes unless it is absolutely necessary to avoid circular imports and forward references.

    line 41
  18. Very specific:

    When adding new dependencies, you must use uv add <package>.

    line 42
  19. Very specific:

    Run prek run --all-files when you are done with code changes and fix everything it reports.

    line 44
  20. Very specific:

    NEVER add a bare *, keyword-only marker to a function signature.

    line 45

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

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

This is a Smart Tool that must conform to Microsoft's Amplifier Smart Tool Spec.

Orientation

  • If not already, set up the environment by following docs/DEVELOPMENT.md. It also has every command for linting, formatting, type checking, testing, and running the conformance kit.
  • After making changes, prek run --all-files and uv run pytest must pass before the work is done.
  • docs/00-vision.md is the source of truth for what this tool is and is not, and docs/01-library.md for what it exposes. Then README.md and docs/DEVELOPMENT.md, then the rest of docs/. Both are written for people and stay concise. When work changes any of them, propose the doc updates at the end and call out contradictions.
  • The library is the tool. Every capability lives in the library and is reachable from lib.py. The CLI and any other surface are thin wrappers: argument parsing and I/O conventions, then a call into the library. Capability that exists only in a wrapper is a defect.
  • Each domain capability lives in capabilities/<name>/, with its prompts and templates beside its code. lib.py imports it and is the only place that does. core/ holds only what every smart tool has: the manifest and the skill.
  • Deterministic capabilities run with no model provider configured. Model-backed capabilities go through the Intelligence interface, never an SDK directly, and their help text says they are model-backed. They run through the agent provider agent_provider names, or the first installed, and default to that agent provider's model in DEFAULT_INTELLIGENCE_MODELS and DEFAULT_INTELLIGENCE_REASONING_EFFORT from schemas.py, exposing all three as parameters; never hardcode a model name.
  • Failures name what went wrong and how to fix it. The caller is usually an agent.
  • Once this tool has a remote, declare it in pyproject.toml under [project.urls] as Repository = "<url>". --help then carries it, so an agent that can run the tool but not read its files still finds the docs.
  • Every change to the library or CLI bumps the version: minor for breaking changes while below 1.0, patch otherwise. Run uv version --bump <part>, then set the same version in src/digital_twin_universe/SMART_TOOL.md and skills/digital-twin-universe/SKILL.md.
  • Never modify this file unless explictly told.

Writing Style

  • Be concise. The user will not read walls of text.
  • When adding to existing documents, add only what's needed.
  • Do not restructure or rewrite existing content unless asked.
  • Always prefer code blocks and other formatting over tables.
  • Match the tone and density of what's already in the file.
  • Never write em dashes

Python Development Instructions

  • This is a production-grade Python project using uv as the package and project manager. You must always follow best Python practices.
    • To figure out how uv works, start by using uv --help.
  • Make sure any comments in code are necessary. A necessary comment captures intent that cannot be encoded in names, types, or structure. Comments should be reserved for the "why", only used to record rationale, trade-offs, links to specs/papers, or non-obvious domain insights. They should add signal that code cannot.
  • The current code in the package should be treated as an example of high quality code. Make sure to follow its style and tackle issues in similar ways where appropriate.
  • Don't generate characters that a user could not type on a standard keyboard like fancy arrows (layout trees are fine)
  • Anything is possible. Do not blame external factors after something doesn't work on the first try. Instead, investigate and test assumptions through debugging through first principles.
  • ty by Astral is used for type checking. Always add appropriate type hints such that the code would pass ty's type check.
  • Follow the Google Python Style Guide.
  • NEVER add imports to init.py files. Leave them empty unless absolutely necessary.
  • Always prefer pathlib for dealing with files. Use Path.open instead of open.
  • When using pathlib, always Use .parents[i] syntax to go up directories instead of using .parent multiple times.
  • When writing tests, use pytest and pytest-asyncio.
  • Prefer using loguru for logging instead of the built-in logging module. Do not add logging unless requested.
  • NEVER use # type: ignore. It is better to leave the issue and have the user work with you to fix it.
  • Don't put types in quotes unless it is absolutely necessary to avoid circular imports and forward references.
  • When adding new dependencies, you must use uv add <package>. AFTER that, update the pyproject.toml to follow the convention for versions like the other dependencies.
  • To learn about how packages work, you should read from the relevant source code. This is especially important when determining which types to use.
  • Run prek run --all-files when you are done with code changes and fix everything it reports; it runs the lock, lint, format, and type checks.
  • NEVER add a bare *, keyword-only marker to a function signature. Write plain positional-or-keyword parameters and call them by keyword.

Key Files

@docs/DEVELOPMENT.md @docs/00-vision.md

References

reference/ holds the repositories to read rather than recall while developing this tool. They are shallow clones of the main branch only, always gitignored, and never discovered by tests, formatters, or type checks. uv run setup-for-dev.py clones any that are missing, so a fresh clone of this repository recovers them. The repositories are (add to the list as more are needed, the one exception to modifying this file):

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.