How to run Claude Code on a schedule from Slack
Create an On a schedule automation in Nori, set Run with to Claude Code, and deliver it to a Slack thread in your channel. At each scheduled time Nori starts Claude Code on a fresh cloud machine with your repositories, posts the run in a new thread, and anyone can reply in that thread to keep working with the same agent.
Prerequisites
Section titled “Prerequisites”- A Nori organization with Claude Code connected under Integrations → Token providers (a Claude subscription or an Anthropic API key). See providers and models.
- The GitHub App installed, and the repositories the job needs added under Settings → Environment.
- The Nori Slack app installed, and the bot invited
to the channel, for example
/invite @Jiroin#eng-updates. - The channel ID: in Slack, open the channel’s details; the ID (it starts with
C) is at the bottom of the About tab. - Admin rights, or an admin to approve. A member’s automation waits for admin approval before it runs.
- Open Automations in the dashboard sidebar and choose New automation.
- Fill in Name, for example
Weekday CI report. - Under Starts when, choose On a schedule. Pick Daily, Weekly,
or Custom under Schedule and set the time. With Custom, enter a
five-field cron expression such as
0 9 * * 1-5. Set Timezone to an IANA zone such asAmerica/New_York. - Write the task in Instructions (see the example below).
- Under Run with, choose Claude Code and, if you want, an exact model. Or pick a custom agent that uses Claude Code.
- Under Deliver to, choose Slack thread (Chat thread, then Post in → Slack, when Discord is also connected) and paste the ID into Slack Channel ID. Leave Channel post on Standard header, or choose Agent’s reply to make the agent’s reply the channel post.
- Choose Create (admins) or Submit for approval (members).
Or ask from Slack
Section titled “Or ask from Slack”Mention the bot in the channel and describe the schedule. The agent creates
the automation with nori-sessions triggers create, and failure notices go to
the channel the request came from:
@Jiro create an automation that runs Claude Code every weekday at 09:00America/New_York in this channel: summarize yesterday's failed CI runs inthe api repository.Example
Section titled “Example”The same automation from the CLI:
nori-sessions triggers create \ --name "Weekday CI report" \ --type cron \ --cron-schedule "0 9 * * 1-5" \ --timezone America/New_York \ --agent-provider claude \ --slack-channel-id C0123456789 \ --prompt "In the api repository, list yesterday's failed CI runs on main.Group them by likely root cause and link each run. Do not change code orrerun jobs. If CI data is unavailable, report the error and stop."The run’s thread opens with a header naming the automation, schedule, and agent; the agent’s reply follows. Reply in the thread to ask for a fix, and Claude Code continues in the same session.
Verify it works
Section titled “Verify it works”- Open the automation and choose Run now (CLI:
nori-sessions triggers test --id <id>). A thread appears in the channel within a minute or two, or the run waits in the queue if every machine is busy. - Check that the thread startup card names Claude Code.
- Under the automation’s Recent activity, confirm Succeeded and read Last response.
- If nothing appears, check Review requests on the Automations page: a member’s automation is not active until an admin approves it.
For every option, including retries, time limits, and failure notices, see automations.
this page as markdown: /sessions/recipes/run-claude-code-on-a-schedule-from-slack.md· index for agents: /llms.txt