用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/coder/mux --skill dev-desktop-sandbox命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Sub-agent powered code reviews spanning correctness, tests, consistency, and fit
Terminal-Bench integration for Mux agent benchmarking and failure analysis
Regenerate high-resolution README screenshots from Storybook stories. Use this skill when visual diffs are detected in any story under "Docs/README Screenshots", or when story data/layout changes require updated documentation assets. Triggers on: visual regressions in readme screenshot stories, changes to App.readmeScreenshots.stories.tsx, changes to mockFactory.ts that affect screenshot stories, or explicit user request to update README images.
基于 SOC 职业分类
正在显示 SKILL.md
| name | dev-desktop-sandbox |
| description | Run isolated mux desktop (Electron) instances (temp MUX_ROOT + free ports) |
make dev + make start (Electron) uses MUX_ROOT for persisted state (config, sessions, worktrees, etc.). Running multiple Electron instances against the same mux root is noisy and risky during development.
This skill documents the repo workflow for starting multiple desktop dev instances in parallel (including from different git worktrees) by giving each instance its own temporary MUX_ROOT.
make dev-desktop-sandbox
MUX_ROOT directoryproviders.jsonc (provider config)config.json (project list)$MUX_ROOT, then ~/.mux-dev, then ~/.mux), so a root with only
config.json doesn't drop provider config--clean-providers (including Bedrock's AWS_REGION and
AWS_BEARER_TOKEN_BEDROCK; shared AWS credentials like AWS_PROFILE are
kept); otherwise only *_BASE_URL env vars that would shadow a seeded
providers.jsonc entry that has an apiKey but no explicit baseUrl
(API key env vars are always kept so env-key fallback still works)MUX_ENABLE_TUTORIALS_IN_SANDBOX=1 opts back in)make dev with:
MUX_ROOT=<temp>MUX_VITE_PORT=<free-port>make build-static (Electron expects dist/splash.html)bunx electron .) with:
MUX_ROOT=<temp>MUX_DEVSERVER_HOST=127.0.0.1MUX_DEVSERVER_PORT=<vite-port>MUX_SERVER_PORT=0 by default (avoids EADDRINUSE if your config.json pins apiServerPort)CMUX_ALLOW_MULTIPLE_INSTANCES=1 (so you can run alongside another dev instance)bash.monitorWhen launching an Electron sandbox for dogfooding, prefer a monitored background bash so Mux wakes the workspace on Vite/Electron readiness or startup failures without manual polling.
bash({
script: "make dev-desktop-sandbox",
display_name: "Desktop Sandbox",
run_in_background: true,
timeout_secs: 1800,
monitor: {
filter: "Vite|ready|localhost|Electron|ERROR|EADDRINUSE|failed|Failed",
cooldown_ms: 1000,
max_events: 5,
},
});
After a readiness wake, use the sandbox output/ports shown in the matched logs to connect with the Electron or agent-browser workflow. Use task_await only when the wake line is not enough context.
# Start with a clean instance (do not copy providers or projects)
make dev-desktop-sandbox DEV_DESKTOP_SANDBOX_ARGS="--clean-providers --clean-projects"
# Skip copying providers.jsonc
make dev-desktop-sandbox DEV_DESKTOP_SANDBOX_ARGS="--clean-providers"
# Clear projects from config.json (preserves other config)
make dev-desktop-sandbox DEV_DESKTOP_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-desktop-sandbox
# Keep the sandbox root directory after exit (useful for debugging)
KEEP_SANDBOX=1 make dev-desktop-sandbox
# Pin Vite port
VITE_PORT=5174 make dev-desktop-sandbox
# Control how long we wait for Vite to come up (ms)
VITE_READY_TIMEOUT_MS=120000 make dev-desktop-sandbox
# Re-enable tutorials for sandbox dogfooding
MUX_ENABLE_TUTORIALS_IN_SANDBOX=1 make dev-desktop-sandbox
# Enable/pin Electron remote debugging port (defaults to an auto-picked free port)
ELECTRON_DEBUG_PORT=9223 make dev-desktop-sandbox
# Disable Electron remote debugging entirely
ELECTRON_DEBUG_PORT=0 make dev-desktop-sandbox
# Override the internal API server port (defaults to 0/random for sandboxes)
MUX_SERVER_PORT=3772 make dev-desktop-sandbox
# Override which make binary to use
MAKE=gmake make dev-desktop-sandbox
MUX_E2E=1)Even with a unique MUX_ROOT, Electron's userData directory (localStorage, window state, single-instance lock, etc.) is not automatically relocated unless MUX_E2E=1 is set.
If you want full isolation (including userData), run:
MUX_E2E=1 make dev-desktop-sandbox
providers.jsonc may contain API keys.secrets.json.