Loops

A loop handles the work that keeps coming back. A ticket comes in, a health check fails, or the time on its schedule comes round. An agent on a teammate's machine picks it up in the background, fixes it, opens a pull request with a preview, and waits for an engineer to approve.

Loops have their own item in the dashboard's sidebar, Loops. Its tabs are Loops (the loops and their builder), Tickets (everything the loops take), Credentials and Links.

Make one from a template

On Loops, pick a template and press Use this. The builder opens with a working loop. Press Save loop and it is on. Three templates are there:

  • Fix support tickets. A ticket comes in, an agent fixes it and puts up a preview, and an engineer approves.
  • Repair failing health checks. A check fails, and an agent finds the cause and proposes a fix for a person to approve.
  • Answer customer emails. A customer emails your support address (shown on Links), and an agent answers by itself and hands anything it can't fix to a person. It takes only tickets that came in by email. This one runs in auto mode, which is on the Ultra plan.

The five blocks

A loop is five blocks, read left to right. Every ticket, alert or scheduled run goes through them in that order. Click a block to change it in the panel beside it.

BlockWhat it says
WhenWhat starts the loop: a ticket, a failing health check, a message from a client's agent, or a schedule.
Only ifWhich of those it takes: a priority (medium and above, or high), how the ticket came in (by email or the support page), words it must mention, or for an alert the check's name and how it failed. Empty takes them all.
AgentWhat does the work: an agent in Claude Code, Codex or Cursor with your instructions, or a playbook stored on the edge. It also says whose machine the agent runs on, in order.
ThenWhat the agent's work turns into: a branch, a pull request Coordigent opens through your GitHub App, and its preview deploy. In auto mode it can also reply to the customer, right away or after a delay.
ApprovalWho decides: Approve waits for a person, Auto acts on its own and hands hard cases to a person, Notify only tells people. Also limits per ticket (tries, spend, runs an hour) and quiet hours.

When several loops could take a ticket, the first one on the list takes it. Move loops up and down on Loops to change the order.

Where the agent runs

A loop never runs on Coordigent's servers or on Coordigent's model. If someone on the project already has an agent open, that agent takes the work. Otherwise the loop starts its tool (Claude Code, Codex or Cursor) on the machine of the first person in its list who has turned on Let loops start runs on my machine. It runs in a new worktree and branch, so their checkout and running agents are not touched. Each person turns that switch on for themselves, on Loops or in the Agent block.

Your model, your key

A loop in auto mode decides each ticket with a model, and that model is always yours: your workspace's own Anthropic or OpenAI API key, or your members' own Claude Code or Codex. Pick it on your workspace page under Model work. A key is encrypted when you save it and never shown again; you see only its last four characters, and its owner and admins can replace or remove it. Usage bills to your own account with the provider, and the same page lists each loop's turns and tokens over the last 30 days.

With none connected, the loop builder says This loop can't run yet and links to Connect your key. Until then each ticket waits for a person, as in approve mode.

Watching a run

Open a ticket on Tickets to see it move through the same five blocks: blue while the agent works, amber while it waits for a person, and green once it has passed. The approval block has the buttons: Approve the plan when the agent asks before it starts, and Approve once the pull request is up. With Merge a fix when someone approves it turned on, approving also merges the fix, through the repo's merge queue when it has one. A loop's own page lists the tickets it took most recently, each with a five-step bar.

Loops in your repo

Export YAML downloads every loop, and Import YAML adds loops from a file. Use them to keep loops next to your code.

Loops on a schedule

A loop can start on its own at set times, for work nobody files a ticket for, such as a nightly dependency bump or a Monday sweep of flaky tests. In the When block pick On a schedule, then how often it repeats: Hourly, Daily, Weekdays or Weekly at a time you choose, or Custom for a cron line of your own (minute, hour, day of month, month, day of week, such as */30 9-17 * * 1-5). Pick the time zone the times are in. The panel lists the next three runs.

Each time comes round, the loop opens a run on Tickets, marked Scheduled, and the run goes through the same blocks as a ticket: the agent's instructions say what to do on each run. A scheduled loop takes only its own runs, never tickets, and only it takes them.

Times are clock times in the zone, so nine stays nine when the clocks change. A time the clocks skip doesn't run that day; a time they repeat runs once. Turning the loop off stops its schedule; runs it would have started while off are skipped, not made up. If Coordigent was down when a run was due, that run starts once when it is back.