`slop-cannon`'s agents reach the broker on `palace` through a vsock device, under an `agent` policy: box queries run without asking, `slop ssh` asks (offering 5 min and 1 h leases), and so do deploys. The deploy key moves to `palace` as an age secret for the broker, so the VM never holds it, and `AGENTS.md` points agents there at `slop`. `palace` runs the builder itself, as `slop-broker-build`, reached over SSH like a separate box and fetching `dev/nixfiles` with a read-only deploy key, so `slop-cannon` shrinks to 24 GiB. `slop build` pushes into Harmonia's store on `object` with a key of the broker's own, which can only speak the store protocol and add GC roots there. Agents' use of the builder asks, unless the commit is already on `master`. Builds run agent-written Nix, so they only reach the Internet, like `lan-untrusted`, and `nix-daemon` is limited so they can't starve the VMs. The approvals web app listens on `palace` for `middleman` only, the one client the firewall lets in, which publishes it at `approve.slop.nul.ie`. Approvers sign in with Pocket ID, and deploys to the routers need a fresh passkey. The broker's SSH targets are the deploy-rs nodes on `master`, which the builder reads there, so agents can't add or redirect one. With the broker gating what needs credentials, `slop-cannon`'s agents are permissive by default: Claude bypasses permission prompts and Codex runs without approvals or its sandbox, with matching Paseo profiles. The deny rules for raw `deploy` and `ssh-machine` stay as steers towards `slop`; the ones for `.keys/` go, since the VM's checkout only has the committed public keys there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 KiB
slop-cannon
Coding agents (Claude Code and Codex), driven from the phone or a browser through
Paseo, running in a VM on palace with root
inside it.
- Source:
nixos/boxes/home/palace/vms/slop-cannon.nix(the VM itself inpalace/vms/default.nix) - Host: VM on
palace - nixpkgs:
mine
VM resources
| vCPUs | RAM | Disk | Network | Other |
|---|---|---|---|---|
| 16c × 2t (overcommitted) | 24 GiB | 512 GiB virtio, NVMe-oF from cellar via palace |
SR-IOV VF 5 (44:00.6) on VLAN 120 |
installer ISO |
vm@slop-cannon has a low CPUWeight on palace, so cellar, river and sfh win under
contention. palace has kvm_amd nested=1, so the guest has /dev/kvm.
Role
- Runs the Paseo daemon and the agents it starts, as the user
slop-cannon. Agents have root in the VM (wheel, passwordlessdoas): nested VMs, kernel modules, system services. - A normal deploy node (
deploy .#slop-cannon,ssh-machine slop-cannon). - Everything inside the guest is treated as agent-controlled. The boundaries are outside it:
the
untrustedfilter on the routers, the VLAN tag on the NIC and the disk connection onpalace. Credentials for deploying or logging into other boxes stay outside the VM, withslop-brokeronpalace.
Network assignments
See the consolidated network assignments table (this box:
slop-cannon).
Network
- The only interface,
lan-untrusted, is SR-IOV VF 5 onpalace. The NIC tags and filters VLAN 120 and enforces MAC spoof checking on the host side. The guest loadsmlx5_coreat boot. See the VF attachment table. - A static
untrustedaddress (outside both routers' DHCP pools), MTU 1500. DNS is Cloudflare, asuntrusted's DHCP and RAs hand out; the routers' resolvers aren't reachable fromuntrusted. - The routers keep
untrustedto the Internet (see Untrusted clients).git.nul.ieandpaseo-relay.nul.ieresolve to colony IPv6 addresses, which are rejected, so Gitea SSH and the Paseo relay fall back to IPv4 immediately. - SSH from
hiandloworks through the routers. The VM shares layer 2 with other clients on theuntrustedVLAN. - Builds use the guest's own Nix daemon and store, behind the same filter.
Storage
- One virtio disk: GPT with a 2 GiB ESP (partition label
esp) and an LVM PV in VGmain. slop-cannon-nix,slop-cannon-persistandslop-cannon-tmpare thin LVs inmain/tpool, overcommitted, so space goes to whichever needs it. The pool takes 90% of the VG; LVM grows it into the rest at 80% full (thin_pool_autoextend_threshold). Watchlvsif it gets close.- The root is
tmproot;/tmpis its own LV, cleaned on boot and mounted withdiscard, so agents' scratch files don't use RAM and freed space returns to the pool. - The disk is
nqn.2016-06.io.spdk:slop-cannononcellar, connected bypalace(seepalace's disk notes). The guest never speaks NVMe-oF.
Users and secrets
| User | Purpose |
|---|---|
slop-cannon |
Runs Paseo and the agents; wheel and kvm; locked password, Dev's SSH key; home persisted; UID/GID pinned in lib.my.c.ids |
dev |
Administration; locked password, Dev's SSH key |
- No
user-passwd.txt(my.user.passwordSecret = null): root belongs to the agents, so the box gets no shared secrets. Recovery is through the installer ISO. - The VM's SSH host key is the age identity for
slop-cannon/paseo.envandslop-cannon/gitea-key. Agents can read the host key and decrypt anything encrypted to it.
Paseo
A daemon (paseo-server) that starts and manages agents and serves a WebSocket API to the Paseo
app, the web UI and the paseo CLI. Claude Code runs through the Claude Agent SDK, using the
installed claude and its claude.ai login; Codex runs through codex app-server.
Service
- The upstream
services.paseomodule (flake inputpaseo, pinned to a release, imported innixos/modules/common.nix), with a package override for the web UI bug getpaseo/paseo#7673. - Runs as
slop-cannon, so agents use that user's logins and settings, with~/.paseoasPASEO_HOME. - The daemon password comes from the age secret
slop-cannon/paseo.env. To read it for a new client, follow Pair a Paseo client. - The service is not restarted on deploy, so running agents aren't interrupted. Restart it by hand
(
doas systemctl restart paseo) to pick up a new config; stopping it stops its agents. - Startup takes about a minute and a half while bundled plugins load; the daemon answers 503 until it is ready.
Settings
services.paseo.settings is rewritten into ~/.paseo/config.json on every start, so changes made
from the app don't survive a restart. It:
- disables the tools Paseo injects into agents (
daemon.mcp.injectIntoAgents = false), which would let an agent change its own mode, answer its own permission prompts or open terminals; - requires relay replay protection;
- turns off dictation and voice, which would otherwise download a large local speech model;
- hides providers other than Claude and Codex;
- adds "Claude, bypass permissions" and "Codex, full access" agent profiles. Each provider's
default mode is hardcoded upstream (Claude
auto, Codexauto-review), and profiles are the only way to preset one, so pick a profile when starting an agent for the permissive mode.
Connectivity
- The daemon listens on
127.0.0.1:6767only. The phone app and the browser reach it through our relay onmiddleman(paseo-relay.nul.ie). - Traffic through the relay is end-to-end encrypted between the app and the daemon; the relay sees only addresses, timing and sizes. The pairing QR code or link is the trust anchor; treat it like a password. Switching relays means re-pairing.
- Push notifications go from the daemon to Expo's push service (
exp.host), one outbound request per notification carrying its text. middlemanserves the static web app onslop.nul.ie. The daemon's own web UI stays off.
State
The agent home is backed by /persist/home/slop-cannon. It holds the provider logins and
sessions, repos, and ~/.paseo, which contains the daemon keypair, agent records, projects,
workspaces and Paseo-managed Git worktrees. Paired clients trust that daemon keypair. Claude
sessions live under ~/.claude/projects/ and Codex sessions under ~/.codex/sessions/.
Repos, worktrees and jj
Repos live under ~/src as colocated jj clones (see slop-clone below). Paseo only calls git:
- A
localworkspace runs the agent in the checkout itself;jjand Paseo's git views see the same changes. Use it for work you want to steer withjj. - A worktree workspace is a
git worktreeunder~/.paseo/worktreeson its own branch. Use it for unattended agents. Archiving it removes the worktree with--force, losing uncommitted work. - Archiving a
localworkspace removes only Paseo's record; the folder is kept. - Only one colocated working copy per repo is possible, so parallel jj-driven work needs separate clones.
- Don't run
jjin a folder while an agent is mid-turn there: jj snapshots its partial edits.
Terminal access
- The
paseoCLI talks to the running daemon:paseo ls,paseo logs -f <id>,paseo send <id> "…",paseo permit ls|allow|deny. It is command-line only, not a chat interface. - A session can be taken over in the provider's own TUI by its ID:
claude --resume <session>in the agent's folder, orcodex resume <session>.paseo importgoes the other way. This is a hand-off, not a shared view: stop the agent in Paseo first and don't type in both.
Agent permissions
Paseo has the full rights of slop-cannon, and slop-cannon has root: anyone with the daemon
password or a pairing controls the VM.
- Claude Code and Codex come from the shared
my.agentshome-manager module. - Claude's user settings deny raw
deployandssh-machine, and allowslop, since the broker asks a human where its policy says so. The checkout's.keys/only has the committed public keys, so reading it isn't denied. Claude's managed settings (/etc/claude-code/managed-settings.json) repeat thedenyrules. All of these match command text and live inside the guest, so they steer agents towardssloprather than enforce anything. - Agents are permissive by default, since the VM is the boundary and
slop-brokergates everything that needs credentials: Claude starts inbypassPermissions(thedenyrules still apply), and Codex runs without approvals or its sandbox (approval_policy = "never",sandbox_mode = "danger-full-access"). Agents started through Paseo use its defaults unless started with one of the profiles above. - Codex stores its credentials in a file.
Privileged operations
Agents ask slop-broker on palace for anything needing credentials, with
the slop command (my.agents.slop.enable). It connects over vsock (CID 3; see
palace). The agent guide, slop guide, is installed as a Claude rule
(~/.claude/rules/slop.md) and as Codex's AGENTS.md.
SSH and first login
ssh slop-cannon (agent user) and ssh slop-cannon-dev (dev) are the shared aliases, both with
ForwardAgent=no. Never forward your SSH agent into the box: agents could use it while you're
logged in. For recovery, use the VM serial console for
slop-cannon on palace.
The VM uses a Gitea deploy key from the age secret
slop-cannon/gitea-key. As slop-cannon, run
ssh-keygen -y -f /run/secrets/slop-cannon/gitea-key to get its public key. Add that public key
in Gitea as a write-enabled deploy key on each repo agents may use. Commits are authored as Dev
through the shared Git config.
To set up provider logins and repos on a fresh agent home, connect with ssh slop-cannon:
claude auth login(a full login;setup-tokentokens are not enough for every feature).codex login --device-auth.- Pair a Paseo client.
slop-clone <owner>/<repo>for each repo. It clones a colocated jj repo into~/src/<repo>, registers it with Paseo as a local workspace, and prints the box's public key if Gitea refuses the clone.
Pair a Paseo client
-
On the VM, run
slop-pairasslop-cannon. It prints the QR code, pairing link andPASEO_PASSWORD. Keep its output private. -
If you only need the QR code and link, run
paseo daemon pairasslop-cannon. To look up the password separately, rundoas cat /run/secrets/slop-cannon/paseo.envon the VM. You can also decrypt it from a repo checkout with access to the dev age key:rage --decrypt -i .keys/dev.key secrets/slop-cannon/paseo.env.age -
On a phone, scan the QR code from the Paseo app. In a browser, open
https://slop.nul.ieand use the app's paste-pairing-link option. Enter the value afterPASEO_PASSWORD=when prompted and open the paired host. If the browser shows “Password required” after opening the link in the address bar, remove that host entry and pair again using the paste dialog.
Notable config files
nixos/boxes/home/palace/vms/slop-cannon.nix— the box: users, Paseo, Claude settings,slop-clone,slop-pair, disk layout, network.nixos/boxes/home/palace/slop-broker.nix— the broker's policy for this box and the VM's vsock device.nixos/boxes/home/palace/vms/default.nix— the VM onpalaceandslop-cannon-disk.service.nixos/boxes/home/palace/default.nix— VF 5, the NVMe host ID and the LVM filter.home-manager/modules/agents/default.nix— shared Claude Code and Codex configuration, including theslopclient and guide.