Creating and Running a Task
Create one
Open Tasks and click Create Task.
Give it a title, then write the description — this is the brief the agent works from, so it's worth spending a minute on. Pick the repositories it should work in and the branch each should start from, and choose the agent and model. To put the Task in a Project, choose one under Project (optional).
Directly under the description, Acceptance criteria (optional) takes one criterion per line: "One per line. Write things you could check by looking at the site — QA checks each one." After review, QA checks each one on a preview of the change — see QA on a preview. QA checks only what's in this box, never criteria written into the description. While the Task is in the backlog, you can change them with Edit; once it starts, they're fixed. A Task converted from an Assistant session gets its criteria from the session's spec.
Click Create. It starts as soon as a slot is free.
Tick After the PR is merged, deploy to production to have Deployment.io deploy the change to production once you merge it. See Deploy After Merge.
Turn cap
The turn cap is the most turns the agent can take in one run. The default is 100, which suits most Tasks. To change it, open Advanced options and set Turn cap, from 1 to 200.
A Task converted from an Assistant session gets a cap suggested from how big the job is: 60 turns for a small job, 100 for a medium one and 150 for a large one. You can change the cap again when you start the Task or re-run it.
Writing a good description
This is the single biggest lever on whether you get back something you can merge. The agent can read your code, but it can't read your mind.
Say what should change, where, and what "done" looks like. Mention constraints it should respect and anything you explicitly don't want touched. A specific brief is usually the difference between one round of review and three.
If you'd rather work it out interactively, start an Assistant session and convert it — you'll get a far better brief than you'd write cold.
Writing acceptance criteria
Write things you could check by looking at the site: "the pricing page lists three plans" or "the sign-up button is visible on a phone". A criterion about a page that needs a sign-in is checked as a test role when the site calls an API whose service has test users with Browser sign-in turned on, or when a service that serves its own pages has them — name the role in the criterion: "Signed in as owner, the Billing page shows the current plan". Otherwise it comes back as not checked.
For an API, write the request and what it answers: "GET /version answers {"version":"4"}", "POST /items with {"name":"a"} answers 201" or "GET /old answers 301 with Location /new". An API criterion that needs a signed-in request is checked as a test role when the service has test users with a sign-in request — name the role in the criterion: "Signed in as owner, GET /me answers 200". Otherwise it comes back as not checked, with the reasons listed there. After a merge, QA on production checks only what a plain GET answers.
Start one from your backlog
Tasks converted from a session wait in Backlog until you're ready. Press Start, confirm the model, and it joins the queue. If you start one that waits for another Task, it starts once everything it waits for is done.
Make a Task wait for another
Some work has to happen in order. For example, an app can't use a new version of a library until the library's change has merged.
Set Starts after when you create a Task, or on its page while it's still a Draft. A Task can wait for up to ten others. For each one, choose:
- After merge: all of that Task's pull requests have merged.
- After deploy: that Task's change is live in production. This is available only if it deploys after merge.
You can also add a reason, which is shown next to what the Task starts after.
Press Start when you're ready. If it still has to wait, it stays in Backlog and starts on its own afterwards. Meanwhile, you can use Start anyway to stop waiting for anything that isn't done, or Cancel start to keep it as a Draft. Changing its title, description or acceptance criteria also cancels the start, but changing what it starts after doesn't.
If a Task it's waiting for fails, is stopped or deleted, makes no changes, or has a pull request closed without merging, the waiting Task moves to Needs action and says why. The same happens if a deploy it's waiting for doesn't succeed. Nothing starts on its own, so you decide what to do next.
After merge works with GitHub only, because Deployment.io doesn't track merges on GitLab or Bitbucket yet.
When the earlier Task changes a library
Suppose a Task waits for a Task that changes a Go module its repositories use. Before its agent starts, Deployment.io tries to update them to the merged version. If that works, the update is the first commit on the Task's branch, and the Task page shows the version change. If it fails, the Task still runs on the old version, and the agent is told why. This works only for libraries with the same GitHub owner as the repository that uses them.
Watch it work
The board groups Tasks by where they've got to; switch to List if you prefer a table. For what the columns and tags mean, see The Board. Click any Task to open it.
Inside you'll see how far along it is, each repository with a link to its pull request once opened, and the full agent log if you want to see its reasoning. Repositories showing No changes are ones the agent decided didn't need touching.
Stop, re-run, delete
Stop halts a Task that's running or waiting. Anything already pushed by an earlier attempt stays — nothing is undone.
Re-run gives it another go, and lets you tell the agent what to do differently first. That feedback is the useful part: "you missed the error case in handler.go" gets you much further than re-running blind. New work goes onto the same branch, so an open pull request just picks it up. You can also change the model and the turn cap, for example after a run that used all its turns.
Once any of the Task's pull requests has merged, Re-run is disabled: "This Task's change has merged (<repositories>), so it can't be re-run. Start a new Task for follow-up changes." Before a merge, and after a pull request was closed without merging, you can still re-run it.
Delete removes the Task and stops any work in progress. Branches and pull requests already pushed to your repository are untouched.
A deleted Task's page still opens from a link — for example a session's link to the Task it was turned into. Its header shows Deleted and the page says: "This Task was deleted. You can read it, but it can't be started, edited, re-run or asked about." Everything stays readable. Only Stop, while a run is still going, and Roll back production, for a Task that deployed, stay available.