Skip to content
Search docs
Search the docs and jump to the section
Sign in

Agents and workflows

An agent does one job. A workflow is ordered steps, each done by one agent. You do not choose between them: describe the work in New and Werker does. For ongoing work you direct with many requests it makes a factory instead.

Describing work

Say what you want, where the input is and what you want back. If it repeats, say when ("every weekday at 9:00") and it gets a schedule.

In the text box:

  • @ mentions a connection, a saved agent or workflow, or a project to work in.
  • /agent, /workflow and /factory decide what is made.
  • /schedule picks when it repeats.
  • /now starts without questions or a brief.

Questions and the brief

Werker may ask up to two rounds of questions, with a recommended answer already picked. It then shows a brief: what it will make, what done means and what it assumed. Nothing is saved until you press Approve and start. Just do it now takes the answers as they are picked and starts.

If the work needs something that is not set up, such as a sandbox or a service, nothing is saved and the page lists what to set up. A request that cannot be done fails with the reason.

While it runs

Each run gets its own sandbox. You follow it live, and it carries on if you close the page. A run interrupted by a crash continues from its last finished step.

A step ends in one of three ways:

Ends asMeaning
doneA summary, and files kept in the run's project. The next step gets both.
needs inputA question only you can answer. The run waits; your answer restarts that step.
failedWhy the task cannot be done. The run fails.

Questions from every run are in Decisions. Stop run ends a run that is queued, running or waiting.

Reading a result

The result is the last step's summary with its files. Under it, The agent's account lists what the agent says it checked, assumed and worked around. A run with workarounds is marked in the list of runs. Nothing checks the account: an agent that hides a workaround is not caught.

Running it again

What Werker makes is saved, in Agents or Workflows.

  • Run again uses the saved version, with your edits. It does not plan the work afresh.
  • Edit changes later runs, not one in progress.
  • History shows what each saved change did and restores an earlier one as a new version.
  • Archive hides a finished run from lists; its link still opens it, and Restore puts it back. Its schedules carry on. Runs cannot be deleted.

On a saved agent, workflow or factory, Archive hides the saved item, not its runs. The planner no longer offers an archived agent. Open Archived on its list to restore it. Archiving turns off an agent or workflow’s schedule; restoring does not turn it back on. Delete permanently removes the saved item but keeps its runs, recorded costs and project. Remove an agent from saved workflows that use it before deleting it.

Schedules

A saved agent or workflow can run every hour, day or week at a set time in a time zone. 09:00 stays 09:00 when the clocks change. One missed while no worker was running fires once, then carries on. A scheduled run that cannot be queued says why on the Schedule card.

Schedules are the only trigger. Starting work when something arrives, such as a new issue, is not built (#7⁠ (opens in a new tab)).

Workflow steps

In the workflow builder you can add, reorder and edit steps, and:

  • Run once per item the step before lists: the last step becomes one job for each item, such as each open pull request, several at once. At most 50 items. An item already run once gets no second job.
  • Then decide what comes next: a yes or no question about a step's result goes on, skips the next step or stops the run. It needs a classifier (connections). An unclear answer goes on.

What agents learn

A finished step can report the procedure that worked: commands, code and checks. Werker keeps it with that agent as its equipment and gives it to later runs. Editing the agent's role or task sets it aside, and you can discard it on the agent's page. The agent still reasons on every run; replaying a procedure with no model is not built (#8⁠ (opens in a new tab)).

Limits

  • An agent or workflow step stops after 24 model rounds that call tools without finishing. Several tool calls in one round count once. Completed earlier steps keep their results.
  • After a crash, an external action such as opening a pull request can be repeated (#16⁠ (opens in a new tab)).
  • How well generation works has been measured only a few times (status).
This page as markdown apps/site/src/content/docs/agents-and-workflows.md