ROIpad ← Back to Search
github.com › repository issue

[Feature Request] Optimize Worker Workspace Size and Enable Headless IPC

HKUDS/ClawTeam
Status: Open
Opened: Mar 20, 2026
Comments: 1
## Problem When spawning multiple worker agents in ClawTeam, each worker creates a full copy of the workspace, resulting in: | Issue | Impact | |-------|--------| | **59MB per worker** | Disk space explodes with 5-10 agents | | **Slow startup** | Copying node_modules/.venv takes 10-30s | | **Lost env vars** | API keys not inherited by workers | | **CLI blocking** | Interactive prompts deadlock in headless mode | ## Proposed Solution 1. **Whitelist Protection**: Only preserve essential files (openclaw.json, skills/, scripts/, .env) 2. **Symlink Dependencies**: Share node_modules/.venv via symlinks instead of copying 3. **Headless Wrapper**: Add `scripts/openclaw_worker.sh` for non-interactive execution ### Expected Results - Workspace size: 59MB → ~700KB (**98.8% reduction**) - Startup time: 10-30s →
Python
View on GitHub ↗
Related Content