Skip to content

Nori Use cases

How to schedule a coding agent to run after your laptop is closed

Set a cron automation that claims a cloud machine at fire time, pin its timezone, and read the results in Slack the next morning.

Quick answer

Create a cron automation in Nori instead of a schedule on your laptop. Give it a cron line such as 0 2 * * 1-5, an IANA timezone such as America/Chicago, a prompt, and a Slack channel. At fire time Nori claims a fresh cloud machine, clones your repositories, runs the agent on your own Claude or ChatGPT subscription, posts the result in a Slack thread and records the run. Your laptop can be closed, asleep or at home.

Why a laptop schedule stops at night

A schedule that lives in a terminal tab, a local cron job or one long agent session dies with that process. Close the lid, lose Wi-Fi, or let the session time out, and the 2 a.m. run never happens. Nobody is told.

A Nori automation is stored by the platform, not by your machine or a single session. When the cron line fires, Nori starts a new cloud machine for that run only. Nothing on your laptop has to be awake.

That changes what you can hand off. Long test runs, dependency upgrades, flaky-test hunts and docs checks can run while the team sleeps and be waiting as pull requests in the morning. For the full feature tour, see scheduled coding agents. This page is the setup recipe.

What you need first

  • A Nori organization with your repositories connected through the GitHub app. The 30-day free trial works, no card.
  • A model credential connected once: your Claude or ChatGPT subscription, an API key or your LLM gateway. Nori never charges for tokens.
  • The Nori Slack app in your workspace and invited to the channel that should get the results.
  • A task that can finish without questions. Overnight runs have nobody to ask, so the prompt must say what done looks like.

Step by step: set up the overnight run

  1. Write the prompt as a finished brief. Name the repository, the work, the output and what to do if there is nothing to do. Say where results go if the prompt should post anywhere beyond the thread.
  2. Pick the cron line. Five fields: minute, hour, day of month, month, day of week. 0 2 * * 1-5 is 02:00 Monday to Friday.
  3. Set the timezone. Use an IANA name such as America/Chicago. Nori evaluates the cron line as wall-clock time in that zone, so 02:00 stays 02:00 when daylight saving time changes.
  4. Choose who runs it. Use the org default agent, Jiro, or a custom agent with its own harness, model and skillset, such as Claude Code or Codex.
  5. Choose where it posts. Pick a Slack channel for a thread per run, or leave it standalone so it appears only in the dashboard.
  6. Save and test it once. Open the automation, confirm the schedule and timezone, and start a test run. A cron line of 0 2 * * * in UTC fires at 21:00 or 22:00 in New York, so pin the timezone you mean.
  7. Run it once now. Use Run now and read the thread. Tighten the prompt before the schedule takes over.

You can create the same automation from the dashboard, from Slack by asking Nori, or from inside any Nori session with the nori-sessions CLI.

Worked example: nightly flaky-test triage

A 15-engineer team has a CI suite that takes 40 minutes and fails at random about once a day. They want the agent to look at it every weeknight at 02:00 Central time. Channel and repository names are illustrative.

nori-sessions triggers create \
  --name "Nightly flaky-test triage" \
  --type cron \
  --cron-schedule "0 2 * * 1-5" \
  --timezone America/Chicago \
  --agent-provider claude \
  --slack-channel-id C07ENGCI42 \
  --prompt "$(cat <<'PROMPT'
In the web-app repository, read CI runs on main from the last 24 hours.
List tests that failed and then passed on retry with no code change.
Run the worst one 30 times locally to confirm it is flaky.
Find the cause, fix the test or the race it exposes, and open a PR
titled 'fix(test): <test name>'. Reply with a table: test, failures,
cause, PR link. If nothing was flaky, reply in one line and stop.
PROMPT
)"

The automation then shows its settings:

What to check after saving the automation.
FieldValueCheck
Schedule0 2 * * 1-5Weekdays only; Saturday and Sunday are skipped
TimezoneAmerica/ChicagoMatches the team, not the server
AgentClaude Code on the team's Claude subscriptionThe credential the run will use
DeliverySlack thread in #eng-ciNori is a member of the channel

In the morning, the channel has a thread like this:

#eng-ci

Nori  Tue 02:00
Automation: Nightly flaky-test triage (weekdays 02:00 America/Chicago)

  Nori  02:31
  | test                                 | failures | cause                 | PR   |
  | checkout.spec.ts > applies coupon    | 4 of 11  | clock not frozen      | #918 |
  Ran it 30 times before the fix: 6 failures. After: 0 of 30.
  PR #918 "fix(test): checkout.spec.ts applies coupon" is ready for review.

  Maya  09:12
  @nori also freeze the clock in cart.spec.ts, same pattern

  Nori  09:24
  Added to PR #918. 30 of 30 pass for both files.

The 09:12 reply matters. A scheduled run is a live session, so the first engineer online keeps working with the same agent in the same thread.

Run history, approvals and failures

  • Run history. Each run is recorded with its start time, status, final reply and a link to the full transcript. If the thread is quiet for a week, check the history to confirm the runs fired and read what they looked at.
  • Approval path. Admins create and change automations directly. When another member creates or edits one, the change waits for an admin to approve it, and the previous version keeps running meanwhile.
  • Failure notices. If an automation starts failing, Nori posts a notice in the channel it was created from, so a broken credential does not go unnoticed.
  • Pause. Pause an automation over a holiday without losing its settings or history.
  • Review still applies. Pull requests from a night run go through the same branch protection and review as any other. The schedule decides when work starts; your repository rules decide what merges.

Good jobs to run overnight

  • Weekly dependency upgrades with the full test suite run, one PR per week.
  • Docs that drifted from the code, fixed and opened as a single PR.
  • Long end-to-end suites against staging, with failures summarized for standup.
  • Dead feature flags older than 90 days, removed with tests.
  • A morning summary of new error groups, linked to the commits that likely caused them.

Events work the same way. Swap the cron line for a webhook and an alert starts the run instead of the clock, as in turning a Sentry webhook into a fix PR. To give one team its own harness for night jobs, see running Claude Code and Codex from the same Slack workspace.

Frequently asked questions

Does the automation run if my laptop is off?

Yes. The schedule is stored by Nori, not on your laptop. At fire time Nori claims a fresh cloud machine, runs the agent, posts the result and releases the machine.

Which timezone does the cron line use?

The IANA timezone you set on the automation, such as America/Chicago. Nori evaluates the cron line as wall-clock time in that zone, so the run time stays the same when daylight saving time starts or ends.

How do I make sure the run fires at the hour I expect?

Set the automation's timezone explicitly instead of relying on UTC, then start one test run from the dashboard. The run history shows when each run started, so the first overnight run confirms the hour.

Can I test the automation before tonight?

Yes. Use Run now to fire it immediately. The run posts to the same Slack channel, so you can read the result and adjust the prompt before the schedule takes over.

Which model and credentials does an overnight run use?

The agent and credential set on the automation: the org default, Jiro, or a custom agent running Claude Code, Codex or another harness on your own subscription, API key or LLM gateway. Nori never charges for tokens.

Who can create or change a scheduled automation?

Any member can propose one. Admin changes apply at once. Changes by other members wait for an admin to approve them, and the previous version keeps running until then.