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…
In this repository12 other files it gives its agents.
- address-pr-commentsSkill
- agentic-workflowsSkill
- commit-messageSkill
- create-prSkill
- nvx-benchmarkSkill
- nvx-ci-investigationSkill
- nvx-debugSkill
- nvx-host-connectSkill
- nvx-openvmm-promoteSkill
- nvx-runSkill
- rebase-and-validateSkill
- review-changesSkill
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
- Very specific: line 18
Run python3 scripts/nvx.py verify on Linux or python scripts\nvx.py verify on Windows before build, run, debug, or benchmark work.
- Very specific: line 39
Use nvx-host-connect before remote work, then exactly one of nvx-run, nvx-debug, or nvx-benchmark.
- Very specific: line 53
When CI has cached them for the checked-out inputs, it also restores the guest artifacts into build/ and the KVM OpenVMM binary into …
- Distinctive: line 84
Ask whether a pull request should be Draft or Ready before creating it.
≈ “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.
Files
NVX Repository Instructions
Repository Boundaries
- The integration repository is
microsoft/nvx, and its default branch isdev. Thenanvix/nvxrepository is archived; do not create new branches or pull requests there. Verify configured remotes before pushing. openvmm/is a Git submodule sourced fromnanvix/openvmm. For OpenVMM source changes, work in the nested repository and follow its instructions. For an NVX pin promotion, use thenvx-openvmm-promoteskill 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 verifyon Linux orpython scripts\nvx.py verifyon 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-sandboxesexercises 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
kvmormshv; Windows supports onlywhp. Select one backend explicitly for runtime operations. - A performance platform is
<os>-<backend>-<host-type>. The Azure CI runners arevirtual-machine; configured SSH profiles use thehost_typereturned 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 tobaremetal. - Use
nvx-host-connectbefore remote work, then exactly one ofnvx-run,nvx-debug, ornvx-benchmark. Never expose.nvx-hosts.jsonor 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/; installsrequirements-dev.txtinto a Python virtual environment onPATH, Rust stable with the OpenVMM test targets, theaci_edge_sandboxestoolchains, cargo-nextest, and the native guest build prerequisites; grants/dev/kvmaccess; 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 intobuild/and the KVM OpenVMM binary intoopenvmm/target/release/openvmm.NVX_COPILOT_SETUPiscompletewhen every setup step succeeded; otherwise it isincompleteandNVX_COPILOT_SETUP_FAILEDlists 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
openvmmgitlink changed or the cached binary is missing, and guest artifacts only when their inputs changed. Leavetest-openvmm-unit,test-openvmm,build-guest --guest all,verify-guest-determinism, andbenchmarkto 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 withcargo cleanordocker 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.organdcdimage.ubuntu.com, even inside containers, so Docker-basedbuild-guestcannot download Linux. Rebuild guest artifacts natively from the staged archives withpython3 scripts/nvx.py build-guest --native, which takes about 5 minutes, adding--guest ubuntufor 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--processorscounts the change needs, andaci_edge_sandboxesbackend changes withpython3 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-investigationfor failed or unexpectedly cancelled runs. - Pull-request runs must not publish development releases or persist performance
history. Successful
devpushes own those operations. Do not manually editdata/*.csvunless the task explicitly concerns baseline maintenance.
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.

