Skip to content

Write an agent

Choose a harness, model, reasoning effort, and standing instructions.

Create an agent that loops can use for repository work.

Instance admin access, and workers with the intended child harness and credentials. See harness requirements.

  1. Open Configuration > Agents > New and enter a kebab-case name, such as developer.

  2. Choose a harness, its model ID, and reasoning effort. For example, choose Codex, gpt-6-astra, and medium. The harness list shows each harness’s mark and label; the agent saves the harness ID, such as codex. Pi model IDs use provider/model.

  3. Enter standing instructions in the persona:

    Complete one repository task at a time. Follow the repository instructions.
    Run the required checks, keep the branch reviewable, and push before finishing.
    Record blockers on the issue or pull request. Do not merge.
  4. Save the agent. Correct validation or preflight failures before assigning it to a loop.

The agent appears in Configuration > Agents and in the loop agent selector. A new run records that agent definition. Edits apply to new runs; use Edit and retry to apply an updated definition to a failed run.

For later CLI edits, run EDITOR=vi usine config edit agent developer. Agents explains the coordinator and preflight.

The agent page’s Models section compares the models this agent ran with on merged tasks in the selected window: 7 days, 30 days, or all stored runs. Each task counts for the harness and model of the agent’s first attempt on it. A task is mixed if a later attempt by the agent used another harness or model; it still counts for the first model. Reasoning effort does not split the tasks.

For each model, the section shows the tasks merged, the tasks that passed the first review, the median review rounds, and the median tokens, price, and time from first attempt to merge per task, with every loop of the task included. A figure based on fewer tasks than the model’s total says how many tasks it covers. The configured model is marked Configured. The section names the model whose tasks most often passed the first review only when at least two models have 5 or more merged tasks each. When the two highest shares round to the same whole percent, it says that the two models passed the first review equally often. To switch models, edit the agent.