/solo-skills:opencode-sandboxfrom solo-skills
Spin up a disposable, isolated opencode instance and hand it to this session as an MCP server — a sandboxed coding agent with its own workspace volume that cannot see the host filesystem. Use when the user asks for a sandbox, a scratch agent, an isolated or throwaway opencode instance, a place to let an agent work on a copy of a project, or says "opencode-sandbox", "sandbox this project", or "give me an isolated agent". Covers installing the CLI, seeding project context, custom config and plugins, worktrees inside the instance, registering with the current client, and destroying it afterward.
Ships in solo-skills. 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.
An isolated opencode instance is a container stack with its own named volumes, reachable
over MCP. Its /workspace is a Docker volume, not a bind mount, so the instance cannot
read or write anything on the host. Use one when an agent should work somewhere that cannot
touch the real machine: on a copy of a project, on generated code, or on a long task that
deserves its own scratch space.
Everything goes through the opencode-sandbox binary. Invoke it by name — it is on PATH.
Run opencode-sandbox list. If the command is not found, install it by running these —
do not ask the user where the project is, and do not improvise a docker or compose
invocation by hand, because the compose wiring, port allocation, and volume seeding are the
whole point of the CLI:
repo=$(gh search repos opencode-sandbox --owner @me --json fullName --jq '.[0].fullName')
gh release download --repo "$repo" --pattern "opencode-sandbox-$(uname -s | tr 'A-Z' 'a-z')-*" --dir /tmp
install -m 755 /tmp/opencode-sandbox-* ~/.local/bin/opencode-sandbox
Then confirm with which opencode-sandbox. If gh is missing or the search returns
nothing, references/install.md has the fallbacks, including building from source.
Decide this before running create, not after:
references/workspaces.md), not a second instance.<project>-<branch> (e.g. myapp-feature-x), so each agent gets its own
workspace, ports, and MCP registration.directory param and always
report the one project they booted with.Create. Name it after what it is for.
opencode-sandbox create <name> [--seed .] [--config ./opencode.jsonc] [--api-port <n>]
[--publish <port>] [--web]
--seed copies a directory into the fresh workspace before first start, and it copies
everything except .DS_Store files — no .gitignore, no skip list otherwise — so
for a large repo seed a pruned copy instead. references/project-context.md covers
whole vs partial seeding and how to move files in and out afterward. --web also
publishes the browser UI; leave it off unless the user wants to click around.
--api-port <n> publishes the raw opencode backend on 127.0.0.1:<n>, for attaching a
local opencode client to the same instance an agent is driving over MCP. --publish <container-port> or --publish <host-port>:<container-port> maps an extra host port
into the instance — repeatable — for anything else running in there you want to reach
from the host, like a dev server the agent started. Both bind 127.0.0.1 only, same as
the MCP bridge, and neither has inbound authentication.
Provider API keys are forwarded from your environment (ANTHROPIC_API_KEY,
OPENAI_API_KEY, GOOGLE_GENERATIVE_AI_API_KEY, OPENROUTER_API_KEY). With none set
the instance still runs on opencode's free hosted models, so a missing key is a
limitation to mention, not a blocker. create does not report which keys it forwarded —
check with docker exec ocsbx-<name>-opencode-1 opencode models if it matters.
Register. create prints the exact registration line, and opencode-sandbox url <name> reprints it. Run that line rather than composing the URL yourself — note that
url emits a Claude Code command, so it will not substitute into one. For Claude Code:
claude mcp add --transport http <name> http://127.0.0.1:<port>/mcp
For Codex, take the URL from that output and use
codex mcp add <name> --url http://127.0.0.1:<port>/mcp. Check with
codex mcp list; use a unique name and do not overwrite an unrelated registration.
Registration changes the selected client's configuration, never the other client's.
MCP servers load at session start, so the session that registers an instance cannot use it. Register, then start a new session in that directory.
Destroy when done. Instances keep running until removed, so close the loop:
claude mcp remove <name> && opencode-sandbox destroy <name>
In Codex, unregister with codex mcp remove <name> instead, then run the same
opencode-sandbox destroy <name>. Remove only the registration created for this instance.
destroy deletes the workspace volume with everything in it. Salvage first —
opencode-sandbox export <name> <dir> copies the whole workspace out (works even while
stopped), or opencode-sandbox fetch-url <name> if what's worth keeping is a git branch
with its history (see references/project-context.md). Confirm with the user if the
instance produced real work.
references/config.md — pinning a model or provider, giving the instance its own MCP
servers, loading plugins, and what to edit after creation. Note there is no theme setting.
Also covers gh: neither container ships it, the manual-install workaround, and why
gh auth login with the operator's own account defeats the isolation.references/project-context.md — seeding whole repos, tracked files only, or one
subdirectory; getting work back out with fetch-url and export, docker cp for
pushing a loose file in.references/workspaces.md — git worktrees inside an instance, what they require, and
when a second instance is the better answer.The MCP bridge has no inbound authentication. Anyone who can reach its port gets the full
tool surface — reading and writing files and running shell commands inside that instance's
/workspace. --api-port and --publish are the same story — no auth of their own, and
--publish opens whatever the agent happened to start. The CLI publishes all of these on
127.0.0.1 only. Never widen the bind to 0.0.0.0, forward a port, or put one behind a
public reverse proxy without a real auth layer in front of it.
The isolation protects the host from the instance, not the instance from itself. Anything seeded into the workspace is readable by whatever runs in there, so do not seed secrets.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
13 skills in this plugin
/claude-code-configConfigure Claude Code itself — settings-file precedence, permissions, hooks, env vars, and MCP registration, closed by a take-effect check. Use for "change a setting", "allow/deny a command", "add or move a permission rule", "set up a hook", "run something automatically whenever X happens", "always do Y every time", "add an environment variable", "register an MCP server", or "why isn't my setting taking effect"./claude-code-expertiseExpert map of Claude Code's extension surfaces for authoring and debugging extenders — skills, subagents, hooks, commands, plugins, marketplaces, MCP servers, and settings/permissions contracts. Use to decide which surface fits a need, to look up a surface's frontmatter or config contract, to author or debug a skill, subagent, hook, command, or plugin, or to answer how any Claude Code extension surface works. Not for changing settings, permissions, or hook wiring in a project - that is claude-code-config./datavizDesign data visualizations - charts, graphs, plots, and dashboards - that are correct, legible, and honest, in any medium. Consult this BEFORE writing any chart, graph, plot, or dashboard code, whatever the library (matplotlib, plotly, d3, Recharts, inline SVG) or output (static image, notebook, web app, deck). Use whenever a task involves picking a chart type, a color palette for data, dashboard or KPI-tile layout, axis and label formatting, or making a visualization colorblind-safe and light/dark-ready. Covers the data-shape to mark-type heuristic, chart anti-patterns to refuse (pie overuse, dual axes, truncated bar axes, rainbow scales, 3D), a brand-neutral colorblind-safe palette you can rebrand, composition, interaction and static degradation, and a final validation checklist. Data charts only - structural diagrams and deck theming are out of scope./deep-researchRun a deep, multi-source, fact-checked research investigation that ends in a cited report, not a single web lookup. Use when the user asks to "research X", "do a deep dive on", "find out everything about", "investigate", "compare the options for", "what's the state of the art on", or "give me a report with sources" — or poses a broad, open-ended question that one search cannot settle and that needs several sources cross-checked against each other. Runs the pipeline scope -> decompose into angles -> fan out searches -> dedupe and fetch sources -> extract falsifiable claims -> adversarially verify each load-bearing claim -> synthesize a confidence-ranked, per-claim-cited report that keeps negative findings. Prefer it over an ad-hoc search whenever being wrong is costly or the answer must be defensible./editor-project-configDesign the tracked per-repo editor configuration for VS Code (`.vscode/`) and Zed (`.zed/`) — settings overrides, extension recommendations, tasks, and debug configs that travel with the repo. Use when asked to "set up editor config for this project", "add a .vscode or .zed folder", "recommend extensions for this repo", "wire lint or tests into editor tasks", or when a repo's files open without syntax highlighting (extensionless scripts, odd filenames, JSONC named .json). Covers the surface map for both editors, the two association mechanisms (files.associations vs file_types), mirroring the repo's existing lint toolchain instead of inventing one, and keeping the two folders in parity./iterm2Configure iTerm2 and exploit the features that distinguish it from other terminal emulators. Use for any iTerm2 request: "set iTerm2 as my default terminal", "change a profile or theme", "my iTerm setting keeps reverting", "add a dynamic profile", "version-control my iTerm config", "install shell integration", "set up triggers / status bar / hotkey window / badges / captured output", "why didn't my `defaults write` stick", or "what iTerm2 features am I not using". Covers the preferences model (why iTerm2 silently reverts scripted changes and how to write them safely), dynamic profiles, tracking the config in a dotfiles repo, shell integration and its utilities, the macOS default-terminal binding, and the power-feature catalog.npx claudepluginhub hsb3/dotfiles-agents --plugin solo-skills