Start from the CLI
30m, 1h, 3h, 5h, or until-done.
Credits
Long Sessions use prepaid AI credits.- If credits are available, Dench starts the run and returns
runId,workflowRunId,status, andrunUrl. - If credits are empty, Dench returns
code: "ai_credits_required"and atopUpUrl. - If a running session exhausts credits, it pauses. Do not retry in a loop. Ask the human to top up, then resume the same run.
Recovery
In--json mode, failed starts return structured errors:
nextActions once. If the same blocker repeats, report it to the human instead of retrying.
Approval rules
Long Sessions still need human approval before risky actions:- publishing
- deploying
- spending money
- sending external messages
- accessing secrets
- changing production data