Using the workspace
Keep going while you're away
Move a running job, or a whole task, to your always-on runner before you close the laptop. It carries on there and its result comes back to you.
Dus works on your computer while Duscode is open. When you want to close the laptop in the middle of a job, hand the job to your always-on runner: Duscode's own engine running on a server you control (see Watch for how to install it with one card). The job goes on there and you find the result waiting when you come back.
Hand a job off
- A job: open Settings → Scheduled jobs → Engineering jobs and press Keep going while I'm away on it.
- A task: open the task's menu (⋯) and choose Keep going while I'm away…. Say what Dus should finish; the task goes as a job with that brief.
- From a terminal:
duscode --handoffmoves the one running job of the project you are in. Use--job IDor--session ID --objective "…"to choose.
What goes with it:
| What | How |
|---|---|
| The work so far | The task's worktree, uncommitted and new files included, as a commit on its own branch in the runner's private copy of your repository. Your own files and index are not touched. |
| What it has done | The job's record and the receipts of every step, so the runner checks what really happened (for example a push that was halfway through) instead of doing it again. |
| The brief and the budget | The same objective, job profile and budget. The money it already spent counts. |
| Watch and Local CI | Your Watch systems, standing orders and the Local CI switch, as they are when you leave. |
If the runner can't be reached, nothing moves: the job stays on your computer and goes on there, and Duscode tells you why.
While you're away
The job shows On server in the list. Your computer doesn't run it and won't resume it by mistake. On the runner it builds, pushes, checks and merges as it would here, under your merge rule. Steps that need an AI model to write code only run there if you chose to give the runner a model key; otherwise the runner sends the job back to you at that point.
Jobs started from your issue tracker or from Slack and Teams carry on the same way, and their issue or thread hears the result.
When you're back
Duscode collects what the runner did when it starts and every few minutes. A finished job's result is written to the job once (merged, with its commit, or stopped, with the reason), and you get one notice.
To carry on yourself before it finishes, press Take it back (or run duscode --handoff --back --job ID). The runner stops the job and sends back its steps and its worktree. If you didn't change the task meanwhile, the job continues in the same task; if you did, it continues in a new task so your own edits are never overwritten.