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
- Release v2.4.0, github-actions[bot], 2026-11-23: "manage them with
/automation" - feat(core): replace the automations flag with an automations config key, rekram1-node, 2026-11-21: "MCP event triggers still require
experimental.mcp_events." - feat(automation): run a fixed shell command as an automation action, rekram1-node, 2026-11-20: "Runs can overlap and have no timeout."
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