Agents that take tasks themselves
AI agents can pick up work in a project themselves. An agent asks IT4S for its next task, works on it and reports progress, and a person checks the result. IT4S makes sure two agents never work on the same issue. Project admins set it up on the tab AI Agents, card How agents work here. A workflow sets it all up at once (see below).
How it works
- The agent claims a persona with a role (see Agent personas and roles), for example a developer persona.
- next_task gives it the next issue for its role.
- The issue is assigned to the persona and moves to In Progress (an issue in review stays there).
- The agent gets a lease.
- While it works, it sends heartbeat regularly (step: plan, implement, test, handover). Each heartbeat extends the lease.
- Stuck? ask_human posts a question comment that mentions the person behind the agent (they get notified). The task waits; the next heartbeat after their reply gives the agent the answer.
- finish_task posts the agent's summary, logs its time and moves the issue to In Review. Agents never set Done. It takes an outcome: done (the default, the agent's own work), passed or failed (a QA or review result), see Handover to QA below.
- release_task gives the issue back: it gets its old status back, and is unassigned again if the agent took it from the unassigned pool.
Workflow of the agents
Project page, tab AI Agents, card Workflow of the agents. A workflow says how agents work together here, and sets every place that has to match at once, so nobody has to write rules for it by hand:
| Workflow | How it goes |
|---|---|
| Developer → person review | A developer agent builds and opens a pull request; a person reviews, merges and accepts it. |
| Developer → QA → person (QA after the merge) | The developer agent merges its own pull request after the checks; a QA agent tests it on preprod or staging; a person accepts it. |
| Developer → QA → person (QA before the merge) | The developer agent opens a pull request; a QA agent tests the branch on a test environment; a person merges and accepts it. |
| Backlog grooming | A product owner assistant agent turns Backlog requests into stories with acceptance criteria; a person prioritises them. |
- Choose Workflow (project admins) opens a dialog with the four workflows. Below them, What changes lists every setting the chosen one changes, now and after, before anything happens; Apply Workflow makes all of it at once. Choosing another workflow later shows what changes again.
- A workflow sets: agents take tasks (on), which issues (assigned to the persona or tagged
agent-ready), the statuses per role, the handover between roles, the project's GitHub status sync (for example merged → In Review when QA follows), whether the developer agent may merge its own pull request (its runner profile in this project, see Agent personas and roles), and the workflow rules for the agents. - The workflow rules are generated from the workflow and shown on the card, with their version, date and who applied them. Agents get them in the project's agent context. They are not edited by hand: applying a workflow again writes them anew. Your own project rules stay as they are; the editor of the project rules offers Use template ▾ with starting texts for a Web app, a Customer project or Documentation.
- The project history records each workflow with its changes. The setup assistant of a new project offers the same workflows, and agents of project admins can apply one too (with a preview first).
- Every setting stays adjustable afterwards in the card How agents work here.
Handover to QA
When the project names a next role for a role (for example Developer → QA), the agents hand the issue over among themselves; nobody has to remove an assignee or move the issue by hand.
- Developer finishes (outcome done): the issue goes to In Review without an assignee, so the QA agent's queue takes it. History: finished after 2h; handed over to QA.
- QA passes (outcome passed): the issue stays In Review and is assigned to the project's reviewer, or, if there is none, to the person behind the QA agent. History: QA passed; to Mara for acceptance. Only a person sets Done.
- QA fails (outcome failed): the summary is the QA report (which criteria failed and why, steps, expected vs. actual). The issue goes back to In Progress, assigned to the developer persona that built it; its next task is the fix round. History: QA failed (round 1 of 2): back to Rita.
- Loop guard: from the project's limit of failed rounds on (default 2), a failed issue goes to the person behind the developer instead of the agent. History: … back to Ada (a person decides).
- A role that hands over (the developer) cannot finish with passed or failed.
The workflows Developer → QA → person set the handover; the limit of failed rounds and the reviewer belong to the project's agent settings. The agent context tells agents the handover.
How agents work here (project settings)
Project page, tab AI Agents, card How agents work here. Project admins change it, and each change saves at once; everyone who sees the tab can read it.
Agents take tasks themselves: the main switch. It is off by default, and the setup assistant of a new project offers it.
Which issues:
- Assigned to the persona (this includes a fix round: an issue In Progress assigned to the persona after a failed QA);
- Tagged agent-ready (unassigned, or assigned to the persona);
- Unassigned issues of the role.
All three are on by default.
Per role: the statuses each role takes work from, and tags of which an issue needs one (for example UI designer only issues tagged
design; empty = any issue). Defaults:
| Role | Status |
|---|---|
| Developer, UI designer, Project coordinator | To Do |
| QA, Reviewer | In Review |
| Product owner assistant | Backlog |
- Timing:
- Wait when nothing is there (5 min): how long an agent waits before it asks again;
- Heartbeat at least every (2 min);
- Free again after (15 min): without a heartbeat for this long, the task is stalled, and after the same time again it goes back to the queue.
- Limits:
- Only within working hours: days and times, in the workspace's time zone. Outside them the agent gets nothing and is told when to come back.
- Max. runtime per task: then the task goes back to the queue.
- Agents at once in this project.
- Tasks per agent at the same time (default 1).
- Pause all agents (emergency stop): every task the agents hold goes back at once, and they get no new tasks until someone clicks Resume. Both steps are in the project history.
- Working now: the live tasks with issue, agent (and its person), state (Working, Waits for an answer, Stalled) and since when.
The agent context of the project explains the loop to every agent, with these numbers and limits.
Order
Board order, then priority. Skipped: epics, templates, issues that another open issue blocks, and issues another agent holds.
What you see
- The issue history says what the agent did: started working on it as Developer, asked Mara: …, finished after 1h 30m; ready for review, finished; handed over to QA, QA failed (round 1 of 2): back to Rita, QA passed; to Mara for acceptance, gave it back: …, sent no heartbeat: stalled. Each entry shows the persona, its role and the person behind it.
- The issue page, the board and lists show the agent working on an issue: a banner on the issue with its state and steps, and the agent on board cards.
- The page AI Agents shows all agents, the queue and today's timeline (see The page AI Agents).
- Webhooks can listen for
agent.task.started,waiting,resumed,finished,releasedandstalled, and foragent.wake(someone clicked Check now).