Production Checklist
Use this checklist before and after deploying AgentHub in a shared environment.
Preflight Checklist
- Define explicit
safe_pathsfor each team/project root. - Validate
worktree.default_rootexists and is writable. - Confirm runtime user permissions for repository paths.
- Confirm Node/Rust build artifacts are reproducible in CI.
- Confirm rollback plan (previous binary + config snapshot).
Security Baseline
- Run AgentHub as a non-root user.
- Keep network exposure minimal (private network + reverse proxy).
- Use TLS at the edge.
- Enforce strong user credentials and periodic rotation.
- Avoid putting sensitive directories under
safe_paths.
Data and Backup
AgentHub persists runtime data under ~/.agenthub/ by default.
Minimum backup targets:
~/.agenthub/agenthub.db- deployment
config.toml
Recommended cadence:
- Daily snapshot for active environments
- Extra snapshot before each upgrade
Upgrade Runbook
- Stop new task submissions.
- Backup
agenthub.dbandconfig.toml. - Deploy new binary/config.
- Restart service.
- Run smoke checks:
- login
- create/start one test agent
- session replay after refresh
- Monitor logs for startup/runtime errors.
Failure Rollback Rule
If smoke checks fail or critical flows regress:
- Restore previous binary.
- Restore previous config.
- Restore database snapshot when schema compatibility is uncertain.
- Re-run smoke checks before reopening service.