Advanced~24 minHazelJS
CLI, DNA, and Ops Runbooks
Operate with hazel agent doctor/run/logs/runs and version DNA—commands and stub vs prod distinction.
- Authors
- editorial-team
- Published
- Last reviewed
Progress is stored locally in this browser.
Direct answer
Ops loop: hazel agent doctor → DNA smoke (run --mock, stub tools) → app execute for truth → logs --timeline / Inspector → runs list.
Lesson: /learn/agentic-development/hazel-cli-agent-ops. Guide: /guides/design-an-agent-manifest.
Commands
bash
hazel agent doctor
hazel agent run ./agent.dna.json "Status of ORD-1001?" --mock
hazel agent logs --timeline .hazel/runs/timeline.jsonl
hazel agent runs list --dir .hazel/runs
| Path | Meaning |
|---|---|
hazel agent run | DNA bootstrap + stub tools |
App runtime.execute | Real @Tool / Skillgate / MCP |
runs resume|approve | File-store HITL intent; app still approveAndResume |
Runbook checklist
- Pull timeline for
executionId - Pause / revoke tool auth
- Kill switch (disable agent / deny PolicyEngine)
- Export timeline for postmortem
Artifact: Ops runbook: doctor, timeline pull, kill switch