Skip to content

Web Monitor

From an experiment workspace, run deepbuilder web, or enter /web in its TUI. The launcher prints the actual URL and port and reuses a running monitor for the same workspace. If the default port (8765) is occupied, a free port is selected.

Terminal window
deepbuilder web --workspace /path/to/workspace
deepbuilder web --workspace /path/to/workspace --port 0 --open
deepbuilder web stop --workspace /path/to/workspace

The task overview is paginated. Each task has its own page with the shared TUI statistics, worker pages, a metric curve, and stage lineage. Parent and restoration edges come from explicit candidate IDs in stage logs; unknown relationships are not inferred from row order. Curves show stage history; the Best card uses the current TUI projection. Final reports open from the task page.

The default listener is 127.0.0.1. In an SSH session, copy the printed port-forward command, run it on your local computer with your own SSH login, and open the printed URL locally. VS Code Remote users can forward the printed port from the Ports panel. --open skips automatic browser launch in SSH sessions. An explicit --host 0.0.0.0 listens on all IPv4 interfaces.

The monitor runs in a separate process with reduced scheduling priority. Log scans run in a background thread, and requests receive the previous cached snapshot while a scan is running. It makes no LLM requests and changes no research state.

Overview refresh defaults to five seconds and slows down automatically when scans take longer. Task details are loaded only for pages a browser requests, cached for at least 15 seconds, and unchanged files are not reread. Background browser tabs pause polling. Closing the TUI does not stop the monitor; /web stop or deepbuilder web stop does.

For manifest-based offline reports, deepbuilder monitor-trace --manifest ... --output ... writes a self-refreshing HTML trend view.

Worker rows share a cached sampler with the host resource summary. Process and CPU snapshots refresh at most every five seconds and GPU queries at most every ten seconds per monitor process. CPU covers processes whose working directory belongs to the worker plus their descendants, normalized by observed CPU affinity; shared coordinator overhead cannot be attributed to a single worker. First samples and inaccessible processes display —.

GPU IDs are physical device indices, taken from active leases or worker process mappings. Utilization and VRAM marked dev are device-wide readings, not an estimate of exclusive worker use. shared marks other observed GPU processes on that device. Click a worker row in the expanded TUI task card for its full list, or use /status N.

interfaces/ui/web_monitor/page.py assembles packaged HTML, CSS, and JavaScript into one inline page, so no CDN or browser build step is needed with an installed wheel. Python data.py reads and caches logs; projection.py transforms recorded timestamps and ancestry, keeping missing or non-finite timestamps unknown.

Browser DOM regression tests (development only, Node 24):

Terminal window
npm --prefix tests/web_monitor ci
npm --prefix tests/web_monitor test
python -m pytest tests/test_web_monitor.py tests/test_monitor_trace_html.py