agentleFS
MicrosoftKnown publishermicrosoft/physical-ai-toolchain/.github/copilot-instructions.md

physical-ai-toolchain

Copilot instructions121 starsChanged 2 months agoMITView on GitHub

Essential development conventions for microsoft/physical-ai-toolchain.

The file

Show its rules and text

We split this copilot-instructions.md into the rules it gives an agent

14 rules. About 0 are common, 9 are distinctive, and 5 are 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.

  • 5

    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. Distinctive:

    Follow the affected area's existing conventions and scoped instructions.

    line 8
  2. Distinctive:

    Prefer coherent root-cause fixes across the affected solution.

    line 13
  3. Distinctive:

    Keep comments brief and factual.

    line 15
  4. Very specific:

    Do not modify vendored files in external/.

    line 16
  5. Distinctive:

    Follow derived-file conventions when updating hve-core-derived scripts.

    line 17
  6. Distinctive:

    Keep discovered Azure resource, subscription, and tenant identifiers, service endpoints, hostnames, and local paths out of tracked source, …

    line 21
  7. Very specific:

    Follow the environment-deployment skill to generate non-secret bundles under gitignored infrastructure/setup/generated/<environment>/.

    line 22
  8. Very specific:

    Use uv, not pip. Preserve the affected project's Python constraints.

    line 27
  9. Very specific:

    Put from __future__ import annotations first among imports.

    line 28
  10. Distinctive:

    Use focused tests and probes during development to refine logic and catch defects.

    line 34
  11. Distinctive:

    After completing a coherent behavior, run the relevant checks and supported automatic fixes before manually addressing remaining lint …

    line 35
  12. Very specific:

    Use the configured Markdown, TOML, table, and spelling checks.

    line 39
  13. Distinctive:

    Write natural, direct, reader-focused prose.

    line 43
  14. Distinctive:

    Follow the active RPI and HVE skill contracts for review, delegation, and validation.

    line 48

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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
copilot-instructions.md

Repository Instructions

Follow the affected area's existing conventions and scoped instructions. Use manifests, lockfiles, and tool configuration for current versions, commands, and lint rules rather than duplicating them here.

Editing

  • Preserve user changes and explicit scope limits. Do not add backward-compatibility layers unless requested.
  • Prefer coherent root-cause fixes across the affected solution. Refactor when SOLID, KISS, or clearer responsibilities improve the design; use "1, 2, refactor" as a checkpoint, not a requirement to invent abstractions.
  • You may fix concrete issues discovered outside the original request. Validate those fixes and report them separately; avoid speculative cleanup.
  • Keep comments brief and factual. Avoid narration and plan-phase markers.
  • Do not modify vendored files in external/.
  • Follow derived-file conventions when updating hve-core-derived scripts.

Environment Details

  • Keep discovered Azure resource, subscription, and tenant identifiers, service endpoints, hostnames, and local paths out of tracked source, tests, documentation, and defaults.
  • Follow the environment-deployment skill to generate non-secret bundles under gitignored infrastructure/setup/generated/<environment>/. Keep credentials, tokens, kubeconfigs, OSMO profiles, and Terraform state outside bundles and Git.
  • Preserve clearly documented placeholders and instructional network/resource examples; do not treat them as discovered deployment values.

Python

  • Use uv, not pip. Preserve the affected project's Python constraints.
  • Put from __future__ import annotations first among imports. Fully annotate function parameters and returns; do not annotate local variables.
  • Regenerate uv.lock after dependency changes. Do not hand-edit locks or commit derived flat requirements files.
  • Install source-aware LeRobot runtimes with uv sync --active --frozen --no-config --no-install-project. Preserve [tool.uv.sources], explicit CUDA indexes, and platform markers; other runtime paths derive dependencies with uv export --frozen --no-hashes --no-emit-project and install with --no-deps.

Validation

  • Use focused tests and probes during development to refine logic and catch defects.
  • After completing a coherent behavior, run the relevant checks and supported automatic fixes before manually addressing remaining lint issues. Avoid repeated per-file style cleanup while the behavior is still taking shape.
  • Respect configured exclusions; do not bypass them with alternate configurations or forced file selection. Keep review-only checks non-mutating and report unavailable or failed checks.
  • For Isaac runtime dependencies and evaluation images, check Python, NumPy, Torch, CUDA, cuDNN, and native-extension compatibility. Distinguish host checks from validation in the target GPU runtime.
  • Pin Azure ML environment assets to explicit versions derived from the checked-in image tag and digest. Keep workflow fallbacks and environment versions synchronized with scripts/update-image-digests.sh.
  • Use the configured Markdown, TOML, table, and spelling checks; table formatting and spelling are separate from lint:all.

Documentation

Write natural, direct, reader-focused prose. Avoid corporate filler, inflated claims, and repetitive structure. Improve problematic documentation as a whole, moving information to its appropriate home and updating links rather than only polishing sentences.

Agent Workflows

  • The primary agent writes and updates RPI plans; do not use RPI Planner subagents.
  • Follow the active RPI and HVE skill contracts for review, delegation, and validation. Respect the user's model selection rather than requiring a repository-specific model or local plugin.
  • Cloud agents use the pinned RPI skill bootstrap, not the retired umbrella agents. Before cloud RPI work, verify required skill files, their metadata.github-pinned values against RPI_SKILLS_REF, and the generated tracking instruction. Stop on an incomplete bootstrap.
  • In cloud-agent PR work, persist completed RPI phases as PR comments and maintain an artifact index with the resolved upstream SHA in the PR description. If PR writes are unavailable, return the complete phase artifacts without claiming persistence.
  • Apply scoped dataviewer and OpenVEX instructions when those areas are affected, and call out AzureRM provider major-version changes explicitly.

Companion Library

microsoft/physical-ai-toolchain-skills enables agentic scenarios for this toolchain. When working across repositories, locate its checkout and follow its AGENTS.md and relevant capability contracts. Do not assume a fixed skill inventory or copy implementations between repositories.

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.