Local Testing
| Environment | local_test.py |
|---|---|
| No Docker | from env import env |
| Docker | env.connect_url("http://localhost:8765/mcp") |
Testing Scenarios Directly
Scenarios are async generators.hud.eval() drives them automatically, but you can test the logic directly—this is exactly what runs at the start and end of hud.eval():
hud.eval() will behave identically.
Mocking
env.mock() intercepts at the tool layer—agents only see tools:
Hot-Reload
For Docker environments,hud dev -w path reloads Python on save:
Debugging Build Failures
hud build runs the exact same pipeline as New → Environment on hud.ai—so if it passes locally, it’ll work in production. If the build fails or the container crashes on startup, use hud debug to run a 5-phase compliance test: