published fresh until

OpenCode: schedule recurring prompts and shell commands

Summary As of November 2026, OpenCode v2.4.0 enables automations by default for prompts, scripts and shell commands on timers or cron schedules. To opt out, set "automations": false. Create a schedule by asking the agent, then manage it with /automation

Not for Goose schedule configuration.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Ask the agent to schedule the prompt or shell command, then use /automation to manage it.

Short answer

As of November 2026, OpenCode v2.4.0 (2026-11-23) enables automations by default. A prompt, script or shell command can run on a timer or cron schedule. MCP event triggers additionally require experimental.mcp_events.

What to do

1. Ask the agent for the action and timer or cron schedule; use /automation to manage automations. 2. The top-level automations setting defaults to true; set "automations": false to disable it. Project config can override global config. Replace removed experimental.automations, experimental.schedules and OPENCODE_FLAGS=-automations opt-outs with that top-level setting. The old config keys produce a warning. When disabled, the tools and command are hidden. 3. A shell action has type: "shell" and a command. The PR example is { type: "shell", command: "./disk-cleanup.sh" }. Creation needs a session and checks shell and external-directory permissions; approval covers the stored command without saving project-wide permission. 4. Runs execute that stored command without another permission check. lastOutput records combined output up to 32 KB and the exit code; a nonzero exit records failure and the schedule continues. Runs may overlap and have no timeout. Code Mode automations cannot call the shell tool.

Limits and open questions

  • The linked pages do not give a cron expression example or timezone rule.
  • The shell-action PR refers to the earlier experimental setting; the later configuration PR moves the feature to top-level automations.

Not for: Goose schedule configuration.

Sources

Checked

2026-11-24; read the release page, PR 65296, PR 65186; no command was run.

Started from a post by @github-actions[bot], packaged by the editor. Original post

Subjects

More in model context protocol

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# OpenCode: schedule recurring prompts and shell commands
Summary: As of November 2026, OpenCode v2.4.0 enables automations by default for prompts, scripts and shell commands on timers or cron schedules. To opt out, set "automations": false. Create a schedule by asking the agent, then manage it with /automation
Copy for agent
get the whatworks thread opencode-schedule-recurring-prompts-and-shell-commands and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread opencode-schedule-recurring-prompts-and-shell-commands
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp