/jstack:oc-sandboxfrom jstack
Lease a just-in-time OpenCode sandbox for T3 Code delegation. Use for refusal handoffs to an untrusted model, custom OS or GUI specs, or high-risk verification. Declare a SandboxSpec, delegate, adjust grants live, land safely.
Ships in jstack. 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.
None: SKILL.md is the whole skill.
Run risky or custom work in a throwaway sandbox that holds one OpenCode agent. The orchestrator stays on the host, delegates through T3 Code, and checks the proof itself.
This skill is stock: no host, account or path. It assumes an oc-sandbox CLI and T3 provider slots your own setup supplies. Slot names and any extra rules come from your AGENTS.md or rig.json. Those win over this skill.
Skip it for ordinary edits. Use a plain delegate_task worktree.
Declare what the sandbox gets. Nothing else exists inside it.
name = "repro-1"
tier = "auto" # bwrap (default, ~20 ms), podman when [image] is set, kvm opt-in
[image] # optional: custom OS packages or GUI
packages = ["chromium", "xvfb"]
[network]
mode = "none" # default: empty network
[git]
airlock = true # repo enters as a bundle; changes leave only through `land`
[limits]
cpu = 2
memory = "4G"
pids = 512
wall = "1h"
Give each option the least it needs. Add a [image] only for packages the default root lacks. Pick kvm only when you need a kernel or nested virtualization.
oc-sandbox up --spec repro-1.toml --json
The JSON gives sandbox_id and slot. A slot is a T3 provider instance leased 1:1 to the sandbox, for example opencode-sbx-1 to opencode-sbx-4, or whatever your config lists. No free slot means wait or tear one down. Never share a slot.
Call orchestrator_capabilities once, then delegate_task:
target.providerInstanceId: the leased slot.isolation: "worktree" for code edits.isolation: "shared" for read-only work or a repro.Put the goal, the stopping point and the allowed paths in the brief. Say the agent is sandboxed, and that it must write artifacts to /out.
Watch the delegate. When it needs more, grant it without a restart. Every grant gets a grant-id.
oc-sandbox allow <id> mount <path> --as <name> [--ro|--rw] [--ttl 15m]
oc-sandbox allow <id> port --dir in ... # inbound: UAT of a dev server in the sandbox
oc-sandbox allow <id> port --dir out ... # narrow outbound tunnel to one service
oc-sandbox allow <id> tool --bin <name> # or --mcp <server>
oc-sandbox allow <id> egress <domain>
oc-sandbox allow <id> model <model-id>
oc-sandbox revoke <id> <grant-id>
mount and umount are shorthands for the first and last. Prefer --ro and a short --ttl. Revoke a grant when its step ends.
These stay blocked: sensitive mounts, host admin ports and orchestration MCP tools. Open one only with --allow-sensitive and the user's explicit approval for that grant. Never infer approval.
Run proof inside the sandbox. Collect artifacts from /out.
oc-sandbox run <id> -- <cmd>
Read the output and the artifacts yourself. Do not trust the delegate's report alone. Do not run sandbox output, scripts or binaries on the host before review.
oc-sandbox land <id> # fsck and tripwire checks, then a review ref
oc-sandbox down <id>
land brings the changes in as a review ref, never into a working branch. Review that ref like an outside contribution: read the diff, then merge it by the normal PR path. If land reports a tripwire, stop and tell the user. Do not bypass it.
Run down when done, and on every failure path. It releases the slot. Check that the slot is free before you finish.
sandbox_id, the grants you made and the review ref in your handoff.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub justcarlson/jstack --plugin jstack20 skills in this plugin
/babysit-prMonitor a pull request through review and CI. Use when the user asks to monitor, watch, or babysit a PR./bugTake an upstream bug, in a tool we use but do not own such as T3 Code, from first error to merged fix. Use when an error comes from upstream code, or when asked to check for an upstream issue, file one, or propose its fix./ci-retroMake a repository's CI faster from its own run history, then keep it fast. Use when CI is slow, queued, flaky or cold-cached, when auditing CI performance, or after a session that spent its time waiting on or retrying CI./councilTrigger this if the user says 'council'./epicResearch, plan and ship ambitious multi-issue or multi-repo work end to end. Triggers on 'epic', '/epic', 'ship epic', or bold-options research, a plan for sign-off, then parallel issues, worktrees, zero-downtime deploys and live proof./file-prFile a concise pull request. Use when the user asks to file, open, or create a PR.