Using the workspace

Assign work from your issue tracker

Label an issue "duscode" on GitHub, GitLab, Linear or Jira, or mention @duscode, and Dus does it end to end and posts the Proof of Work back on the issue.

You can hand Dus an issue from the tracker your team already uses, the same way you'd assign it to a colleague. Add the duscode label, or write @duscode in a comment. Dus picks it up and finishes the job. It doesn't stop at a pull request for someone else to deal with:

  1. A fresh worktree. The work happens in its own task and worktree, never in your checkout.
  2. The change, with tests. Dus builds what the issue asks for and adds tests that prove it.
  3. Local CI on the change and on the merge result. The project's checks run on the exact commit and on what main would look like after the merge (see Shipping).
  4. Your merge card, or your standing order. If the project's merge rule asks you first, you get the merge card. If you've told Dus to merge once everything is green, it merges.
  5. Deploy, if you want it. After the merge, Dus can deploy to the project's deploy target.
  6. Proof of Work on the issue. Dus comments on the issue with what ran: each step, the Local CI result and the merge commit. The comment is built from Duscode's own records, so nothing in it is typed by hand.

Turning it on

  1. Open the project.
  2. Open Settings → Scheduled jobs.
  3. Under Work from your issue tracker, switch on Take work from labelled issues.

Dus checks every 5 minutes. It uses your own sign-ins: the GitHub CLI (gh), the GitLab CLI (glab), and the Linear and Jira tokens from Integrations. Nothing has to reach your computer from outside, so you don't open a port and you don't set up a webhook. GitHub and GitLab issues come from the project's own repository. For Linear and Jira, set the team key or project key in the same section.

Only labels and mentions added after you switch it on count. Older ones don't start any work.

Who can give Dus work

Setting Who starts work
Collaborators (the default) People who can push to the repository on GitHub or GitLab, members of your Linear workspace (not guests), and licensed users on your Jira site. Also anyone on your list.
Only these people Only the logins or emails you list.

If anyone else labels an issue or mentions Dus, no work starts. You get a decision in the bell and in Settings → Scheduled jobs:

  • Run it: do this one issue.
  • Always allow name: do this one, and let this person assign work from now on.
  • Decline: do nothing. Dus doesn't comment on the issue.

Issue text is never an instruction

People outside your team can write issues. Dus reads an issue to understand the work, but never treats its text as instructions to follow. An issue can't:

  • raise the budget;
  • change who may assign work;
  • skip Local CI or merge without your merge rule;
  • make Dus send your code or secrets anywhere.

The issue text is marked as outside text for Dus. If it asks Dus to fetch a website or send data out, you get asked first, in every mode. A website mentioned only in an issue doesn't count as one you named.

Budget and limits

  • Each issue has its own budget: $5 by default. You can choose $2, $5, $10 or $20. When a job reaches its budget, it stops, the issue is told why, and you can press Try again. That gives the job one more budget of the same size.
  • At once sets how many issue jobs can run in one repository at the same time. The default is 1. Other issues wait their turn.
  • Today's budget from Budgets still applies. If less than one issue's budget is left today, issues wait until tomorrow.

What gets posted on the issue

When What
Dus starts A short note saying it's working on the issue, and its budget
Ready to merge and waiting for you The Proof of Work so far, with the Local CI result
Merged (and deployed, if you turned that on) The Proof of Work and the merge commit
Stopped (budget, blocked, cancelled) Why it stopped

Each comment is posted once, even if Duscode restarts. A long Proof of Work is shortened to fit the tracker's limit. GitHub allows 65,536 characters and Jira 32,767. The comment says that it was shortened.

If Duscode closes in the middle of a job

The job is saved at every step. When Duscode starts again, the job carries on from the last recorded step. Steps that already ran aren't repeated, and the issue still gets its Proof of Work. Each issue's job also appears under Engineering jobs in the same section of Settings, where you can cancel or resume it.

Ready-made jobs

Settings → Scheduled jobs also lists Ready-made jobs. Each one is a skill on a schedule, with its own budget and limits on what it may do. One click adds it to your scheduled jobs.

Job When Budget What it may do
Work from your issue tracker When an issue is labelled $5 an issue Described on this page
Issue triage Weekdays at 08:30 $1 a run Comment on and label new issues as ready, needs info or duplicate. It never changes code.
Weekly dependency upkeep Mondays at 07:00 $3 a run Update dependencies. The changes merge only after Local CI passes.
Pull request review On each pull request $0.50 a review Comment only. It never pushes or merges.
Flaky-test hunt Wednesdays at 02:00 $2 a run Fix tests that sometimes fail. It never skips or deletes a test.
Security advisory fixes Daily at 06:00 $3 a run Open a fix pull request for each advisory that applies to the project. Local CI checks it.
Nightly production health brief Daily at 22:00 Free Read Duscode's own records: what Watch saw, what was fixed, and what's waiting for you.

Jobs that read issues or advisories run with that text marked as outside text, like issue jobs. Anything that could send data out asks you first.

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