Start a Long Session
Use a clear goal and duration. Include safety limits in the goal.30m, 1h, 3h, 5h, or until-done.
If you run from a fresh machine, authenticate first:
Credits
Long Sessions use prepaid AI credits. If credits are empty, the CLI and API return a structured blocker:Paused Runs
If a run pauses because credits are empty:- Open the run detail page.
- Top up credits through the approved billing path.
- Click
Resume. - Confirm the same run moves back to
startingorrunning.
Artifacts And Suggested Work
Long Sessions should save durable work as artifacts:- reports
- research notes
- content drafts
- patches
task_suggestionartifacts for follow-up work
Safe And Risky Goals
Safe goals can include negated risky words:Failure Recovery
| Problem | What to do |
|---|---|
missing_goal | Retry with a clear goal and safety limits. |
invalid_duration | Use 30m, 1h, 3h, 5h, or until-done. |
unauthorized or agent_session_invalid | Run dench sessions --json, then dench use <session-key-or-workspace-slug>, or run dench onboard again if the session expired. |
ai_credits_required | Top up credits from the topUpUrl, then retry or resume. |
| Sandbox setup failed | Save the error as an artifact or log, then ask the human whether to retry. Do not keep retrying silently. |
| Missing Daytona, Bedrock, 1Password, or Exa credentials | Report the missing credential and wait for an admin. Do not invent secrets. |