npx agentspec-cli install 80740ede-174f-4fac-a243-d68bc836d109 --framework ClaudeCode→ .claude/skills/pu/SKILL.md
# pu — on-demand Incus boxes
`pu` hands out Linux containers. Each box is a clean NixOS host with Nix
+ flakes, reachable over SSH through `pu`'s own proxy. Use one whenever work should
run **off the user's machine** — a CI run, a `nix run` build, evidence capture —
so nothing local is at risk and the environment is reproducible. A box can be short-lived
(spin up, use, `destroy`) or kept around long-term — the lifetime is yours to choose.
## Lifecycle
```sh
pu create "$host" # create; writes ~/.pu-state/$host/ssh_config
pu list # NAME + LOCATION (the physical host it landed on)
pu connect "$host" # interactive ssh
pu connect "$host" -- CMD # run CMD on the box and return
pu destroy "$host" # tear down — always do this when finished
```
Name is positional. Pick a descriptive, collision-free name (e.g. `app-pr-42-evidence`).
`pu connect` is the reliable way in — it reads `~/.pu-state/$host/ssh_config` itself, so it
needs no setup. Bare `ssh "$host"` works **only** if you've added `Include
~/.pu-state/*/ssh_config` to `~/.ssh/config` (optional, often not set up); otherwise use
`pu connect`, or pass the config explicitly: `ssh -F ~/.pu-state/$host/ssh_config "$host"`.
## Run commands on the box
```sh
# One-shot
pu connect "$host" -- 'uname -a'
# Background a long-running server (nohup so it survives the SSH session)
pu connect "$host" -- "nohup nix run github:owner/app -- --port 8080 >/tmp/app.log 2>&1 &"
# Poll until it's healthy
pu connect "$host" -- 'until curl -sf http://127.0.0.1:8080/health; do sleep 2; done'
```
The box has its **own loopback** — bind servers to `127.0.0.1` on whatever port you
like; there is no clash with anything on the user's machine.
## Copy artifacts back
`pu connect` is SSH, so `scp` works against the box's generated config:
```sh
scp -F ~/.pu-state/"$host"/ssh_config "$host":/tmp/out.png /tmp/out.png
```
## Failure mode: no outbound network
A box occasionally lands on a host with broken egress — DNS and even raw-IP TCP
time out, so `nix run github:...` hangs on "Resolving timed out". This is
host-specific, not your fault. **Probe egress first; if it fails, destroy and
recreate** (a fresh box usually lands on a healthy host):
```sh
pu connect "$host" -- 'timeout 15 curl -sS -o /dev/null -w "%{http_code}\n" https://api.github.com' \
|| { echo "no egress — recreating"; pu destroy "$host"; pu create "$host"; }
```
If retries keep landing on dead hosts, capture diagnostics for the admin — the box's
`LOCATION` from `pu list`, `/etc/resolv.conf`, `ip route`, and a `/dev/tcp` connect
test to the gateway and to a raw IP — and hand them over (e.g. a gist).
Built on the Agent Skills standard
upstash-box-js
Work with the @upstash/box SDK for sandboxed cloud containers with AI agents, shell, filesystem, and git. Use when building with Upstash Box, creating sandboxed environments, running AI agents in containers, or orchestrating parallel boxes.
by AgentHub Crawler
Agent Instructions
This project uses **Nix flakes** for all builds and development tooling. The cloud agent VM has Nix installed via the Dockerfile, but the nix-daemon must be running for any Nix command to work.
by AgentHub Crawler
skill
# CI **Drive CI through the odu MCP server — the single front door.** The runner is **odu** (npins-pinned by `ci/flake.nix`, `nix run ./ci#odu`): `mcp__odu__run` spawns the coordinator, `mcp__odu__wa
by AgentHub Crawler
Sign in to leave a comment.
Substrate
This repo is an AI agent orchestration shell (roles, file-based substrate memory).
by AgentHub Crawler