CloudCLI / ClaudeCodeUI plugin to create workspace-scoped scheduled prompts and execute them through a local CLI such as Codex, Claude Code, or Gemini CLI.
- Create one-time schedules
- Create recurring schedules:
- daily
- selected weekdays
- weekly
- monthly
- Persist schedules and run history per workspace
- Configure a local execution command per workspace
- Run a schedule immediately with
Run Now - Retry failed or missed runs
- Track
running,succeeded,failed, andmissedruns
This is a local-first plugin release focused on workspace-scoped scheduling plus cross-workspace visibility.
- No hosted CloudCLI dependency
- No direct integration with the host chat session
- Scheduled executions launch a fresh local CLI process
- Notifications and cross-workspace orchestration are out of scope
v0.2.0 adds a dedicated global dashboard tab for cross-workspace visibility.
- aggregated job inventory across known workspaces
- direct per-job actions from the global view:
Run NowPauseResumeRetry
- degraded workspace warnings
- workspace drilldown back to the original workspace context
- partial-data signaling when one or more ledgers cannot be read cleanly
- Node.js 18+
- A CloudCLI-compatible host with plugin support
- At least one supported local CLI installed and authenticated if required:
codexclaudegemini
- Open
Settings > Plugins - Install this repository URL
- Enable
Scheduled Prompt
Clone or copy the repository into your local plugin directory, then build it:
git clone https://github.com/grostim/cloudcli-cron.git \
~/.claude-code-ui/plugins/cloudcli-plugin-workspace-scheduled-prompts
cd ~/.claude-code-ui/plugins/cloudcli-plugin-workspace-scheduled-prompts
npm install
npm run buildThen restart CloudCLI / ClaudeCodeUI.
npm install
npm run build
npm testThe plugin is workspace-scoped. Schedules and execution settings are attached to the currently selected workspace path.
In the Execution panel:
- Choose a preset or enter a custom command
- Save execution settings
- Confirm the status changes to
Ready
Available presets:
Codex- command:
codex - prompt transport:
stdin
- command:
Claude Code- command:
claude - prompt transport:
{{prompt}}argument template
- command:
Gemini CLI- command:
gemini - prompt transport:
{{prompt}}argument template
- command:
- Enter a name
- Enter the prompt to run
- Choose the schedule type
- Fill the timing fields
- Check the preview and next run
- Save the schedule
When a save succeeds:
- the plugin shows a success banner
- the updated schedule is highlighted in the list
From the schedule list:
Run Nowlaunches the configured local command immediatelyPausedisables automatic executionResumere-enables automatic executionDuplicatecreates a copyDeleteremoves the schedule
From run history:
Retryre-executes a failed or missed run immediately
The plugin launches the configured command inside the workspace directory.
Runtime behavior:
- if the command or args contain
{{prompt}}, the prompt is expanded inline - otherwise the prompt is written to
stdin
Environment variables exposed to the child process:
SCHEDULED_PROMPTSCHEDULED_WORKSPACE_PATHSCHEDULED_TASK_NAMESCHEDULED_TASK_IDSCHEDULED_FOR
Supported argument templates:
{{prompt}}{{workspacePath}}{{taskName}}{{taskId}}{{scheduledFor}}
- Automatic runs are attempted only for occurrences that are still within the scheduler grace window.
- If the plugin or host was unavailable long enough for an occurrence to become stale, that occurrence is recorded as
missed. - Recurring schedules record each missed slot in history, then continue from the next future occurrence without catch-up replay.
Workspace ledgers are stored locally under:
~/.cloudcli-workspace-scheduled-prompts/
Each workspace gets a separate JSON ledger containing:
- schedules
- run history
- execution profile
Scheduled Codex runs execute a fresh codex exec process. They do not inherit the current interactive Codex session.
That means:
- available workspace skills are not implicitly "active"
- if you depend on a skill, mention it explicitly in the prompt
Recommended pattern:
Use skill speckit-plan from .agents/skills/speckit-plan/SKILL.md.
Then generate the implementation plan for the current workspace.
No execution profile is saved yet for the current workspace.
Fix:
- Open the
Executionpanel - Choose a preset or configure a command manually
- Save settings
The schedule became due but automatic execution could not start.
Typical causes:
- no execution profile saved
- invalid command
- CLI not installed
- host was not running when the schedule became due
Use Retry after fixing the configuration.
The command started but exited non-zero, timed out, or failed to launch.
Check the run history entry for:
- exit code
- stderr summary
- timeout message
Older saved Codex profiles used an invalid argument layout.
The plugin now auto-normalizes the legacy Codex preset on reload.
- No cron syntax
- No external notification channel
- No built-in command validation button yet
- No direct reuse of the live host chat session
- CLI-specific auth and policy prompts must already be handled by the target CLI setup