Single Agent Workflow
A durable workflow for one agent operating across multiple sessions.
When to Use
- Work spans multiple sessions
- You need resumable context
- You want a clear audit trail
Setup
Choose one queue model:
- Global queue: use default
inbox - Scoped queue: create a project for a long-lived domain
bash
# Optional scoped queue
hzl project create backendAdd Work
bash
# Global queue task
hzl task add "Investigate flaky test"
# Scoped task
hzl task add "Implement auth middleware" -P backend -s readySession Start (resume or claim)
bash
# Global (inbox)
hzl workflow run start --agent my-agent --project inbox
# Scoped
hzl workflow run start --agent my-agent --project backendRecord Progress
bash
hzl task checkpoint <id> "Middleware complete; next step is token validation tests"Complete or Block
bash
hzl task complete <id>
# or
hzl task block <id> --comment "Waiting for security review"Resume Later (manual inspect path)
bash
hzl task list --status in_progress --agent my-agent
hzl task show <id>Notes
--project is required on workflow run start. Use --any-project if the agent operates across all pools (e.g. a coordination agent):
bash
hzl workflow run start --agent coordinator --any-projectBest Practices
- Keep checkpoints specific and resumable.
- Prefer
workflow run startat session boundaries. - Use explicit
claim <id>when you need custom prioritization. - Use scoped projects only when queue boundaries help.