Allows running multiple parallel dev server instances by isolating their file roots.
Install
mkdir -p .claude/skills/dev-server-sandbox && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/8991" && unzip -o skill.zip -d .claude/skills/dev-server-sandbox && rm skill.zipInstalls to .claude/skills/dev-server-sandbox
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Run multiple isolated mux dev-server instances (temp MUX_ROOT + free ports)Key capabilities
- →Create isolated MUX_ROOT directories
- →Seed configuration files independently
- →Strip conflicting environment variables
- →Assign free ports for parallel execution
- →Disable tutorials in sandbox environments
How it works
It creates a temporary directory for the MUX_ROOT, seeds it with necessary configuration files, strips conflicting environment variables, and launches the server on an available port.
Inputs & outputs
When to use dev-server-sandbox
- →Testing multiple branches simultaneously
- →Running parallel dev servers in git worktrees
- →Isolating backend test environments
About this skill
dev-server sandbox instances
make dev-server starts the mux backend server, which uses a lockfile at:
<MUX_ROOT>/server.lock(defaults to~/.mux-dev/server.lockin development)
This means you can only run one dev server per mux root directory.
This skill documents the repo workflow for starting multiple dev-server instances in parallel (including from different git worktrees) by giving each instance its own temporary MUX_ROOT.
Quick start
make dev-server-sandbox
What it does
- Creates a fresh temporary
MUX_ROOTdirectory - Copies these files into the sandbox if present (unless disabled by flags):
providers.jsonc(provider config)config.json(project list)- Each file is seeded independently from the first root that has it
(
$MUX_ROOT, then~/.mux-dev, then~/.mux), so a root with onlyconfig.jsondoesn't drop provider config
- Provider credential env vars are stripped from the server's env when they
could silently override or mismatch the intended setup: all of them with
--clean-providers(including Bedrock'sAWS_REGIONandAWS_BEARER_TOKEN_BEDROCK; shared AWS credentials likeAWS_PROFILEare kept); otherwise only*_BASE_URLenv vars that would shadow a seededproviders.jsoncentry that has anapiKeybut no explicitbaseUrl(API key env vars are always kept so env-key fallback still works) - Picks free ports (
BACKEND_PORT,VITE_PORT) - Disables tutorials by default inside the sandbox (
MUX_ENABLE_TUTORIALS_IN_SANDBOX=1opts back in) - Allows all hosts (
VITE_ALLOWED_HOSTS=all) so it works behind port-forwarding domains - Runs
make dev-serverwith those env overrides
Agent usage with bash.monitor
When you need the sandbox to keep running while you continue or end the turn, start it as a monitored background bash. The monitor wakes the workspace on useful server output; call task_await only if you need surrounding logs.
bash({
script: "make dev-server-sandbox",
display_name: "Dev Server Sandbox",
run_in_background: true,
timeout_secs: 1800,
monitor: {
filter: "ready|listening|localhost|ERROR|EADDRINUSE|failed|Failed",
cooldown_ms: 1000,
max_events: 3,
},
});
Use this for line-oriented server readiness/errors. For external status polling (PR checks, deployment health, remote CI), use a background task/workflow monitor instead.
Options
# Start with a clean instance (do not copy providers or projects)
make dev-server-sandbox DEV_SERVER_SANDBOX_ARGS="--clean-providers --clean-projects"
# Skip copying providers.jsonc
make dev-server-sandbox DEV_SERVER_SANDBOX_ARGS="--clean-providers"
# Clear projects from config.json (preserves other config)
make dev-server-sandbox DEV_SERVER_SANDBOX_ARGS="--clean-projects"
# Use a specific root to seed from (default: per-file from $MUX_ROOT, ~/.mux-dev, ~/.mux)
SEED_MUX_ROOT=~/.mux-dev make dev-server-sandbox
# Keep the sandbox root directory after exit (useful for debugging)
KEEP_SANDBOX=1 make dev-server-sandbox
# Pin ports (must be different)
BACKEND_PORT=3001 VITE_PORT=5174 make dev-server-sandbox
# Re-enable tutorials for sandbox dogfooding
MUX_ENABLE_TUTORIALS_IN_SANDBOX=1 make dev-server-sandbox
# Override which make binary to use
MAKE=gmake make dev-server-sandbox
Security notes
providers.jsoncmay contain API keys.- The sandbox root directory is created on disk (usually under your system temp dir).
- This flow intentionally does not copy
secrets.json.
When not to use it
- →Single-instance development environments
- →Production deployment scenarios
Prerequisites
Limitations
- →Does not copy secrets.json
- →Requires manual port management if pinning
How it compares
This approach enables running multiple backend instances in parallel without lockfile conflicts, which is not possible with the standard single-root configuration.
Compared to similar skills
dev-server-sandbox side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| dev-server-sandbox (this skill) | 0 | 2mo | Review | Advanced |
| applescript | 28 | 8mo | Review | Advanced |
| bazel-build-optimization | 14 | 2mo | No flags | Advanced |
| home-assistant-manager | 9 | 8mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by coder
View all by coder →You might also like
applescript
martinholovsky
Expert in AppleScript and JavaScript for Automation (JXA) for macOS system scripting. Specializes in secure script execution, application automation, and system integration. HIGH-RISK skill due to shell command execution and system-wide control capabilities.
bazel-build-optimization
wshobson
Optimize Bazel builds for large-scale monorepos. Use when configuring Bazel, implementing remote execution, or optimizing build performance for enterprise codebases.
home-assistant-manager
komal-SkyNET
Expert-level Home Assistant configuration management with efficient deployment workflows (git and rapid scp iteration), remote CLI access via SSH and hass-cli, automation verification protocols, log analysis, reload vs restart optimization, and comprehensive Lovelace dashboard management for tablet-optimized UIs. Includes template patterns, card types, debugging strategies, and real-world examples.
swarm-advanced
ruvnet
Advanced swarm orchestration patterns for research, development, testing, and complex distributed workflows
windows-expert
jackspace
Expert guidance for Windows, PowerShell, WSL interop, and cross-platform development
bash-linux
davila7
Bash/Linux terminal patterns. Critical commands, piping, error handling, scripting. Use when working on macOS or Linux systems.