Automations
An automation is a job you describe once and run again whenever you need it, on your own agent: a dependency sweep, a style audit, a branch clean-up. You write what you want done in plain words, say how you'll know it worked, and choose how much the agent is allowed to change. Each run is recorded with its outcome, so you can see what your agents did every time.
Open Automations, in the Work group of the project sidebar. Your agent does the work, so you need Pi, Claude Code or Antigravity CLI connected to DevSpec; see Connect your agent.
What's handled without an automation
You don't need an automation for the work DevSpec already hands to your agents by itself. None of it needs a starter, a trigger or a press of Run:
- Incidents: failed deploys, failing checks on your tracking branch and security advisories. When a deploy fails, the agent whose change broke it is asked first. See Incidents.
- Routine dependency updates from Dependabot or Renovate: an agent checks each one and lands it when it checks out, major versions included. An update that doesn't check out is left open, with the reason and what would make it safe recorded.
- Open pull requests that nobody is waiting on, because their agent has gone, their checks failed or they've fallen behind your tracking branch, once they've sat untouched for 24 hours. A pull request waiting on a named person, such as someone's OK, isn't handed to an agent: that person is notified after an hour instead.
- Commits that landed without a task, matched to the task they belong to.
- Undo requests from Review.
- Work left on a task closed as a duplicate or replaced, carried over to the task you kept. See Tasks.
Each person chooses which of these jobs their own agents may take, under Checks and background jobs on Agent setup.
Add a ready-made starter
Browse starters from DevSpec, at the top of the Automations page, opens a library of ready-made automations for common upkeep. Each one says what it does, what starts it, what it's allowed to do, and who adding it switches it on for. A project with no automations yet sees its starters straight away on the page.
A project Maintainer adds one with Add this automation. A confirmation then says what happens next and when it will run, with Run now if you want to start it straight away. Adding a starter never starts a run on its own. A starter the project already has stays in the library marked Added, with Open this automation.
- Tidy up merged branches: deletes remote branches whose work is already merged, and leaves anything unmerged alone. Allowed to Edit, commit and push. Runs every Monday at 09:00 in the time zone of the person who added it, once for the project, on one eligible agent.
- Clean up finished worktrees: removes worktrees on the machine it runs on whose work is already committed and pushed; anything unfinished stays. Allowed to Edit files and commit. It's for each person: the person who adds it gets their own schedule, every Monday at 09:00, which tidies their machine. Everyone else sets their own schedule on its page, or presses Run to tidy theirs.
An automation added from a starter carries a Starter badge. Its creator, or a Maintainer, can edit it like any other automation. Until someone edits it, it picks up DevSpec's later improvements to that starter by itself. Once it has been edited, it's left exactly as your team wrote it, and the badge reads Starter · Modified.
Create an automation
On the Automations page, choose New automation and fill in:
- What do you want done? (required): the instruction, up to 20,000 characters. Write it the way you'd explain it to a person, and describe the outcome rather than exact folders, so it works on any of your machines. For example: "Check my repos for out-of-date dependencies, update the safe ones, and tell me which need a closer look."
- Short summary (required): one or two sentences, up to 240 characters, shown on the automation's card so teammates can see what it does at a glance.
- Name (optional): leave it blank and DevSpec names it from what you wrote. Each automation in a project needs its own name.
- Tags (optional), up to ten.
- How will you know it worked? (optional): short checks, one per line (Add a line), up to 30. After each run, every line is checked separately, so keep them short and separate, like "every repo builds".
- Who can run this (optional): tick the agents (Pi, Claude Code, Antigravity CLI) allowed to take it. Each row shows whether that agent is on Any model, narrowed to specific models, or Off, with a Narrow by model disclosure to search and tick specific models (plus Allow any model to clear model restrictions and Show older to reveal older or retired models). Leave every agent unticked to let any agent take it.
- What it's allowed to do: see Choose what an automation is allowed to do. It starts on Read and report only.
- Who is it for?: The project (the default) or Each person. See Who an automation is for.
- Triggers, on an automation for the project: what starts it by itself. With none, it only runs when someone presses Run. A Maintainer can add On a schedule (see Run an automation on a schedule) or When a duplicate or replaced task has unique work, which starts it when a task is closed as a duplicate or replaced while it still carries work of its own.
- Let my agents run this: shown once the automation has a trigger, and ticked. Leave it ticked so it can go to your agents when it starts by itself. See Choose who it goes to when it starts by itself.
Press Save automation. Saving never starts a run.
You can also ask for one in words. In a session, ask Dev to create an automation; Dev confirms with you before it saves. Or ask your agent in its terminal, and it creates it through its DevSpec connection.
Every automation belongs to the project. Everyone on it sees every automation, every run and every result, so two people never end up running the same job without knowing. Contributors and Maintainers can create automations, press Run and switch themselves on; Reviewed Contributors and Viewers can see them and discuss them, but can't create, run or switch on. A run gives an agent access to the project's code, so choose its permissions before running it. An automation's creator, or a Maintainer, can edit, pause, archive or restore it. Search (Search automations…) covers the names, instructions and tags of every automation in the project.
Who an automation is for
Every automation is for one of two things, chosen under Who is it for?:
- The project: one run covers everyone, on whichever agent is switched on for it. Use it for work about the project, such as tidying merged branches: it only needs doing once, whoever does it.
- Each person: everyone runs it for themselves, on their own agents and their own schedule. Use it for work about each person's machine, such as cleaning up worktrees or updating tools: your run does nothing for a teammate's computer.
An automation for each person has no triggers and no shared schedule: each person sets their own. See Automations for each person.
An automation's creator, or a Maintainer, can change who it's for under Run settings on its page. The page says what the change does before you save:
- To each person: everyone switched on for it gets their own copy of its schedule, on their own agents. Anyone else can set their own, or press Run. If it has a trigger other than a schedule, or its schedule waits for a condition, remove that first; saving is refused until you do, and nothing else in the form is saved.
- To the project: everyone's own schedule ends, and each of them gets an "Automation now for the project" notification. It then has one shared run, and you're switched on for it.
Choose what an automation is allowed to do
Every automation has one of three levels under What it's allowed to do:
| Level | What the agent may do |
|---|---|
| Read and report only (the default) | Look, then tell you what it found. Changes nothing on your machine. |
| Edit files and commit | Change files and commit locally. Never pushes. |
| Edit, commit and push | Everything above, and push to the remote. |
The level is part of the instruction your agent receives, and DevSpec checks each run's report against it: a run whose report shows the agent went further than allowed is marked Failed, with the reason. DevSpec doesn't sandbox your machine, so choose the lowest level the job needs, and use an agent whose own permission settings you trust.
Changes to DevSpec's agreed records still follow the project's approval rules. Memories and documents created by an automation, and changes that overrule agreed content, are saved as proposals rather than becoming agreed knowledge automatically. See Review.
Run an automation
Choose Run on the automation's card or its page. DevSpec asks Which of your agents runs it? and offers:
- your agents that are connected now, including agents busy in another session;
- Wait for an agent, which reserves the run for the next of your agents that's free.
When you pick an agent, the run is sent to it and it starts in a moment. If none of your agents are online, choose Wait for an agent and start one; the run begins when it connects. A run nobody takes stays waiting until you cancel it.
While a run is queued, waiting or running, Run turns into Cancel. Canceling a run that has already started doesn't stop your agent mid-task; stop it in its terminal if you need to.
On an automation for the project, one run goes at a time: pressing Run while a run is going says who has it. On an automation for each person, that holds for each person's own runs: your run and a teammate's can go at once. If the automation finished only a few minutes ago, pressing Run doesn't start another run straight away. It tells you "This ran a few minutes ago", and offers Run again for when you really mean to.
You can also ask Dev in a session to run an automation. Dev doesn't do the work itself: it reserves the run for one of your agents, the same as Wait for an agent.
Your agent only works on a run someone pressed Run for, asked Dev to start, or that started by itself from a trigger you switched on for (see below).
Run an automation on a schedule
This section is about automations for the project. On an automation for each person, everyone sets their own schedule instead: see Automations for each person.
A project Maintainer can give an automation a schedule under Run settings →Triggers on its page (or when creating it): choose On a schedule and set:
- How often: Every 15 minutes, Every hour, Every day or Every week.
- At: the time, for daily and weekly schedules (09:00 unless you change it).
- On: the day, for weekly schedules.
- Time zone: filled in from your browser. To change it, type a time zone name such as
Europe/LondonorAmerica/New_York. - Only run when: Every time: no condition, Only when work is built but unconfirmed, or Only when a tracked branch has untriaged high or critical advisories. A schedule with a condition starts a run when the condition matches something an earlier run has not already looked at, or something that has changed since that run. Anything a finished run already looked at is left alone until it changes, so the schedule does not run on every check. A run that failed or was never picked up counts as not having looked at anything, so the next check starts a run for the same things again.
- If no agent is free, wait for the next one instead of skipping.
The schedule then shows how often it runs, when it runs Next, and Recent checks: each time the schedule came round, whether it ran or why it didn't. Change edits it, and the bin icon removes it.
At each scheduled time, DevSpec sends the run to an eligible agent that's free, meaning not in a conversation. Eligible agents belong to people who switched the automation on (see the next section), limited to the agents ticked under Who can run this. If none is free, that time is skipped, or, with waiting turned on, the run waits for the next free agent. A run that's still waiting when the schedule has come round twice more is dropped, so it doesn't hold up the next one. If the agent the run was sent to hasn't started within 15 minutes, DevSpec offers it to the next eligible agent.
A scheduled time that comes round while an earlier run of the same automation is still waiting joins that run rather than adding another. While a run the schedule started is still going, a later check does not start a second one.
Choose who it goes to when it starts by itself
The first line of every automation's card says whether it will run by itself and who it goes to, for example "Runs by itself · goes to Sam, Priya", "Only runs when someone presses Run", "Won't run by itself: nobody's switched it on" (with Switch on for my agents, if you can), or "Paused: it won't run by itself". It also says when none of those people has an agent connected right now.
On an automation for the project that has a trigger, its page (open it from its name, or Open automation in the card's ⋯ menu) has a Runs by itself block:
- Runs by itself: on or off. Its creator and Maintainers have the switch; everyone else sees whether it's on. Off pauses it for everyone: its triggers start nothing, runs that started by themselves and are still waiting are canceled, and Run still works. A Paused label shows next to its name while it's off.
- Let my agents run this: your own switch. A run that starts by itself goes only to the agents of people who switched it on, and only to agents ticked under Who can run this. The person who creates an automation starts switched on, and can switch off like anyone else.
- Goes to: everyone switched on, by name. If nobody is, it says it won't go to anyone yet, and a run that starts by itself is recorded as not sent to anyone.
If someone raises what an automation is allowed to do, for example from Edit files and commit to Edit, commit and push, everyone else is switched off and gets a notification, because they agreed to less. The person who raised it stays on. Other edits leave everyone's switches alone.
This only covers runs that start on their own. Anyone who can press Run can still send an automation to their own agent.
Automations for each person
On an automation for each person, your schedule is how you switch on: there is no Let my agents run this. Its page has:
- Runs by itself: the same switch as on a project automation, held by its creator and Maintainers. Off pauses everyone's schedule at once, and Run still works.
- Your schedule: Set your schedule to have it run for you on your own agents: how often, at what time, on which day and in which time zone, as for a project schedule. Change or Remove it whenever you like; with no schedule, it runs for you only when you press Run. Contributors and Maintainers can set one; Reviewed Contributors and Viewers can't.
- Everyone else: each teammate who has a schedule or has run it, with their schedule (or Run only) and their last result, most recently active first, so you can see who it's failing for.
The card's first line names everyone whose schedule runs it. The state next to the name, the checks' marks and Cancel are about your own runs. A run started by your schedule goes only to your own agents, limited to the agents ticked under Who can run this.
If someone raises what it's allowed to do, everyone else's schedule is switched off and they get a notification. Each schedule is kept: its owner chooses Switch back on to agree to the new access.
When a run stalls
A run an agent has started stays with that agent while it's working, and while it's waiting for its pull request: a run whose pull request is going through checks or the merge queue says so, for example "Waiting on checks for #1328", and is never taken away.
When a started run goes quiet instead (its agent is idle, nothing of the run's is in checks or a merge queue, and nothing has happened on it for 15 minutes), DevSpec asks the agent once whether it's still working on it. Anything the agent does on the run counts as an answer. If it does nothing within an hour, or within 15 minutes when its agent has gone offline, the run ends as Handed on and is offered to another eligible agent, never the same one. The run says why it was handed on.
An agent DevSpec can't ask, for example because its DevSpec plugin is out of date, is never handed a run's work this way; a run of its that has been quiet for two hours is ended instead, with the reason recorded.
See what an automation's runs did
Each automation's card shows its latest state (on an automation for each person, your own), such as Running now, Waiting for an agent, Ran (with when), Last run failed or Never run, and Needs attention when a run finished but left something for a person to do. Its facts show what Starts it, its Access, and how many Runs it has had.
Open the automation to see its runs and settings. Current run (or Latest run) is shown in full at the top right below the header, followed by Run settings (Runs by itself, Let my agents run this or Your schedule, Goes to, Follow in Pulse, Who is it for?, Triggers, What it's allowed to do, and Who can run this). Beneath the run settings, the collapsible Instructions & checks section starts closed by default and opens to show the check definitions and full instruction. Earlier runs sits at the bottom, with Show older runs to go further back.
The history shows every run of the automation, whoever started it. Each run shows its status (Succeeded, Failed, Escalated — needs decision, Running, Queued, Waiting for an agent, Blocked, Canceled or Handed on), which agent ran it and whose it is, or that it never reached an agent, and Show details for:
- the agent's summary of what it did, or why it failed;
- each line of How will you know it worked? marked passed or failed, with the evidence;
- the output it captured;
- what it produced, such as commits, tasks, memories, documents or sessions, each linked.
When a run fails, the person whose agent ran it gets an "Automation failed" notification. When someone raises what an automation is allowed to do, everyone it switched off gets an "Automation given more access" notification. When an automation for each person is changed to one for the project, everyone whose own schedule ended gets an "Automation now for the project" notification. Discuss on the card or page opens a session about the automation, where you can bring in Dev or talk it over with your team without calling anyone.
Edit, archive and restore an automation
An automation's creator and Maintainers edit it directly on its page:
- Click the title, short summary, or tags in the header to edit and save them in place.
- Change Who is it for?, Triggers and schedules, What it's allowed to do, or Who can run this directly under Run settings.
- Open Instructions & checks and click into the check definitions or the instruction to edit and save them in place.
Choose Archive on its page (or from the ⋯ menu on its card) to stop using it. To stop it starting by itself for a while without archiving it, switch Runs by itself off instead. Archiving takes it off the page and stops it running; runs still waiting for an agent are canceled, while one already running is left to finish. Its run history is kept.
Archived automations appear under the Archived tab, which shows once you've archived something. Choose Restore there to put one back. Nothing deletes an automation.
What automations cost
Your agent does the automation's work on your own computer, so its model usage is billed by its own provider rather than by DevSpec.
DevSpec charges your organization's balance only for the DevSpec work around or inside a run:
- any DevSpec searches, context lookups or checks the agent triggers during the run, charged as Running your project;
- naming an automation you left unnamed, a small charge that appears on Settings → Billing → Transactions as Running your project;
- asking Dev to create or run one, which is an ordinary Dev reply in a session;
- Discuss with Dev (opening the room without calling anyone is free).