Repolode
davidprokopec

davidprokopec/opencode-schedule

An OpenCode V2 plugin that defers a prompt for a set delay, then submits it back into the same session.

Stars
0
Forks
0
Open issues
2
Last commit
5 days ago

What is it?

opencode-schedule is a plugin for OpenCode V2 that lets you queue a prompt to run after a delay. Typing a command such as /schedule 1hour implement this returns immediately, and when the delay elapses the prompt is submitted into the same session as an ordinary user message. While the timer is pending, no model call is made and no context is held open.

The server part of the plugin owns the timers, so closing the TUI or Desktop window does not cancel pending schedules. Each pending schedule is stored as a JSON file on disk and is re-armed on server startup; overdue schedules fire immediately. Durations accept forms such as 60s, 5m, 2h30m and 1.5h, with a 30-day maximum.

The plugin provides list and cancel commands, a sidebar section in the TUI, and an experimental panel in OpenCode Desktop. A delivery option chooses whether the prompt waits for a running turn to finish (queue) or is injected into it (steer).

Key features

  • 01Schedules a prompt with durations from milliseconds up to 30 days.
  • 02Keeps pending schedules across server restarts by storing them on disk.
  • 03Lists and cancels pending schedules per session, individually or all at once.
  • 04Makes no model call while a timer is pending.
  • 05Offers queue and steer delivery modes.

Use cases

  • Deferring a follow-up such as re-running tests after a build finishes.
  • Checking on a deployment again after a set interval.
  • Queuing a larger task to start later while you are away from the terminal.

Quick start

  1. 1

    Install the plugin with OpenCode's plugin manager

    opencode plugin add opencode-schedule
  2. 2

    Or add the package to the plugins list in opencode.json(c)

  3. 3

    In an OpenCode session, schedule a prompt to run after a delay

    /schedule 1hour implement this

Things to know

  • Targets OpenCode V2 and is built against OpenCode 2.2.0 and @opencode/plugin 2.2.0.
  • The Desktop GUI part is experimental and does not yet support the TUI's edit, reschedule or send-now actions.
  • Browser and web-app plugin loading has not been verified.
  • Delays are capped at 30 days.

In collections

Topics

FAQ

What is opencode-schedule?
An OpenCode V2 plugin that defers a prompt for a set delay, then submits it back into the same session. opencode-schedule is a plugin for OpenCode V2 that lets you queue a prompt to run after a delay. Typing a command such as /schedule 1hour implement this returns immediately, and when the delay elapses the prompt is submitted into the same session as an ordinary user message. While the timer is pending, no model call is made and no context is held open.
Is opencode-schedule free to use? What license does it have?
opencode-schedule is open source under the MIT license. Check the license terms before using it in commercial products.
Is opencode-schedule still maintained?
Actively maintained. The last commit to opencode-schedule was on Nov 2, 2026.
What can I use opencode-schedule for?
Deferring a follow-up such as re-running tests after a build finishes. Checking on a deployment again after a set interval. Queuing a larger task to start later while you are away from the terminal.
How do I install opencode-schedule?
Install the plugin with OpenCode's plugin manager: opencode plugin add opencode-schedule Or add the package to the plugins list in opencode.json(c) In an OpenCode session, schedule a prompt to run after a delay: /schedule 1hour implement this
Where can I get opencode-schedule?
The source code and installation instructions are on GitHub: https://github.com/davidprokopec/opencode-schedule

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects