Using the workspace

Sync across devices

One Duscode account on every device. One task list everywhere; watch and steer a task running elsewhere, move it in one click, apply its result here. A task runs in one place at a time.

Sign in to Duscode once on each device (Settings → Account → Account & plan) and your work follows your account: the desktop app, Duscode in the browser, the terminal app, the VS Code extension, a cloud workspace and your always-on runner all see the same projects and tasks.

Sync is in beta. It is on by default once you are signed in, and you choose what syncs in Settings → Account → Sync.

What syncs

What What travels
Projects Your project list, each project's git remote, and the folder it is in on each computer.
Tasks Each task's title and status, its branch and pull request, its cost, and where it is running.
Owner's Calls The questions and approvals Dus is waiting on, so you can answer them on any device.
Conversation transcripts What you said, what Dus said, one line per step ("Read src/pricing.ts"), the plan and what Dus waits on. Never a tool's output, a file's contents or a diff. End-to-end encrypted with your sync key (below).
Work Ledger Finished and failed entries, shown on your other computers under On your other devices in the Ledger.
Project memory What Dus has learned about each project (and about you). A memory that looks like a secret is never sent.
Settings Preferences only: theme and palette, editor and terminal font size, git style, quiet hours, locale and the like. Never keys, the vault, budgets or this computer's limits.
Standing orders Listed so you can choose them now. They follow in a later release.

Each kind says Synced or On this computer only next to its switch.

Code never goes through sync. It moves through your project's own git remote, the same way it does when you push.

One task list, everywhere

Tasks lists this computer's tasks first, then On your other devices: every task of your account on another computer, a cloud workspace or your always-on server, with where it runs, its project, branch and cost. A task waiting on you says your call.

Beside the filter, one small state says whether this computer is in sync: Synced, Syncing (with how many changes wait), Offline (your work waits here and goes when you're back) or Not synced (signed out). It says Synced only when nothing is waiting to send.

Open a task running elsewhere

Click a task under On your other devices to open it live:

  • Its transcript, updating as Dus works there. Scroll up and choose Show earlier for older lines.
  • Send a message. It reaches Dus there at his next step.
  • Answer its calls. Approve or decline right in the view; the answer is applied where it runs, once.
  • Continue on this computer. The other device stops at its next safe point and hands the task over with its unsaved work (below); Dus carries on here from where the conversation was.
  • Apply here… Shows the result's changes (files, lines added and removed, the diff) first. Then either apply them to your files (not committed; if you have unsaved changes in the same files, they are saved first under refs/duscode/before-apply/<task> and the change is applied only if it fits, otherwise nothing changes) or check it out as a task of its own, which leaves your files untouched.

From a task on this computer, the task menu's Send to cloud… hands it, with its unsaved work, to a running cloud workspace that has the same project open. If none is running, Duscode says what to do.

Your sync key

Transcripts can hold code, so they are sealed on your computer with a sync key that only your devices have. Duscode Cloud stores them but can't read them.

The first computer to sync makes the key. On each other device, open Settings → Account → Sync on a computer that has it, choose Show sync code, and type the DUS1-… code once on the new device. Until then the new device lists your tasks and can steer them and answer their calls, but can't read their transcripts. Keep the code to yourself: anyone with it and your account could read them.

Running on one device at a time

A task runs in one place at a time. The task list and Settings → Account → Sync show where: Running on: your laptop, Cloud workspace or Always-on server. Every other device sees it live and can:

  • Answer an Owner's Call. Approve on your phone or in the browser; the answer is applied where the task runs, once. If you answered on two devices, the first answer counts and the other says it was already answered.
  • Send a message. It waits for the task's runner and is delivered there once.
  • Take over. The device running the task stops at its next safe point, writes its unfinished work (changed and new files) as a commit on the branch duscode-handoff/<task> in your project's git remote, and hands the task to you. Your device fetches that commit and continues in a new task, with the unfinished work still unfinished, so nothing is committed in your name. The other computer's own files are not touched.

If the device running a task goes quiet (the laptop is closed), its hold on the task runs out after a minute or two and another device can take over straight away. When the laptop comes back it sees the task now runs elsewhere and stops its copy.

Offline

Duscode works offline. What you do waits on your computer and is sent when you are back online. Each change has its own id, so nothing is lost and nothing is recorded twice, even if the connection dropped halfway through sending.

Privacy

  • Encrypted with your own key. Everything synced is encrypted in Duscode Cloud with a key that belongs to your account, itself protected by Duscode Cloud's key. Another account can't read your data, even by guessing its ids.
  • Transcripts end to end. On top of that, transcripts are sealed on your computer with your sync key, which Duscode Cloud never has. Messages you send to a task and your answers to its calls are protected by the account key only, so the cloud can deliver them.
  • Never used for training. Synced data, transcripts included, is never used to train AI models, ours or anyone's.
  • Choose what syncs. Turn each kind on or off in Settings → Account → Sync. Turning one off stops anything new of it leaving your computer.
  • Team policy. A team owner or admin can switch a kind off for every member (for example, keep transcripts off). Members see it as off by your team's policy.
  • Region. You can record the region you want your data in. Duscode Cloud runs in one region (UK) today; your choice is kept and honoured as more regions open.
  • Export and delete. Export synced data downloads everything synced as a file. Delete synced data removes it from Duscode Cloud with its key; what is on each computer stays there. Deleting your Duscode account deletes it too.

Something missing or wrong? Email support@duscode.com.