Connecting Your Stack
HUD wraps your existing infrastructure without rewriting it:Making Databases Safe
Agents need isolated state. Three patterns work: In-memory SQLite — fastest, resets automatically:Mocking External Services
env.mock() intercepts at the tool layer. Agents only see tools, so this is usually all you need:
Docker vs No Docker
| Pattern | When to Use | Examples |
|---|---|---|
| No Docker | Pure Python, API integrations | Web research, LLM grading |
| Docker | System dependencies, persistent services | VNC, PostgreSQL, browsers |
Pattern 1: No Docker
Import and test directly:Pattern 2: Docker
Connect to the running container instead of importing. Same API, different transport—because your tools now run inside the container where dependencies live:Hot-Reload
hud dev -w path reloads Python on save. System services (postgres, VNC) persist.
Rebuild (hud build) when: Dockerfile, system packages, or dependencies change.