Long Sessions let an agent work autonomously for a bounded period. They run in an isolated sandbox, stream progress to Dench, save artifacts, ask before risky actions, consume prepaid AI credits, and stop when done or blocked.Documentation Index
Fetch the complete documentation index at: https://dench.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
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