drolu/agent-skills/boxlite-neuralos
Claude Code and agent skill by drolu/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
End-to-end recipe + runnable scripts for running neuralOS (on-device tool-calling model) inside BoxLite microVMs on this host — cook ONE persistent template Box with neuralOS preinstalled, verify it, then clone it to spin up any number of disposable, isolated job boxes; plus the data-source instance variant (e.g. a database-backed agent in its own box with a boot service), export/import portability, measured sizing, and every API gotcha met in practice. Use when the user mentions BoxLite, boxes, microVM sandboxes, cooking/creating a neuralOS template, spinning up neuralOS job boxes, cloning boxes, or asks to run neuralOS isolated/sandboxed.
Install
npx vskill@latest install drolu/agent-skills/boxlite-neuralosSKILL.md
The same SKILL.md was published earlier as drolu/agent-skills/boxlite-neuralos.
BoxLite ⇄ neuralOS — cook once, clone many
Run the on-device neuralOS model inside hardware-isolated microVMs. Cook one persistent template box with neuralOS preinstalled, then clone it into disposable job boxes in milliseconds. Optionally bake a data-source instance (database agent) into a box that auto-loads it at every boot.
Requirements
- Host: macOS Apple Silicon (Hypervisor.framework), Linux x86_64/ARM64 (KVM),
or Windows/WSL2. No root. Check: sysctl -n kern.hv_support → 1 (macOS).
- Python 3.12 for the host-side venv (3.14 is too new for the wheel set —
3.11/3.12/3.13 work; use uv venv --python 3.12).
Quickstart (end-to-end, ~10 min first time, seconds after)
How BoxLite actually works (the model in your head)
- A Box is a real microVM with its own kernel — not a container. Starts
from any OCI image in <50 ms (after first pull), runs on Hypervisor.framework (macOS) / KVM (Linux) / WHP (WSL2).
- Daemonless library:
pip install boxlite, embed in your process. Optional
REST server (boxlite serve) for remote/headless.
- Persistence = disk, NOT processes. A box's QCOW2 disk survives
stop/start (with auto_delete=0) — installed packages and files stay. Running processes do not survive; re-exec on start.
- Boot hook: BoxLite runs the box's
cmdas PID 1 on every start. This
is the only "boot script" mechanism — use it.
- Each box is an isolated network island: every guest sees the same
eth0 (192.168.127.2, gw .1, hostname boxlite) because each has its own user-mode netstack (gvproxy). Identical addresses are safe — boxes cannot see each other. Connect boxes through the host (published ports / tunnels). Never key automation off guest IP or hostname — use box name/ID.
Phase 0 — Environment (once)
Creates ~/boxlite-lab/venv (Python 3.12) with boxlite + neuralos. All later commands use ~/boxlite-lab/venv/bin/python.
Phase 1 — COOK the template
cook_template.py creates a persistent box (auto_delete=0), installs neuralOS (engine + ~35 MB weights bundled in the wheel), runs a verification tool call, and stops it. The disk keeps everything.
What it does, in order (and what you must verify):
| Gate | Check | Pass | |
|---|---|---|---|
| install | pip install neuralos exits 0 | engine + weights on disk | |
| import | import needle; needle.__version__ | version prints | |
| tool call | add 2 and 3 via a trigger-caged tool | returns 5 | |
| persist | box stopped, auto_delete=0 | disk survives |
Measured footprint of a cooked box (M-series host): idle 178 MB, after one inference 257 MB, after 8 back-to-back asks 357 MB, disk ~640 MB. → 1 vCPU / 1 GB / 4–6 GB disk is sufficient for neuralOS-only boxes.
Phase 2 — SPIN UP jobs by cloning the template
clone_job.py clones the template (copy-on-write → near-instant), starts it, runs a neuralOS program in the clone, prints the result, stops it.
- Cloning is safe for neuralOS because it is stateless — no identity to
duplicate.
- NEVER clone a box that carries unique persisted identity (e.g. a gateway
with a generated mesh keypair). Cloning duplicates the identity → collision. Treat those boxes as singletons.
- Default in-box program defines demo tools with triggers and returns a
small JSON digest. Swap in your own with --program file.py (the file may use __PROMPT__, replaced with the prompt).
Warm pool (latency-critical)
Pre-clone N boxes stopped; on demand start → exec → stop. Clone + boot is ~2 s end-to-end on this host; a warm pool removes even that from the hot path.
Phase 3 — Data-source instance variant (the chinook pattern)
To give a box a database-backed neuralOS instance that auto-loads at boot, follow the chinook build. Deliverables inside the box (/opt/<instance>):
| File | Role | |
|---|---|---|
models.py | strict Pydantic models (from the neuralos skill profiling) | |
needle_menu.json | probe menu — triggers + grammar-caged args | |
bridge.py | reads the source, validates rows, keeps results small | |
instance.py | the agent: menu loaded, triggers set | |
ask.py | retrieval front-end — lexical top-K probe selection | |
demo_server.py | web service (POST /ask) — the boot service | |
start.sh | boot script (see below) | |
<source dump> | data, loaded on first boot |
Boot script template (this is the contract)
Create the box with:
The || sleep infinity is essential: during setup (before files exist) the box must stay up so you can exec installs and copy_in files. On the next start the real script runs end-to-end.
Verify (Phase-4 gates, never skip)
- Data loaded: query the sentinel table count directly in the store.
- Instance answers:
ask.py <dir> "known question"→ correct probe + truth. - Truth check: relayed number == direct source query (e.g. Track = 3503).
- Boot persistence: stop → start → service up and data still there
(no re-import, no duplicates).
Measured (chinook: MariaDB + neuralOS + 48-probe instance): boot-to-serving ~10 s; idle 178 MB; after inference 257 MB; 8 asks back-to-back 357 MB; disk 642 MB → 1 vCPU / 1 GB / 6 GB. A 2 vCPU / 4 GB / 12 GB build used <9 % of its RAM — don't over-allocate.
Keeping a box RUNNING (three verified mechanisms)
By default a box auto-stops when the owning client process exits ("Auto- stopping non-detached box"). Verified ways to keep one up:
1. Keeper process — a background client that holds the runtime open (scripts/keeper.py, run under nohup; touch keeper.stop to stop it). Works, but see gotcha 14: the keeper holds the runtime lock, so no other process can use ~/.boxlite until it exits.
2. `detach=True` (recommended) — create the box detached and it outlives every client: BoxOptions(..., detach=True). A fresh client can rt.get() + exec against the already-running box in ~1.6 s. Verified: client exited, box's shim + demo_server kept running, next client attached and asked successfully. Cannot be set on an existing box — rebuild to change.
3. `boxlite serve` + REST — the CLI distribution (separate from the pip SDK: curl -fsSL https://sh.boxlite.ai | sh) runs a REST control plane that keeps boxes alive server-side and lets many clients share them:
Plain curl exec: {"command": "<argv0>", "args": [...]} — command is a single executable string (wrap shell with "sh","-c" args), not a shell line.
Phase 4 — Portability (no registry)
API cheat sheet (boxlite 0.10.4, verified)
Gotchas — every one hit in practice
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/boxlite-neuralos/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/drolu/agent-skills/boxlite-neuralos)