arcbox / engine
AGENTS.md4.3k starsChanged 4 months agoApache-2.0View on GitHub
The embeddable, daemon-free engine library. Crates here are the platform-neutral core that three shells assemble: the macOS daemon (app/), the in-guest vm-agent, and (future) a bare-Linux node daemon. The restructure plan and its locked decisions live in docs/architecture/charter.md. - No app/ dependency, ever: nothing here may reference the daemon, CLI, API, or docker-compat crates, nor daemon artifacts (lock file, socket paths, startup pipeline). - No direct macOS-only dependency (arcbox-vz, arcbox-vmnet, arcbox-route, ifbridge): platform backends are reached only through the seam.…
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about arcboxlabs/arcbox
- A Hacker News story“ArcBox: From-Scratch Container Runtime for macOS in Rust (Docker, K8s, MicroVMs)”Hacker News · Jul 20, 2026 · 3 points
- @github-trending-rs.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 arcboxlabs / arcbox ⭐ 3,352 (+360) 🗒 Rust Run AI agents on real …”Bluesky · Sep 6, 2026
- @githubprojects.bsky.social“arcboxlabs/arcbox Agents need powerful system access. Giving them your actual machine is the uncomfortable …”Bluesky · Sep 6, 2026
- @github-trending-rs.bsky.social“🎉 Celebrating! 🎉 (500+ new stars) 📦 arcboxlabs / arcbox ⭐ 2,448 (+506) 🗒 Rust Run AI agents on real and …”Bluesky · Sep 2, 2026
- 1Password/for-open-source“Application for ArcBox”GitHub · Apr 18, 2026
The biggest 5 of 6 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 6
Talked about on Bluesky, GitHub and Hacker News (6 times).
On Bluesky · 3
- Sep 6, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 arcboxlabs / arcbox ⭐ 3,352 (+360) 🗒 Rust Run AI agents on real and isolated machines — own… — @github-trending-rs.bsky.social0 likes and reposts · 1 reply
- Sep 6, 2026arcboxlabs/arcbox Agents need powerful system access. Giving them your actual machine is the uncomfortable part. ArcBox gives agents… — @githubprojects.bsky.social0 likes and reposts · 1 reply
- Sep 2, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 arcboxlabs / arcbox ⭐ 2,448 (+506) 🗒 Rust Run AI agents on real and isolated machines — own kernel,… — @github-trending-rs.bsky.social0 likes and reposts · 1 reply
On GitHub · 2
- Apr 18, 2026Application for ArcBox — 1Password/for-open-source0 reactions · 2 comments
- Mar 23, 2026feat: remove daemon plist log paths (companion to arcbox#99) — arcboxlabs/arcbox-desktop0 reactions
On Hacker News · 1
- Jul 20, 2026ArcBox: From-Scratch Container Runtime for macOS in Rust (Docker, K8s, MicroVMs)3 points
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- app/AGENTS.mdAGENTS.md
- common/AGENTS.mdAGENTS.md
- computer/AGENTS.mdAGENTS.md
- guest/AGENTS.mdAGENTS.md
- rpc/AGENTS.mdAGENTS.md
- runtime/AGENTS.mdAGENTS.md
- virt/AGENTS.mdAGENTS.md
- xtask/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 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.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Platform-neutral: every crate must compile and pass unit tests on Linux as well as macOS.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
engine/ — Engine Layer Agent Guidance
The embeddable, daemon-free engine library. Crates here are the
platform-neutral core that three shells assemble: the macOS daemon
(app/), the in-guest vm-agent, and (future) a bare-Linux node daemon.
The restructure plan and its locked decisions live in
docs/architecture/charter.md.
Layer rules (the common/ "no VM dep" discipline, one level up)
- No
app/dependency, ever: nothing here may reference the daemon, CLI, API, or docker-compat crates, nor daemon artifacts (lock file, socket paths, startup pipeline). - No direct macOS-only dependency (
arcbox-vz,arcbox-vmnet,arcbox-route,ifbridge): platform backends are reached only through the seam. Today that seam isarcbox-vmm+ thevirt/arcbox-hypervisortrait layer, and both edges are grandfathered — the target is thevirt/arcbox-vm-driverport (vm-stack-redesign R4), after which neither crate appears in an engine manifest. - Platform-neutral: every crate must compile and pass unit tests on Linux as well as macOS.
- Mechanically checked:
cargo xtask check-layers(CIlinux-enginejob) fails on a direct edge fromengine/intoapp/, a macOS-only crate (the list above plusarcbox-hv), a VMM adapter, orarcbox-vmm/arcbox-hypervisor— the last two are today's grandfathered edges (arcbox-engine -> arcbox-vmm/arcbox-hypervisor, until vm-stack-redesign R4); rules and exceptions live inxtask/src/commands/check_layers/rules.rs. - Own your errors: each crate defines its own
thiserrortype built onarcbox_error::CommonError;arcbox-coreconverts viaFrom(seeCoreError'sFrom<ImageError>), sois_not_found()-style predicates answer identically through either type. - During the migration,
arcbox-corekeeps compatibility re-exports of moved modules; consumers migrate to the engine crates in follow-up commits and the re-exports then die. Prefer importing from the engine crate in new code.
Crates
arcbox-image— the boot-asset chain, distro machine-image index, and shared remote-image fetch/staging primitives.assets.lockisinclude_str!-embedded at COMPILE TIME (engine/arcbox-image/src/boot_assets/lockfile.rs, path../../../../assets.lock— four levels up to the repo root, same depth as its old home underapp/arcbox-core/src/); editingassets.lockwithout rebuilding the daemon changes nothing. The pin semantics and failure signatures stay documented inapp/AGENTS.md("Boot-asset pin").arcbox-snapshot— snapshot lineage: the checkpoint catalog (snapshot), the device-mapper copy-on-write rootfs manager checkpoints are cloned through (snapshot_cow), and the template catalog that promotes a snapshot into a versioned base image (template_catalog). Consumed bycomputer/arcbox-computer-runtimeguest-side today; the charter's snapshot registry client belongs here rather than above it.- The device-mapper paths only do anything on Linux (
dmsetup, thin pools) but compile everywhere, which is what lets the layer above keep its own platform-neutrality promise. - Loop-device tooling is a seam, not an assumption:
CowManagertakesCowOptions { block_tools: Arc<dyn BlockTools>, dmsetup_candidates, .. }(snapshot_cow/block_tools/, one file per implementation).BusyboxBlockToolsis the reference (the System VM's/bin/busyboxapplets);UtilLinuxBlockToolscovers a stock distro'slosetup/blockdev, and a consumer wanting neither (the loop ioctls direct) supplies its own without forking the module.stat/mknodare syscalls, not applets, so they have no seam. The crate's owndmsetupsearch list is the stock-distro one; the System VM's/arcbox/bin/dmsetupcomes from the guest agent'sRuntimeConfig(firecracker.dmsetup_candidates), not from here. Adding a new host operation means adding a trait method, never a hard-coded binary path. BusyBox'slosetuphas no--show(no long options at all), soBusyboxBlockToolsattaches aslosetup -fthenlosetup LOOPDEV FILEwith a bounded retry when the queried device is claimed in between; util-linux attaches in one atomiclosetup -f --showand retriesEBUSYinternally, which is why the two are separate types and not one configurable path. Both are tested against the real binaries intest-vm-linux'sintegrationjob.UtilLinuxBlockTools::discoverprobes--versionrather than trusting existence: on busybox-based images/sbin/losetupis a symlink to the applet, which existence alone would select — failing on the first attach instead of at composition. CowManager's test seam (CowTestProbe,new_with_test_probe) is behind thetest-probefeature, not#[cfg(test)]: acfg(test)item does not exist for another crate's tests, and its only consumer —arcbox-computer-runtime's cleanup tests — now lives in one.arcbox-computer-runtimeturns the feature on in its dev-dependencies.
- The device-mapper paths only do anything on Linux (
Durable writes
New code that atomically replaces a file uses
common/arcbox-atomic-file rather than hand-rolling temp-then-rename. It
is not the same primitive as arcbox-engine's private
atomic_write, which deliberately skips fsync for config files: the
crate fsyncs the file and the parent directory, and reports
NotCommitted separately from DurabilityUncertain so a caller can tell
"nothing happened" from "it happened, but might not survive power loss".
Pick the variant handling deliberately — a catalog that must not lie
about what it persisted treats the second as an error; a record store may
keep the record and warn.
Two places in arcbox-snapshot still roll their own, and both are
deliberate rather than missed:
snapshot::PendingSnapshot::commitrenames a whole directory into place. The crate covers files only; there is nothing to reuse.snapshot_cow::persistence::write_owner_markerwrites the template-loop recovery markers. Migrating it is not a drop-in: it alsocreate_dir_alls the marker directory, chmods it0o700, and fsyncs the grandparent so the directory creation itself is durable — and, less obviously,cleanup_stale_template_markersreaps leftover temps by matching theTEMPLATE_MARKER_TEMP_PREFIX(.tmp-) prefix, which the crate's.{stem}.{uuid}.tmpnames do not have. Migrate the writer and that sweep together or crash recovery silently stops collecting its own orphans.
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.

