Skip to content

Agents and automation

Routines

Routines: recurring work in Chat, Work, or Code, with schedules, integration and file triggers, follow-ups, run history, allowances, and review.

  • 14 min read
  • 12 sections

Routines ​

A routine is recurring work with a definition you approve, and each run starts a new thread in its Project with its own history, approvals, and delivery evidence.

A routine runs as a Chat, In a folder, or Code thread. A Chat routine keeps Chat's limits: no files, commands, or Git, and no mode to pick. You create and manage every routine in Automation Center on this computer, and Work and Code threads can also create and propose them. A Chat thread's agent can propose a follow-up for its own thread. Its list is a table: each routine's last seven runs, its next run, an on switch, and 30-day totals.

Choose a trigger ​

TriggerWhat starts a run
ScheduleOnce, every N minutes, or weekly at a time in a time zone
Integration eventA GitHub workflow run, or a Linear issue assigned to you
WebhookA signed request an outside service sends to your hub (public entrance, not in a release yet)
Arriving filesA permitted file appears or changes in an input folder (Work and Code only)

Create a routine from a thread ​

Ask a Work or Code agent to do something later or on a schedule ("every Monday at 9, summarize last week's changes") and it sets up a routine in one of two ways, depending on who asked.

You asked for it. When your own message asks for a routine ("create a daily summary automation"), the agent creates it straight away, with no confirmation, and it starts enabled. The thread shows a Created automation card under the reply with the routine's name and schedule and Open to see it in Automation Center. It also shows in Routines in the thread's Environment. The card is a receipt of what was created, so it does not change if you pause the routine later; the Environment's Routines row shows the live state. On the phone the same card appears without Open, and the thread screen lists the routines the thread set up under Scheduled, with their schedule and whether each is paused. The phone only shows them: pause, resume or change a routine at a window on your computer. The routine is built from the thread's Project and mode and asks first like any other routine from a thread, so asking for one cannot give a run more access than the thread has.

Three cases are different:

  • Under Strict it is created paused, and nothing runs until you resume it.
  • In a thread that has read outside content, Octant does not take the agent's word that you asked. The routine is treated as the agent's own suggestion, below.
  • A follow-up, and anything a thread in Plan sets up, waits for your click on its card.

The agent suggested it, at Full access. When the turn runs at Full access, a routine the agent suggests is created straight away with no card, enabled, with the same Created automation receipt in the thread. To have these created paused instead, turn off Settings › Limits › Routines › Start agent-created routines active at Full access. The setting is on by default.

The agent suggested it, below Full access. When the agent proposes a routine you did not ask for, it shows as a suggestion at the foot of the thread with exactly what would run and when: the name, the schedule and time zone, the first run, what happens to runs missed while the computer is off, and the prompt each run starts with. Nothing exists until you click Create routine; dismissing it creates nothing. A suggestion nobody answers waits, listed in Needs you and under Decide in the Inbox, and is withdrawn unanswered if the turn stops, the thread is archived, or the window it was shown in closes. A routine you confirm this way asks first like any other and never runs in Plan.

Below Full access, the agent can never start a routine you did not ask for running on its own.

You can also create one yourself: open Routines in the thread's Environment and choose New routine. Give it a name, the task for each run, a schedule, and what to do with runs missed while the computer is off. It belongs to the thread's Project and mode; you do not pick them.

Routines in the thread's Environment lists every active and paused routine of the Project, not only this thread's: this thread's follow-ups first, then the routines made from this thread, then the rest. Each shows its name and one quiet line; its actions sit in a … menu: Pause or Resume, Open in Automations, and, for a follow-up in this thread, Change time and Cancel follow-up. Past five, choose Show all. A provider that cannot use Octant's tools does not get proposals; create the routine in Automation Center instead. A Chat thread's agent does not propose, read, or change routines.

A Work or Code routine can also target a Project on one of your servers; see Routines on a server Project.

Set what a run may do ​

A routine carries a fixed task, the Project it runs in, a profile, and a highest mode. Events and files enter beside the fixed task as outside data and grant no access.

  • Each run of a routine made from a thread starts a new thread that asks before it runs a command or changes anything, whatever the proposal said.
  • Mode for each run in Automation Center chooses The Project's mode, which uses the mode its Project's new threads start in, or Accept edits, Auto, or Full access as the highest mode a run may use. A run never uses a higher mode than its Project's new threads start in, so a pick can lower a run but not raise it. In a Project whose new threads start in Plan, a run asks first, since Plan gives a run no level it could act at. Full access means no sandbox and no prompts, so those runs change files and run commands with nobody asked.
  • Only a window on this computer can set the mode, and the change is recorded with the routine. A routine an agent proposed never has a higher mode until you set it.
  • A Code routine can also Merge the pull requests it opens: when it is on, the run's agent may merge the pull request its own thread opened without asking, once the head it saw is still current and the repository's required checks have passed. It is off by default and set the same way.
  • An approval-gated Work profile in Automation Center includes the shell and Git; you do not need a separate Code profile. A Work routine saved before Work threads had the shell does not run until you edit it in Automation Center and save it with such a profile; its run history says why. Choosing Ask first there saves that choice for each run, including after you edit an older routine.

A routine's own run cannot propose more routines, because nobody is at a window to approve them. It cannot propose memory changes either, unless its turn runs at Full access or the Project has Agents may write Project memory without asking turned on: then it writes Project memory without asking, and each entry is labelled Written by an agent. See Memory.

Start runs from integration events ​

In Automation Center, choose When an integration event arrives for a Work or Code routine. Select a connected source, its filters, and the fixed task.

  • GitHub watches the latest 100 completed workflow runs in the selected repository, with an optional workflow number, branch, and conclusions. A rerun counts as its own attempt. Older runs and attempts Octant never saw are outside what it watches.
  • Linear watches issues assigned to your connected account, optionally narrowed by team key or project identifier. Editing an assigned issue does not start another task; reassignment starts one only after Octant saw the issue leave and return to your assignments.

Checks run every 1 to 60 minutes while this host runs, with at most two source checks at a time. The first complete check is a baseline and starts no task. A disconnected, rate-limited, or incomplete source keeps its place and allowance until it can be checked again. A different account or source needs a newly configured routine.

The CI failures card on Code Home still opens a manual draft. When routine work already exists for CI on the same Project and branch, it offers that routine and the CI link to review before you start another fix.

Start runs from a webhook ​

With your hub's public entrance on, an outside service such as GitHub or Stripe can start a Work or Code routine by sending a signed request to a URL on the hub. Make the endpoint on the computer that owns the routine, under Settings › Public entrance › Webhook endpoints or with octant hub webhook create (Stripe also needs its signing secret pasted in), then choose When an integration event arrives, the Webhook source, and that endpoint. This is not in a release yet.

A delivery starts the routine once. Unsigned, forged or repeated deliveries start nothing, and the hub holds deliveries for up to 24 hours while the computer sleeps. A webhook routine runs at Ask first at most in Code and at its default level in Work, never at Full access, and the request's body reaches the run as outside content.

Start runs when files arrive ​

In Automation Center, create a Work or Code routine and choose When files arrive or change. Select an existing input folder relative to the Project's main folder, optional file suffixes and excluded subfolders, and a settling interval. The preview shows the task, profile, access, delivery target, and how many runs may start on their own. Saving starts watching; it does not mean the input is ready yet. The first complete settled scan is a baseline, so files already there do not start a task.

Only permitted regular files count. Hidden entries, symbolic links, excluded folders, and protected files are ignored. An unreadable or replaced folder, an unsupported path, or a scan limit stops the watch; choose a smaller folder or narrower filters when needed. The host must stay running.

A matching change while the routine or known Project activity is busy is held for review, because it might be new input or task output and Octant cannot tell who wrote it. Open the routine and Check input status, then Review and re-arm. Review the held files, task, profile, highest mode, and delivery target. Run once and re-arm starts one task for that batch and counts it against the new allowance. Skip these changes and re-arm records the current baseline without a task. After you pause a routine on purpose, Resume takes a fresh settled baseline without starting a task for changes made while paused; held or unknown activity still needs review. If the status says unsettled activity history was exceeded, finish the Project's tasks and cleanup, archive that routine, and create a new one, because its old source cannot prove it is quiet. To give a busy routine more room first, raise its activity window on the routine's detail, from 64 runs up to 1,024, or clear it. A window on this host or a device you paired yourself can change it, and the change is recorded with the routine.

File-trigger setup and re-arming need a window on this host, and a thread's agent cannot propose a file trigger.

File inputs in Code ​

A Code routine copies the exact observed files into the new run's checkout under octant-routine-inputs/<run-id>/. If a source file changed or is unavailable, the run stops rather than using newer content, and an existing different file is never overwritten. These copies are ordinary checkout files: review them before committing or pushing. The main checkout and ignore rules stay unchanged.

Review held work and re-arm ​

Each routine has a run history with ordinary cancellation. The automatic allowance is 8 runs per arm by default, adjustable from 1 to 32. New events during a run, and CI from a routine's own output branches, are held for review. When the allowance is used up, finish or cancel current work, inspect the held events, and choose Review and re-arm. Re-arm and skip held events restores the allowance and takes a fresh baseline without starting the held events.

Pausing, restarting, quiet time, Run now, and an ordinary Save do not reset the allowance or discard held input. Retry run on stopped history creates a new run with its original file or event input; it refuses a changed definition and does not reset the allowance, and changed or missing files can still stop it.

If a response is unconfirmed, refresh the details and history before choosing again. Octant never resends that decision on its own, and closing the dialog does not cancel a task already admitted. Finish known tasks and cleanup before re-arming.

Missed runs ​

The host must be running for a routine to run. After a gap, a routine follows the choice you saved:

  • Skip missed runs records surviving events without starting a task.
  • Run the newest missed occurrence once starts at most one.

Only net changes that still exist are considered. Offline assignment changes, filesystem events, and unseen CI attempts cannot be reconstructed, and the status records the gap rather than pretending the routine ran.

Follow up later ​

A follow-up is a one-time turn sent back into the same thread at a time you pick, so the agent picks up where it left off ("tomorrow morning, check whether the reply arrived and summarize it"). In the thread's Environment, choose Follow up later under Routines, pick In 1 hour, Tomorrow at 9:00, or Pick a time, and say what to check. The agent can also propose one; nothing is scheduled until you click Schedule follow-up.

A pending follow-up is listed in Environment ("Follows up tomorrow at 9:00"); Change time and Cancel follow-up are in its … menu. When it runs, the transcript marks the turn as a scheduled follow-up. It runs once, with the thread's own access and asking before it changes anything, then ends. In Code it does not run if the thread now has Full access. If the thread is busy with a turn when the follow-up comes due, it waits for that turn to end, also across a restart, and every check runs again before it is sent. It does not run if the thread is marked Done, archived, moved to another Project, or now on another provider or model. If the computer was asleep, it runs when Octant is back, unless it is later than Latest a follow-up still runs in Settings › Limits (24 hours by default, up to 30 days), in which case it is recorded as missed; the same limit ends one still waiting on a busy thread. Automation Center keeps its history.

A Chat thread in a Chat Project can have a follow-up too. Set it up from the Chat thread's Environment; its one turn goes into that thread on the thread's own model, with Chat's limits. The Chat thread's agent can also propose a follow-up for its own thread, and nothing else. It always shows on a card first, and nothing is scheduled until you click Schedule follow-up, even when you asked for it.

What the agent can do with routines ​

A Work or Code agent can look at its Project's routines: their schedules, whether they are running or paused, their prompts, and how recent runs went. It can also ask you to pause or archive a routine that belongs to this thread (one it proposed or you created here, or the routine whose run started this thread). The request shows at the foot of the thread with the agent's reason; nothing changes until you click Pause routine or Archive routine (Cancel follow-up for a follow-up), and dismissing it keeps the routine as it is. A request nobody answers waits, listed in Needs you and under Decide in the Inbox, until the turn stops or the thread is archived. The agent cannot resume, edit, or run a routine, and cannot ask about another thread's routine. In Plan it can read routines but asks for no change.

When a routine runs, its agent can report how the run went: succeeded, nothing to do, needs attention, or did not succeed, with a short summary. It shows beside that run in Automation Center's run history as "Agent reported: …" and does not change the run's own status. A run cannot pause or archive its own routine, because nobody is there to confirm; it reports needs attention and says why, and you decide.

When to use a routine ​

A routine fits a repeated, well-bounded task with a check you trust. It is a poor fit for work that needs a decision at every step; that is a thread you supervise.

Routines and follow-ups do not run on a Google Antigravity provider on its personal Google sign-in: Google supports that sign-in only for turns you send yourself, so a routine on it is refused at each run. Switch the provider to a Gemini API key or Agent Platform, or use another provider. See Google Antigravity.

Get notified about runs: see Notifications.

Next steps ​

Octant documentation · local-first by design