hyperlight
Copilot instructions4.7k starsChanged 8 months agoApache-2.0View on GitHub
Hyperlight is a lightweight Virtual Machine Manager (VMM) embedded within applications to run untrusted code inside micro virtual machines with very low latency and minimal overhead. Mostly Rust, with a few C files. just is the task runner and is already installed. Most recipes take an optional profile argument that defaults to debug. Append release for a release build (e.g. just build release). You rarely need to run both profiles for one change. * just build: build the host and…
We split this copilot-instructions.md into the rules it gives an agent
19 rules. About 0 are common, 17 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Before considering a change complete:
- Distinctive: line 40
Follow idiomatic Rust and match the surrounding code style.
- Distinctive: line 41
Do not add new crates or dependencies without discussing first.
- Distinctive: line 44
Do not commit large binary files.
- Distinctive: line 52
Use the fewest words that make the point.
- Distinctive: line 58
No em dashes or hyphens as prose connectors.
- Distinctive: line 59
No semicolons. Use periods.
- Very specific: line 60
Prefer * over - for bullets.
- Distinctive: line 63
Write what the thing IS and WHY.
- Distinctive: line 65
Avoid contrastive language ("no longer", "previously", "instead of", "used to", "now", "just").
- Distinctive: line 67
Avoid diff narration ("moved from", "extracted from", "X drops here").
- Distinctive: line 68
No PR or review references unless permanently relevant.
- Distinctive: line 73
Keep comments that explain a non-obvious mechanism or a real WHY.
- Distinctive: line 74
Default 1-2 sentences for a docstring, 1 short line for an inline comment.
- Distinctive: line 75
If it does not fit, the code probably needs to be simpler.
- Distinctive: line 80
Keep commits small, focused, and in logical order.
- Very specific: line 86
When reviewing a diff (your own or a PR), weight these for Hyperlight:
- Distinctive: line 96
If nothing exercises it, say so, and prefer the simpler form.
- Distinctive: line 111
When the user asks a question, analyze and answer only.
≈ “Common” is an estimate: at least 1 in 5 of the 3,669 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
Hyperlight: Copilot instructions
Hyperlight is a lightweight Virtual Machine Manager (VMM) embedded within
applications to run untrusted code inside micro virtual machines with very low
latency and minimal overhead. Mostly Rust, with a few C files. just is the
task runner and is already installed.
Build & test commands
Most recipes take an optional profile argument that defaults to debug. Append
release for a release build (e.g. just build release). You rarely need to
run both profiles for one change.
just build: build the host and libraries.just guests: build the guest library and test guests (both profiles).just test: run all tests.just fmt-apply: format and apply fixes.just clippy: lint.just clippyw: cross-compile clippy for Windows. Run it on Linux when you edit Windows-specific code.just test-like-ci: full CI-equivalent run. Slow.
Run just guests before just test when you've changed guest code.
Tests use the prebuilt guest binaries, so rebuild them to pick up guest
changes. Not needed if you only touched host code.
Definition of done
Before considering a change complete:
just fmt-apply.just clippypasses.just testpasses. Runjust guestsfirst if you changed guest code. Tests are slow. Run the release profile too only when the change specifically warrants it.- New code has tests and rustdoc following existing patterns.
- Docs updated if behavior documented in
README.mdordocs/changed.
Code conventions
- Follow idiomatic Rust and match the surrounding code style.
- Do not add new crates or dependencies without discussing first.
- Maintain the existing structure and organization. Do not refactor beyond what the task requires.
- Do not commit large binary files.
Writing
Applies to all writing: code comments, docstrings, docs, commit messages, PR descriptions. Conciseness is the top rule. The rest serves it.
Be concise.
- Use the fewest words that make the point. No filler.
- Say each point once. Never restate the same idea in other words.
- Cut anything the reader can see in the code or context.
- Short plain sentences, one clause each. Common everyday words.
Mechanics.
- No em dashes or hyphens as prose connectors. Use periods or commas.
- No semicolons. Use periods.
- Prefer
*over-for bullets.
Say what IS, not what changed or what it isn't.
- Write what the thing IS and WHY. The reader has no knowledge of the diff that introduced it. Git history is where to learn what changed.
- Avoid contrastive language ("no longer", "previously", "instead of", "used to", "now", "just").
- Avoid diff narration ("moved from", "extracted from", "X drops here").
- No PR or review references unless permanently relevant.
Comment only when needed.
- Skip comments the code or a descriptive name already makes clear.
- A docstring that restates the function or test name is noise. Drop it.
- Keep comments that explain a non-obvious mechanism or a real WHY.
- Default 1-2 sentences for a docstring, 1 short line for an inline comment. If it does not fit, the code probably needs to be simpler.
Git & commits
- Sign commits (
commit.gpgsign=true) and add--signofffor DCO. - Keep commits small, focused, and in logical order.
- Rebase your branch on
main. No merge commits. - Label PRs per
docs/github-labels.md.
Reviewing code
When reviewing a diff (your own or a PR), weight these for Hyperlight:
- Correctness: edge cases, error paths, broken invariants.
- Security boundary: the VMM/guest split, paging, and syscall surface. Treat all guest input as untrusted and watch for sandbox-escape risk.
- Unsafe: every
unsafeblock needs an accurate// SAFETY:comment and everyunsafe fna# Safetyrustdoc precondition. Check soundness: the block must uphold the invariants it claims. A fn isunsafe fnonly when a caller must uphold a precondition for memory safety. Flag both missing and gratuitousunsafe. - Necessity: challenge each added abstraction, field, variant, parameter, branch. If nothing exercises it, say so, and prefer the simpler form.
- Design: judge the seams and boundaries the change draws (module/crate splits, what gets serialized, public vs private, where state lives). Prefer fitting an existing pattern over a parallel second way.
- Performance: review every change for cost. Look for work that can be dropped or made cheaper, including hot-path allocations, unnecessary copies, lock contention, syscalls, hypercalls.
- Idioms: do not reinvent what std or an existing dependency already provides.
- Changelog: user-facing changes need a
CHANGELOG.mdentry. Internal-only changes do not. - External APIs (Win32, POSIX, KVM/mshv/WHP): verify calls against the authoritative docs rather than from memory.
Agent behavior
- When the user asks a question, analyze and answer only. Do not edit code until explicitly asked.
Repository structure
src/hyperlight_common/: code shared between host and guest.src/hyperlight_guest/: hyperlight-guest library.src/hyperlight_guest_bin/: hyperlight-guest-bin library.src/hyperlight_guest_capi/: guest C library.src/hyperlight_host/: hyperlight-host library.src/hyperlight_testing/: shared test code.schema/: flatbuffer schemas.tests/: test guest code in C and Rust.dev/: development scripts and tools.fuzz/: fuzzing tests.Justfile: build/test/run tasks.
Troubleshooting
- "No Hypervisor was found for Sandbox" on Linux: check for a
kvmormshvdevice in/dev, and that you have rw access to it. Output the results of both checks for diagnostics.
Trending
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about hyperlight-dev/hyperlight
- cncf/sandbox“[Sandbox] Hyperlight”GitHub · Nov 15, 2024 · 16 reactions
- @david.justice.dev“Hey Folks, join us for our first public community meeting for github.com/hyperlight-d... on Wednesday Feb. …”Bluesky · Feb 3, 2025 · 14 likes
- @bearstech.com“Hyperlight : un gestionnaire Open Source de machines virtuelles minimalistes conçu pour être intégré …”Bluesky · Mar 31, 2025 · 12 likes
- @devshorts.in“OSS Highlight: Hyperlight A lightweight VMM built in Rust to safely run untrusted code in secure micro VMs, …”Bluesky · Apr 12, 2025 · 9 likes
- @squillace.bsky.social“See, now, uh github.com/hyperlight-d... for an un-microvm”Bluesky · Oct 23, 2026 · 3 likes
The biggest 5 of 44 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 44
Talked about on GitHub, Bluesky and Hacker News (44 times).
On GitHub · 27
- Nov 15, 2024[Sandbox] Hyperlight — cncf/sandbox16 reactions · 29 comments
- Nov 13, 2024[META] Replace Java Security Manager (JSM) — opensearch-project/OpenSearch2 reactions · 1 comment
- Jul 15, 2026Integrate hyperlight for untrusted code/mcp exec — mbianchidev/sendbox1 reaction
- Aug 21, 2025Fixes FP rounding issue, adds tests and uses cargo hyperlight for building wasm_runtime — hyperlight-dev/hyperlight-wasm1 reaction · 10 comments
- Oct 29, 2026Schedule runtime adapters design meeting — hyperlight-dev/meetings0 reactions
22 more on GitHub
- Oct 27, 2026Bump hyperlight-host from 0.17.0 to 0.18.0 — hyperlight-dev/hyperlight-sandbox0 reactions
- Oct 26, 2026Install LLVM 18 from the Ubuntu archive — hyperlight-dev/ci-setup-workflow0 reactions · 2 comments
- Oct 26, 2026Weekly verification 2026-W44 — 167 ok / 0 quarantined / 0 recovered / 3 dead / 5 migrated — jdg2896/agentic-engineering0 reactions
- Oct 22, 2026chore(deps): Bump the hyperlight group across 1 directory with 4 updates — hyperlight-dev/hyperagent0 reactions
- Oct 20, 2026build(deps): Bump hyperlight-common from 0.17.0 to 0.18.0 — simongdavies/openshell-hyperlight0 reactions
- Oct 20, 2026build(deps): Bump hyperlight-host from 0.17.0 to 0.18.0 — simongdavies/openshell-hyperlight0 reactions
- Oct 20, 2026build(deps): Bump hyperlight-component-macro from 0.17.0 to 0.18.0 — simongdavies/openshell-hyperlight0 reactions
- Oct 19, 2026Weekly verification 2026-W43 — 172 ok / 0 quarantined / 0 recovered / 3 dead / 0 migrated — jdg2896/agentic-engineering0 reactions
- Oct 1, 2026Report complete snapshot host-resource requirements — hyperlight-dev/hyperlight-js0 reactions
- Sep 30, 2026Forward restorer build configuration when constructing a sandbox from a snapshot — hyperlight-dev/hyperlight-js0 reactions
- Sep 3, 2026Can't update to wasmtime 48 — hyperlight-dev/hyperlight-wasm0 reactions
- Sep 1, 2026chore(deps): Bump hyperlight-guest-bin from 0.16.0 to 0.17.0 in /src/code-validator/guest — hyperlight-dev/hyperagent0 reactions · 1 comment
- Sep 1, 2026chore(deps): Bump hyperlight-guest from 0.16.0 to 0.17.0 in /src/code-validator/guest — hyperlight-dev/hyperagent0 reactions · 1 comment
- Sep 1, 2026chore(deps): Bump hyperlight-host from 0.16.0 to 0.17.0 in /src/code-validator/guest — hyperlight-dev/hyperagent0 reactions · 1 comment
- Sep 1, 2026chore(deps): Bump hyperlight-common from 0.16.0 to 0.17.0 in /src/code-validator/guest — hyperlight-dev/hyperagent0 reactions
- Aug 30, 2026Publish .NET sandbox packages for macOS Apple Silicon — hyperlight-dev/hyperlight-sandbox0 reactions · 3 comments
- Jul 18, 2026Spike: hardware-isolated WASM fast-lane tier via Hyperlight — vibed-project/vibeD0 reactions
- Jun 20, 2026Tracking: Hyperlight Azure VM demo lab (plan + progress) — nthewara/hyperlight-azure-demo0 reactions · 2 comments
- Apr 29, 2026Update hyperlight maintainers — cncf/foundation0 reactions · 12 comments
- Mar 31, 2026Further consolidation of wasi interfaces and sharing it across backends — hyperlight-dev/hyperlight-sandbox0 reactions
- May 6, 2025Using micro virtualization when CPU emulation is not required — danoon2/Boxedwine0 reactions · 1 comment
- Mar 26, 2025macOS support — hyperlight-dev/hyperlight-wasm0 reactions · 1 comment
On Bluesky · 15
- Feb 3, 2025Hey Folks, join us for our first public community meeting for github.com/hyperlight-d... on Wednesday Feb. 5th at 9am PT… — @david.justice.dev14 likes and reposts
- Mar 31, 2025Hyperlight : un gestionnaire Open Source de machines virtuelles minimalistes conçu pour être intégré directement dans des applications. 👉… — @bearstech.com12 likes and reposts
- Apr 12, 2025OSS Highlight: Hyperlight A lightweight VMM built in Rust to safely run untrusted code in secure micro VMs, no full OS needed. Supports… — @devshorts.in9 likes and reposts
- Oct 23, 2026See, now, uh github.com/hyperlight-d... for an un-microvm — @squillace.bsky.social3 likes and reposts
- Mar 22, 2025github.com/hyperlight-d... seems cool — @ntauthority.me3 likes and reposts · 2 replies
10 more on Bluesky
- Nov 23, 2024github.com/hyperlight-d... Still very early but check it out. I'm sure once it's the engine of a service the devex will be better but I… — @madebygps.com3 likes and reposts · 1 reply
- Nov 8, 2024hyperlight is seriously impressive – 5ms to spin up, run, and teardown a vm. (and, assuming you're on an x86_64 machine, it's really… — @neversaw.us3 likes and reposts
- May 14, 2026github.com/hyperlight-d... — @kirillosenkov.com2 likes and reposts
- Jun 9, 2026📦 hyperlight-dev / hyperlight ⭐ 4,420 (+36) 🗒 Rust Hyperlight is a lightweight Virtual Machine Manager (VMM) designed to be embedded… — @github-trending-rs.bsky.social1 likes and repost
- Aug 26, 2025⭐️🔗 GitHub: github.com/hyperlight-d... 👉 Discuss with me in Discord: linktr.ee/qdrddr — @qdrddr.bsky.social1 likes and repost
- May 30, 2025hyperlight-dev / hyperlight: Hyperlight is a lightweight Virtual Machine Manager (VMM) designed to be embedded within applications. It… — @rusttrending.bsky.social1 likes and repost
- Feb 27, 2025Hyperlight is a library for creating micro virtual machines — or sandboxes — specifically optimized for securely running untrusted code… — @buherator.bsky.social1 likes and repost · 1 reply
- Nov 24, 2024have you seen this by the way? github.com/hyperlight-d... — @igo107.bsky.social1 likes and repost · 1 reply
- Nov 14, 2024Microsoft propose une µVM (similaire à un Unikernel) pour déployer du FAAS sur du KVM ou l'équivalent Windows Il est pour l'instant… — @athoune.bsky.social1 likes and repost
- Nov 11, 2024github.com/hyperlig... GitHub - hyperlight-dev/hyperlight: Hyperlight is a lightweight Virtual Machine Manager (VMM) designed to be… — @technews4869.bsky.social1 likes and repost
On Hacker News · 2
- Sep 29, 2025Hyperlight – lightweight VM Manager designed to be embedded within applications3 points
- May 20, 2025Hyperlight: A Lightweight Virtual Machine Manager2 points
Where files are headingNew Copilot instructions files have more rules about branches and pull requests, and fewer about code style.
Of the Copilot instructions files we read, the 2,297 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.
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.

