agentleFS
MicrosoftKnown publishermicrosoft/nvx/.github/copilot-instructions.md

nvx

Copilot instructions296 starsChanged 57 days agoMITView on GitHub

- The integration repository is microsoft/nvx, and its default branch is dev. The nanvix/nvx repository is archived; do not create new branches or pull requests there. Verify configured remotes before pushing. - openvmm/ is a Git submodule sourced from nanvix/openvmm. For OpenVMM source changes, work in the nested repository and follow its instructions. For an NVX pin promotion, use the nvx-openvmm-promote skill and keep the superproject change gitlink-only unless the task explicitly requires coordinated NVX changes. - Preserve dirty state…

The file

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

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Run python3 scripts/nvx.py verify on Linux or python scripts\nvx.py verify on Windows before build, run, debug, or benchmark work.

    line 18
  2. Very specific:

    Use nvx-host-connect before remote work, then exactly one of nvx-run, nvx-debug, or nvx-benchmark.

    line 39
  3. Very specific:

    When CI has cached them for the checked-out inputs, it also restores the guest artifacts into build/ and the KVM OpenVMM binary into …

    line 53
  4. Distinctive:

    Ask whether a pull request should be Draft or Ready before creating it.

    line 84

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

NVX Repository Instructions

Repository Boundaries

  • The integration repository is microsoft/nvx, and its default branch is dev. The nanvix/nvx repository is archived; do not create new branches or pull requests there. Verify configured remotes before pushing.
  • openvmm/ is a Git submodule sourced from nanvix/openvmm. For OpenVMM source changes, work in the nested repository and follow its instructions. For an NVX pin promotion, use the nvx-openvmm-promote skill and keep the superproject change gitlink-only unless the task explicitly requires coordinated NVX changes.
  • Preserve dirty state in both repositories. Do not reset, clean, switch, update, or synchronize the submodule over uncommitted work.

Validation

  • Run python3 scripts/nvx.py verify on Linux or python scripts\nvx.py verify on Windows before build, run, debug, or benchmark work.
  • Treat check-quality and validate-nvx as the authoritative local quality and CLI test definitions. Start with the narrowest affected test, then run the applicable commands from those actions.
  • For changes under aci_edge_sandboxes/, run the commands in check-aci-edge-sandboxes, which need no hypervisor. scripts/nvx.py test-aci-edge-sandboxes exercises the crate on a real hypervisor.
  • OpenVMM source changes also require the package-scoped checks prescribed by the nested repository. Do not claim unavailable hardware or cross-platform gates passed; report the missing prerequisite and rely on CI when appropriate.

Platforms And Hosts

  • Linux supports kvm or mshv; Windows supports only whp. Select one backend explicitly for runtime operations.
  • A performance platform is <os>-<backend>-<host-type>. The Azure CI runners are virtual-machine; configured SSH profiles use the host_type returned by .github/skills/nvx-host-connect/scripts/hosts.py. For local measurements, ask for the host type when it is not explicit. Never default it to baremetal.
  • Use nvx-host-connect before remote work, then exactly one of nvx-run, nvx-debug, or nvx-benchmark. Never expose .nvx-hosts.json or authentication material.

Copilot Cloud Agent Sessions

  • Sessions started from GitHub, such as from an issue, a pull request, or the agents panel, run on a GitHub-hosted Ubuntu runner that copilot-setup-steps prepares. It initializes openvmm/; installs requirements-dev.txt into a Python virtual environment on PATH, Rust stable with the OpenVMM test targets, the aci_edge_sandboxes toolchains, cargo-nextest, and the native guest build prerequisites; grants /dev/kvm access; pulls the pinned shell linter images; and stages the pinned Linux and Ubuntu Base archives in .cache/downloads. When CI has cached them for the checked-out inputs, it also restores the guest artifacts into build/ and the KVM OpenVMM binary into openvmm/target/release/openvmm. NVX_COPILOT_SETUP is complete when every setup step succeeded; otherwise it is incomplete and NVX_COPILOT_SETUP_FAILED lists the failed step IDs from that workflow.
  • The session ends 59 minutes after it starts, setup included, on 4 vCPUs. Run the narrowest affected check first. Rebuild OpenVMM, which takes about 5 minutes and 4 GB, only when the openvmm gitlink changed or the cached binary is missing, and guest artifacts only when their inputs changed. Leave test-openvmm-unit, test-openvmm, build-guest --guest all, verify-guest-determinism, and benchmark to CI.
  • Build trees are large. Check df -h . before a build, keep one OpenVMM build profile at a time, and delete trees you no longer need with cargo clean or docker builder prune -af. The setup disables incremental compilation and limits Cargo debug info to line tables to save space.
  • The agent firewall allows GitHub, crates.io, rustup, PyPI, npm, Docker Hub, MCR, and the Debian, Ubuntu, and Alpine package archives. It blocks other hosts, such as cdn.kernel.org and cdimage.ubuntu.com, even inside containers, so Docker-based build-guest cannot download Linux. Rebuild guest artifacts natively from the staged archives with python3 scripts/nvx.py build-guest --native, which takes about 5 minutes, adding --guest ubuntu for the Ubuntu guest. Do not retry blocked downloads; rely on CI for inputs that remain blocked.
  • With KVM access, run affected microVM scenarios with python3 scripts/nvx.py test-microvm --backend kvm --scenario NAME, passing only the --processors counts the change needs, and aci_edge_sandboxes backend changes with python3 scripts/nvx.py test-aci-edge-sandboxes --backend kvm. MSHV and WHP are never available there.

Pull Requests And CI

  • Ask whether a pull request should be Draft or Ready before creating it. Draft pull requests skip CI jobs; opening or marking a pull request ready starts the matrix. Converting an active pull request to draft does not cancel its existing run. Prefer Draft for workload-affecting changes until local deterministic gates pass.
  • Pull-request concurrency cancels superseded runs. Before debugging a cancelled run, compare its head SHA with the current pull-request head and classify an expected supersession separately from a failure. Use nvx-ci-investigation for failed or unexpectedly cancelled runs.
  • Pull-request runs must not publish development releases or persist performance history. Successful dev pushes own those operations. Do not manually edit data/*.csv unless the task explicitly concerns baseline maintenance.

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.