Set up an isolated Git worktree environment for parallel agent execution.
Creates an isolated Git worktree with configured ports and dependencies for running parallel agent instances. Use this to set up isolated environments for concurrent development or testing.
/plugin marketplace add melodic-software/claude-code-plugins/plugin install google-ecosystem@melodic-softwareSet up an isolated Git worktree environment for parallel agent execution.
$1: Worktree path (e.g., trees/abc123)$2: Backend port (e.g., 9105)$3: Frontend port (e.g., 9205)You are setting up an isolated worktree environment for agent parallelization.
Ensure all three arguments provided:
$1$2$3If any missing, report what's needed.
Create .ports.env file in the worktree:
BACKEND_PORT=$2
FRONTEND_PORT=$3
VITE_BACKEND_URL=http://localhost:$2
Copy main environment file and append port overrides:
# Copy base .env
cp .env $1/.env
# Append port configuration
cat $1/.ports.env >> $1/.env
If there's a server-specific .env, do the same:
cp app/server/.env $1/app/server/.env
cat $1/.ports.env >> $1/app/server/.env
If .mcp.json exists, copy and update paths:
.mcp.json to worktreeplaywright-mcp-config.json)Backend:
cd $1/app/server && uv sync --all-extras
Frontend:
cd $1/app/client && bun install
If there's a database reset script:
cd $1 && ./scripts/reset_db.sh
Run validation checks:
.ports.env created.env files configuredReport installation status:
{
"success": true,
"worktree_path": "$1",
"backend_port": $2,
"frontend_port": $3,
"steps_completed": ["ports", "env", "deps", "db"]
}
slot = hash(adw_id) % 15