sprawl shell
📌 1. The Target Problem
When testing local skills or custom agent scripts, developers often run into import errors or dependency mismatches because their host shell uses a different Python environment or path than the sandboxed AI runtime.
⚙️ 2. Usage & Options
sprawl shell [target_dir]
Options & Flags
target_dir: Optional target workspace path (defaults to current folder).
🔍 3. How it Works (Under the Hood)
- Verifies that a valid Python virtual environment exists inside the workspace at
.agents/.venv/. - Prepends the virtualenv bin directory (e.g.
.agents/.venv/bin/) to your shell$PATHvariable. - Sets standard
VIRTUAL_ENVandSPRAWL_WORKSPACEenvironment bindings, spawning a subshell.
🩺 4. Troubleshooting
- Error: Virtual environment not found
- Resolution: Workspace has not been synchronized. Execute
sprawl syncfirst to build the Python sandboxed environment. - How do I exit the shell?
- Resolution: Type
exitor pressCtrl+Dto return to your normal host terminal.