/asi:snixfrom asi
Builds minimal Linux rootfs images for AI agent VMs using snix, a Rust reimplementation of Nix with a bytecode VM evaluator and content-addressed store.
Ships in asi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
"Nix, reimplemented in Rust." -- snix.dev
Trit: -1 (MINUS) - Build validation and rootfs construction
snix is a Rust reimplementation of Nix (forked from Tvix) with a bytecode VM evaluator, content-addressed store, and library-oriented architecture. It provides the build layer for the Minimum Viable Runtime (MVR) — creating minimal Linux rootfs images that run AI agent TUIs inside boxxy (Apple Virtualization.framework) VMs.
┌─────────────────────────────────────────────────────┐
│ snix BUILD LAYER │
│ (content-addressed store) │
└──────────────────────┬──────────────────────────────┘
│
┌───────────────┼───────────────┐
│ │ │
┌──────▼──────┐ ┌──────▼──────┐ ┌──────▼──────┐
│ Evaluate │ │ Build │ │ Store │
│ (bytecode) │ │ (daemon) │ │ (CAS) │
│ trit: -1 │ │ trit: 0 │ │ trit: +1 │
└─────────────┘ └─────────────┘ └─────────────┘
│ │ │
└───────────────┼───────────────┘
│
┌───────▼───────┐
│ rootfs.img │
│ (~75-130MB) │
└───────────────┘
| Property | Nix (C++) | snix (Rust) |
|---|---|---|
| Language | C++ | Rust |
| Evaluator | AST walker | Bytecode VM |
| Store | Monolithic | Content-addressed, granular |
| Library use | CLI only | Library-first |
| License | LGPL-2.1 | GPL-3.0 |
| macOS CI | Community | Dedicated |
| nixpkgs compat | Native | Yes (growing) |
# Clone from Forgejo
git clone https://git.snix.dev/snix/snix ~/i/snix
# Or from GitHub mirror
git clone https://github.com/cachix/snix ~/i/snix
# Build from source (Rust toolchain required)
cd ~/i/snix
cargo build --release
# Components
ls target/release/snix-*
# snix-eval -- Nix expression evaluator (bytecode VM)
# snix-build -- Build orchestrator
# snix-store -- Content-addressed store daemon
# snix-cli -- Unified CLI
# flake.nix — snix-evaluable minimal codex-rs VM rootfs
{
description = "Minimal aarch64-linux rootfs for codex-rs in boxxy";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }: let
system = "aarch64-linux";
pkgs = import nixpkgs {
inherit system;
crossSystem = { config = "aarch64-unknown-linux-musl"; };
};
in {
packages.${system} = {
rootfs = pkgs.dockerTools.buildImage {
name = "codex-minimal";
tag = "latest";
copyToRoot = pkgs.buildEnv {
name = "codex-rootfs";
paths = [
pkgs.busybox # shell + coreutils (~1.5MB)
pkgs.gitMinimal # git without docs/perl (~15-30MB)
pkgs.cacert # TLS root certificates (~0.2MB)
];
};
runAsRoot = ''
mkdir -p /tmp /proc /dev
mknod -m 666 /dev/null c 1 3
mknod -m 666 /dev/urandom c 1 9
'';
};
diskImage = pkgs.vmTools.runInLinuxVM (pkgs.runCommand "codex-disk" {} ''
mkdir -p $out
dd if=/dev/zero of=$out/rootfs.img bs=1M count=256
mkfs.ext4 $out/rootfs.img
'');
};
};
}
# Evaluate the flake
snix eval .#packages.aarch64-linux.rootfs
# Build rootfs image
snix build .#packages.aarch64-linux.rootfs
# Inspect store paths
snix store ls /snix/store/<hash>-codex-rootfs
| Component | Size | Purpose |
|---|---|---|
| Linux kernel (minimal, aarch64) | ~8-15 MB | Landlock 6.7+, seccomp-BPF |
| codex-rs + codex-linux-sandbox | ~50-80 MB | MUSL static binary |
| busybox | ~1.5 MB | Shell + coreutils |
| git (minimal) | ~15-30 MB | Source control |
| ca-certificates | ~0.2 MB | TLS roots |
| Total rootfs | ~75-130 MB |
| Feature | Minimum | Ideal | Config Flag |
|---|---|---|---|
| Landlock LSM | Linux 5.13 | Linux 6.7+ | CONFIG_SECURITY_LANDLOCK=y |
| Landlock ABI | V1 | V5 | (kernel version dependent) |
| seccomp-BPF | Linux 3.5 | - | CONFIG_SECCOMP_FILTER=y |
| User namespaces | Linux 3.8 | - | CONFIG_USER_NS=y |
| Mount namespaces | Linux 3.8 | - | CONFIG_NAMESPACES=y |
| Architecture | - | aarch64 | (Apple Silicon native) |
;; ~/i/boxxy/examples/codex-vm.joke
;; Boot snix-built rootfs via Apple Virtualization.framework
(def codex-vm
(vz/new-linux-vm-config
{:kernel "vmlinuz-6.7-aarch64"
:initrd "initrd-codex.img"
:cmdline "console=hvc0 root=/dev/vda rw quiet"
:disk "codex-rootfs.img" ;; snix-built rootfs
:memory 2 ;; GB
:cpus 4
:network {:nat true}})) ;; NAT for API access
(println "Booting codex-rs VM...")
(vz/start-vm! codex-vm)
Agents running inside snix-built rootfs, driven by toad:
| Agent | Command | Trit | Role |
|---|---|---|---|
| claude | toad -a claude | 0 | Coordinator |
| codex | toad -a codex | -1 | Validator |
| goose | toad -a goose | +1 | Generator |
| copilot | toad -a copilot | 0 | Coordinator |
| gemini | toad -a gemini | +1 | Generator |
GF(3) check: 0 + (-1) + 1 + 0 + 1 = 1 — needs balancing validator agent per session.
snix (-1) ⊗ world-runtime (0) ⊗ agent-o-rama (+1) = 0 ✓ [MVR Core]
snix (-1) ⊗ flox (0) ⊗ hvm-runtime (+1) = 0 ✓ [Build Chain]
snix (-1) ⊗ nix-acset-worlding (-1) ⊗ codex-self-rewriting (+1+1) — needs split
nix-acset-worlding (-1) ⊗ snix (-1) ⊗ true-alife (+1) — rebalance via:
snix (-1) ⊗ acsets (0) ⊗ hvm-runtime (+1) = 0 ✓ [Store Verification]
snix (-1)
/ \
/ MVR \
/ 0 \
world-runtime (0) --- agent-o-rama (+1)
BUILD ←→ RUN ←→ ORCHESTRATE
/snix/store/
├── <hash>-busybox-1.36.1/
│ └── bin/
│ └── busybox # 1.5MB static binary
├── <hash>-git-minimal-2.43.0/
│ └── bin/
│ └── git # 15-30MB
├── <hash>-ca-certificates/
│ └── etc/ssl/certs/
│ └── ca-bundle.crt # 0.2MB
└── <hash>-codex-rootfs/
└── ... # Composed rootfs
Key properties:
# Build minimal rootfs
snix build .#packages.aarch64-linux.rootfs
# Evaluate without building
snix eval .#packages.aarch64-linux.rootfs
# Inspect store
snix store ls /snix/store/
# GC dead paths
snix store gc
# Boot in boxxy
cd ~/i/boxxy && ./boxxy boot codex-rootfs.img
# Run agents via toad
toad -a claude ~/i/soft-machine
toad -a codex ~/i/soft-machine
toad -a goose ~/i/soft-machine
This skill connects to the K-Dense-AI/claude-scientific-skills ecosystem:
general: 734 citations in bib.duckdbThis skill connects to Software Design for Flexibility (Hanson & Sussman, 2021):
Concepts: embedded DSL, combinator, wrapper, Nix expression language
snix (-) + SDF.Ch2 (-) + [balancer] (+) — rebalance needed
snix (-) + SDF.Ch7.Propagators (0) + hvm-runtime (+) = 0 ✓
Skill Trit: -1 (MINUS - build validation)
DSLs embed domain knowledge. snix embeds Nix semantics in Rust for reproducible builds.
This skill maps to Cat# = Comod(P) as a bicomodule in the equipment structure:
Trit: -1 (MINUS)
Home: Prof
Poly Op: ⊗
Kan Role: Ran (right Kan extension - verification)
Color: #D89B73
The skill participates in triads satisfying:
(-1) + (0) + (+1) ≡ 0 (mod 3)
Example balanced triads:
snix (-1) + world-runtime (0) + agent-o-rama (+1) = 0 ✓
snix (-1) + flox (0) + hvm-runtime (+1) = 0 ✓
snix (-1) + acsets (0) + true-alife (+1) = 0 ✓
This ensures compositional coherence in the Cat# equipment structure.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (plurigrid/asi) — no native marketplace selected
npx claudepluginhub p/plurigrid-asi-plugins-asi1,393 skills in this plugin
/abductive-replHypothesis-Test Loops via REPL for Exploratory Abductive Inference/academic-researchSearch academic papers across arXiv, PubMed, Semantic Scholar, bioRxiv, medRxiv, Google Scholar, and more. Get BibTeX citations, download PDFs, analyze citation networks. Use for literature reviews, finding papers, and academic research./accept-no-substitutesThis skill should be used when agents generate placeholder tokens like "pseudo-", "mock-", "temporary", "TODO", "demo-", or similar incompleteness markers. Detects substitution patterns in agent OUTPUT and triggers mandatory user interview instead of accepting incomplete work. Activates automatically on any output containing forbidden tokens.Other plugins' skills for the same job