Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Directs an agent to find its assigned swarm task, gather missing context, apply any named skill, and finish with a defined ending.
48% 81%+33 ptsof test cases passed
Passed 17 of 21 test cases with the skill, and 10 of 21 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.8-flash yet.
3 of 3 safety checks passed
Not used yet
The taskId follows the command. Without one, call get-tasks with mineOnly: true and take your pending or in_progress task. If there is none, say so and stop.
This message carries the task text, its attachments, its output format, and memories from past sessions. If it does not (you invoked this command yourself, or the context was compacted), run the task-context-gathering script with the taskId.
When the task names a skill (researching, planning, implementing), use it. Otherwise work directly.
Finish the task with one of the four endings in your operating contract: completed, defer-task, request-human-input, or failed. Then stop.
A lesson that would change how the next agent works goes in learning on that last store-progress call: line 1 a title, line 2 the rule ("When X, do Y"), then evidence. Leave it out for a status line, a restatement of the output, or text already in a skill.
Resuming (a resume task, or work cut by a graceful shutdown): read the parent's last progress line, then re-read live state once (PR state and head SHA, branch, git status) before new work. Re-run controls only if the head moved. Never redo a pushed commit or open a second PR for the same branch. Store a progress line with branch, PR number and head SHA each time you push. A document task has no branch: its live state is the brief's agent-fs output path and the task attachments. Read the parent task's output and any agent-fs draft path it names before rewriting. Run agent-fs ls on that path, download any partial and extend it; a superseded parent with empty output and no draft means a rebuild, not an extension. Then list the task's local work directory: a shutdown can leave the newest draft only there, or leave cache files half-written. Parse every cache file, delete the ones that fail, and re-run only the stages whose output is missing. Before re-running a collection, call list-script-runs with your agentId and reuse the output (get-script-run) of each completed run that started after the parent task started. Never re-run collection steps that already produced artifacts. A render task (video, image, generated page) has no branch either: its live state is the local project directory plus the brief's agent-fs output. List both; timestamps are hints only. Before reusing an output, verify that it exists, is complete and valid, and corresponds to the current sources and render settings (for example, using recorded input/settings hashes). Download remote output and verify its bytes and provenance; agent-fs listing dates alone do not establish freshness. Re-render missing, invalid, incomplete or stale output. Hand over the file link from the Outputs section of your system prompt (the dashboard when configured) by default. Use a share link only when the requester asked for one or the reader has no agent-fs login: then reuse a usable one, and create a missing one or replace an expired, revoked or view-exhausted one without re-rendering a valid unchanged output. A task that covers several PRs re-reads every PR in scope (state, mergedAt, head SHA), not only the first: a PR that merged during the shutdown takes no more pushes. If your task's model differs from the parent's, say so in the output, because the result's provenance changed.
Write times in replies, outputs and defer notes in the requester's timezone when the Requester Profile names one, never raw UTC.
If the user interrupts, follow their instructions. To resume, call /work-on-task <taskId> again.
Next to this one in the catalogue, plus more from the same author.