mxc
Copilot instructions1.4k starsChanged 59 days agoMITView on GitHub
MXC (Microsoft eXecution Container) is a cross-platform sandboxed code execution system. Prefer precise, scoped changes and preserve existing platform behavior, feature gates, wire compatibility, and failure semantics. The Rust toolchain is pinned by src/rust-toolchain.toml. Run Rust commands from src/ or pass --manifest-path src/Cargo.toml. Prefer the smallest test command covering the change. Host-dependent backend suites live under tests/scripts/; use the applicable backend guide and docs/ci-validation-infrastructure.md before running or changing them. - Production parsing dispatches through exact closed contracts and their version-specific…
Trending
Less talk lately.about the whole repository
Who's talking about microsoft/mxc
- @sungkim.bsky.social“Surprisingly, this is cross-platform. Microsoft eXecution Container (MXC) MXC is a sandboxed code execution …”Bluesky · Jun 6, 2026 · 85 likes
- golang/go“syscall: update Windows SysProcAttr for recent process creation features”GitHub · Jul 15, 2026 · 4 reactions
- A Hacker News story“Microsoft Execution Containers (MXC)”Hacker News · Jun 2, 2026 · 3 points
- @arsalan-zaidi.mastodon.social.ap.brid.gy“Microsoft eXecution Containers (MXC) are an opensource, cross platform execution sandbox for running …”Bluesky · Aug 12, 2026 · 2 likes
- A Hacker News story“Microsoft EXecution Container (MXC)”Hacker News · Jun 4, 2026 · 2 points
The biggest 5 of 24 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 24
Talked about on GitHub, Bluesky and Hacker News (24 times).
On GitHub · 16
- Jul 15, 2026syscall: update Windows SysProcAttr for recent process creation features — golang/go4 reactions · 30 comments
- Oct 4, 2026feat(node): honor the typed system.run execution context — openclaw/openclaw-windows-node1 reaction · 2 comments
- Jul 7, 2026System requirement doc for different Platform of sandboxing feature — github/copilot-cli1 reaction
- Jun 26, 2026feat(mxc): add Windows MXC sandbox backend — openclaw/openclaw1 reaction · 47 comments
- Oct 2, 2026Spike: qualify MXC Hyperlight rich Python continuity and durable recovery — sokolaidev/maf-extensions0 reactions · 4 comments
11 more on GitHub
- Oct 2, 2026Integrate rich Python through MXC Hyperlight with optional durable sessions — sokolaidev/maf-extensions0 reactions
- Sep 14, 2026[Draft prototype] Known-tool policy catalog (Policy Store design) — ChazGo/mxc0 reactions
- Sep 4, 2026Bundle mxc for Windows — openkaiden/kaiden0 reactions · 3 comments
- Aug 12, 2026Decide production agent sandbox framework: AppContainer, OpenClaw Docker, or MXC — microsofthackathons/MicroClaw0 reactions · 1 comment
- Aug 12, 2026[Windows] Avoid per-run recursive ACL propagation; add BFS and prepared-workspace backends — landstrip/landstrip0 reactions · 2 comments
- Aug 5, 2026Can't create Sandbox on Windows when BaseContainer is velocity-gated and bfscfg.exe is unavailable — microsoft/vscode0 reactions · 4 comments
- Jul 16, 2026Experimenting with AppContainers — hugsy/pwn--0 reactions
- Jun 18, 2026feat: MXC sandbox integration for contained local code execution — microsoft/entrabot0 reactions · 1 comment
- Jun 8, 2026docs: MXC (Microsoft Execution Containers) platform research — microsoft/entrabot0 reactions
- Jun 6, 2026Research MXC as opt-in sandbox backend for scoped shell execution; evaluate MCP enforcement separately — ZaxbyHub/opencode-swarm0 reactions · 3 comments
- May 21, 2026Enable sandboxing in windows using MXC SDK — microsoft/vscode0 reactions · 1 comment
On Bluesky · 6
- Jun 6, 2026Surprisingly, this is cross-platform. Microsoft eXecution Container (MXC) MXC is a sandboxed code execution system for running untrusted… — @sungkim.bsky.social85 likes and reposts · 5 replies
- Aug 12, 2026Microsoft eXecution Containers (MXC) are an opensource, cross platform execution sandbox for running untrusted code (esp. AI agents). Still… — @arsalan-zaidi.mastodon.social.ap.brid.gy2 likes and reposts
- Oct 3, 2026Cooooooomplicated af to say the least. We've been building out a ton of functionality on this front through MXC as well as Windows… — @syfuhs.net1 likes and repost
- Jun 6, 2026📦 microsoft / mxc ⭐ 469 (+57) 🗒 Rust Policy-driven, layered isolation and containment — @github-trending.bsky.social1 likes and repost
- Jun 5, 2026WindowsやLinuxなどで信頼できないコードを安全に動かせるサンドボックス実行環境らしい マルチプラットフォーム対応でセキュリティ強化に役立ちそうかも yug1224 starred microsoft/mxc… — @yug1224.com1 likes and repost
1 more on Bluesky
- Jun 8, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 microsoft / mxc ⭐ 753 (+211) 🗒 Rust Policy-driven, layered isolation and containment — @github-trending-rs.bsky.social0 likes and reposts · 1 reply
On Hacker News · 2
- Jun 2, 2026Microsoft Execution Containers (MXC)3 points
- Jun 4, 2026Microsoft EXecution Container (MXC)2 points
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
16 rules. About 0 are common, 9 are distinctive, and 7 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.
7
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
- Distinctive: line 7
Read the documentation for the affected subsystem.
- Very specific: line 8
Follow any matching file-scoped instructions under .github/instructions/.
- Distinctive: line 10
Do not hand-edit generated files or released schemas.
- Distinctive: line 11
Do not silently ignore unsupported policy.
- Very specific: line 18
Keep wxc, lxc, and mxc_darwin thin.
- Very specific: line 19
Keep build-time staging in mxc_build_common or nanvix_build_common, not runtime crates.
- Very specific: line 20
Use #[cfg(target_os = "...")] and existing Cargo feature gates for platform-specific code.
- Very specific: line 64
Prefer the smallest test command covering the change.
- Very specific: line 76
Never edit schemas/stable/.
- Distinctive: line 77
Never hand-edit generated development schemas or generated TypeScript wire types.
- Distinctive: line 94
Do not weaken validation or convert failures into success-shaped fallbacks.
- Distinctive: line 99
Update documentation in the same change when behavior changes:
- Distinctive: line 109
Do not duplicate detailed backend behavior here.
- Distinctive: line 113
Use the repository templates as the source of truth:
- Distinctive: line 118
When creating issues through an API, explicitly set the issue type and these exact labels:
- Very specific: line 127
Do not fabricate missing required issue fields.
≈ “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
MXC Copilot Instructions
MXC (Microsoft eXecution Container) is a cross-platform sandboxed code execution system. Prefer precise, scoped changes and preserve existing platform behavior, feature gates, wire compatibility, and failure semantics.
Before changing code
- Read the documentation for the affected subsystem. Start with the references below rather than inferring behavior from names.
- Follow any matching file-scoped instructions under
.github/instructions/. - Inspect nearby code and tests before editing. Reuse existing abstractions and error types.
- Do not hand-edit generated files or released schemas.
- Do not silently ignore unsupported policy. Reject it before creating a sandbox.
Architecture invariants
wxc_commonis the cross-platform foundation. Do not move backend execution or enforcement into it, or add new backend implementation dependencies.- Backend crates generally depend on
wxc_common; avoid cross-dependencies between backend crates. The existing optionalnanvix_commondependency supplies shared MicroVM data/constants rather than backend dispatch. mxc_engineis the single execution engine. Executor binaries andmxc-sdkdelegate backend routing to it.- Keep
wxc,lxc, andmxc_darwinthin. Do not add backend-selection matches to the binaries. - Keep build-time staging in
mxc_build_commonornanvix_build_common, not runtime crates. - Use
#[cfg(target_os = "...")]and existing Cargo feature gates for platform-specific code. - Preserve the distinction between run-to-completion, streaming, and state-aware lifecycle APIs.
- Unsupported policy must fail closed. Do not accept a field that the selected backend cannot enforce.
See:
docs/schema.mddocs/versioning.mddocs/state-aware-lifecycle/mxc-state-aware-sandbox-api.mddocs/ci-validation-infrastructure.md- The relevant backend guide under
docs/
Build and validation
The Rust toolchain is pinned by src/rust-toolchain.toml. Run Rust commands from src/ or pass --manifest-path src/Cargo.toml.
Builds
build.bat
./build.sh
./build-mac.shTargeted validation
# From src/
cargo fmt --all -- --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
cargo test -p wxc_common
cargo test -p wxc_common -- config_parser
# From sdk/node/
npm test
npm run test:integration
# From sdk/dotnet/ (requires .NET SDK 10+)
dotnet test --solution Microsoft.Mxc.Sdk.slnxPrefer the smallest test command covering the change. Host-dependent backend suites live under tests/scripts/; use the applicable backend guide and docs/ci-validation-infrastructure.md before running or changing them.
Schema and policy rules
- Production parsing dispatches through exact closed contracts and their
version-specific adapters into private
CommonRequestIRnormalization input. - Preserve optional-field presence through parsing and binding. Apply defaults and semantic validation in the backend.
- New features use their intended permanent JSON location in the exact
development contract. JSON placement, publication eligibility, and runtime
experimental authorization are separate. Update the matching closed request
types, adapt them into
CommonRequestIRor a phase-specific runtime config, and regenerate the registered exact schema and TypeScript artifacts. - Never edit
schemas/stable/; released schemas are immutable. - Never hand-edit generated development schemas or generated TypeScript wire types.
schemas/schema-version.jsonis the canonical source for compatibility constants.- In the .NET SDK (
sdk/dotnet/), every serialized or deserialized wire type must be registered as a[JsonSerializable]root inMxcJsonContext(MxcJsonSerialization.cs) and routed through theMxcJsonhelpers, so the source-generated resolver is used and no path falls back to reflection. When you add or change such a type or an options object, add a matching serialize/deserialize check toMicrosoft.Mxc.Sdk.AotSmokeTest; its CI AOT publish gate fails on any reflection-dependent path.
See docs/schema-codegen.md for regeneration commands.
Error and security behavior
- Surface errors explicitly using repository error types and include actionable context.
- Preserve panic containment across
mxc_ffi; no panic may unwind through the C ABI. - Preserve exact resource ownership and cleanup contracts, especially for processes, jobs, traces, sessions, and native handles.
- Do not weaken validation or convert failures into success-shaped fallbacks.
- Telemetry is Windows-only, requires explicit user consent, and fails closed. Administrative policy may restrict consent but may never grant it. See
docs/telemetry/.
Documentation
Update documentation in the same change when behavior changes:
- Schema or config fields:
docs/schema.mdand the applicable generated development artifacts. - Experimental features:
docs/authoring-a-new-feature.md. - Versioning or promotion:
docs/versioning.md. - Backend behavior: the corresponding guide under
docs/. - SDK APIs: the affected SDK README/API documentation.
- Telemetry:
docs/telemetry/. - CI validation:
docs/ci-validation-infrastructure.md.
Do not duplicate detailed backend behavior here. Keep the canonical explanation in the subsystem documentation.
Issues and pull requests
Use the repository templates as the source of truth:
- Issues:
.github/ISSUE_TEMPLATE/ - Pull requests:
.github/PULL_REQUEST_TEMPLATE.md
When creating issues through an API, explicitly set the issue type and these exact labels:
| Category | Type | Labels |
| Bug report | Bug | Issue-Bug, Needs-Triage |
| Feature request | Feature | Issue-Feature, Needs-Triage |
| Documentation issue | Task | Issue-Docs, Needs-Triage |
| Task | Task | Issue-Task, Needs-Triage |
Do not fabricate missing required issue fields. For security issues or BSODs, do not attach dumps, logs, or traces to a public GitHub issue; direct sensitive material to secure@microsoft.com and reference the issue.
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.

