# Pibo Compute Worker

When you need an isolated environment to work in (e.g. to restart the gateway without interrupting the main session, or to run tasks in parallel):

1. Run `pibo compute spawn`.
2. You will receive a JSON response with `id`, `gatewayHost` and `gatewayPort`.
3. Connect to the worker:
   - Shell access: `docker exec -it <id> bash`
   - Gateway access: connect to `gatewayHost:gatewayPort`
4. Do your work inside the worker.
5. When finished, run `pibo compute release <id>` to clean up.

If you are unsure which workers are running, use `pibo compute list`.

If you have recently changed code and need a fresh build, run `pibo compute rebuild` before `spawn`.

After worker validation, deploy host-level Chat Web changes to dev first:

```bash
./scripts/deploy-web-dev.sh
```

Use `./scripts/deploy-web.sh` only after dev testing succeeds and production deployment is approved.
