Loops
A loop is a prompt Cohort runs on a schedule: every morning, every Monday, every 30 minutes. Each run is a thread like any other, and it tells you only when there is something to see. A quiet run archives itself.
Loops are in the Loops tab of the sidebar (⌘2).
Create a loop
Section titled “Create a loop”Click New loop, or pick one of the templates the empty list shows (Or start from a template). Then:
- Name this loop, and write the prompt: what the agent should check or do each time. The model pill in the prompt box picks the agent and model.
- When: Hourly, Every morning, Weekdays, Weekly, Custom cron or Once at…. The Next runs line under it shows when it will run, as you change it.
- Check first (optional): a shell command run before the agent. See Checks: runs that cost nothing.
- Where it runs: New thread each run (in a project, in a new worktree, the project’s checkout or a personal workspace, with a login and permissions), or Continue a thread: each run is a new message in that thread, so the agent keeps its context.
Click Create loop. It runs on schedule from now on.
From a terminal, the same with cohort loop create:
cohort loop create "Review requests" --template review-requests --project apicohort loop create "Nightly deps" --prompt "Check for outdated dependencies and report the risky ones." \ --schedule "daily 02:00" --project apicohort loop templates lists the built-in templates; cohort loop preview "weekdays 09:00" says a schedule in words with its next five runs:
Weekdays at 09:00 (weekdays 09:00)next: 2026-11-27 09:00 2026-11-30 09:00 2026-12-01 09:00 2026-12-02 09:00 2026-12-03 09:00Schedules are in your machine’s local time: every <N>m|h|d, daily HH:MM, weekdays HH:MM, weekly <mon,tue,..> HH:MM, cron <min> <hour> <day> <month> <weekday>, and one-offs at YYYY-MM-DD HH:MM or in <N>m|h|d. A one-off turns itself off after it runs.
Templates
Section titled “Templates”| Template | Runs | Does |
|---|---|---|
review-requests |
Weekdays at 09:00 | Pull requests waiting for your review, summed up. Quiet when there are none. |
security-scan |
Every day at 09:00 | Known-vulnerable dependencies and secrets committed by mistake. |
dependency-updates |
Every Monday at 09:00 | Outdated dependencies worth updating, with the risky ones called out. |
failing-tests |
Weekdays at 08:00 | Runs the test suite when there are new commits, and explains any failure. |
todo-triage |
Every Friday at 16:00 | New TODO, FIXME and HACK comments from the last week, sorted by urgency. |
docs-drift |
Every Monday at 10:00 | Docs that no longer match the code after the last week’s changes. |
The ones marked Checks first run a check before the agent, so a day with nothing new costs nothing.
What a run tells you
Section titled “What a run tells you”At the end of a run the agent says how it went:
- Nothing to report: the thread is archived and nothing reaches you.
- Reported: the run lands in your Inbox, unread, with the agent’s summary.
- Failed: it shows as failed, in the Inbox too.
The Review tab shows every loop’s runs of the last 7 days: reports and failures first, then the quiet ones folded into one row. Click a run to open its thread; Mark all seen clears the unread ones. From a terminal: cohort loop review (--unseen for only what you haven’t seen).
Click a loop to see its settings and its History: each run, when, how it went and what it said.
Checks: runs that cost nothing
Section titled “Checks: runs that cost nothing”A check is a shell command run before each run, in the run’s folder, for at most 60 seconds:
- No output, exit 0: nothing to do. No agent starts, no tokens are spent. The run is Quiet.
- Output, exit 0: the agent runs, with that output added after the prompt.
- A failure (non-zero exit, or over 60 s): the run fails.
# Only run when there are commits from the last daygit log --since=1.day --onelineTest check in the editor (or cohort loop check <loop>) runs it once and shows what a run would do, without recording anything.
Run, pause, edit
Section titled “Run, pause, edit”- Run now runs a loop at once. It is refused while the loop’s previous run is still going.
- The switch on a loop’s row (On schedule) pauses and resumes it.
- Right-click a loop (or ⌥Enter) for Run now, Edit, Pause/Resume and Delete…. Deleting a loop keeps the threads of its past runs.
From a terminal: cohort loop run, cohort loop pause, cohort loop resume, cohort loop edit, cohort loop delete.
A scheduled run is skipped while the previous one is still going. A run missed while your computer slept runs once when it wakes, never a backlog.
When Cohort pauses a loop
Section titled “When Cohort pauses a loop”After 3 failed runs in a row, Cohort pauses the loop and puts a Loop paused card in Needs you, with the last error. Fix what broke, then Resume. A loop that continues a thread pauses the same way when that thread is archived.
A run that hits its login’s usage limit waits for the reset, as any thread does. Cohort never switches a loop to another login: change its login yourself with Edit if you want (Usage and limits).
Loops can’t run on Cursor.
Loops an agent sets up
Section titled “Loops an agent sets up”An agent can create and run loops for you with Cohort’s tools (create_loop, run_loop). Ask it: “every weekday at 9, check open PRs that need my review, and tell me only if there are any”. Cohort’s create-loop skill walks it through the schedule, a check and a dry run first.
An agent can also set itself a one-off reminder in its own thread (“check back in 10 minutes”) with wake. It shows in Loops until it fires. See Agents that drive Cohort.
Every cohort loop command is in the CLI reference.
