/octo:schedulefrom octo
Manage scheduled workflow jobs (add via wizard, dashboard, list, remove, enable, disable, logs)
Ships in octo. Installing the plugin adds it to Claude Code.
Manage scheduled workflow jobs for the Kannaktopus scheduler.
${CLAUDE_PLUGIN_ROOT}/scripts/scheduler/octopus-scheduler.sh [subcommand]
This command supports natural language and provides two primary experiences:
add with no file → Guided wizard| User says | Action |
|---|---|
| No args, "show jobs", "status", "what's scheduled", "list" | Dashboard (Step 1A) |
| Describes a new job, "add", "create", "schedule a...", any time/frequency reference | Wizard (Step 1B) |
| "remove", "delete" + job name/id | Run remove <id> directly |
| "enable", "turn on" + job reference | Run enable <id> |
| "disable", "pause", "turn off" + job reference | Run disable <id> |
| "logs", "what happened", "last run" | Run logs [id] + summarize |
| Wants to change schedule/budget/prompt on existing job | Modify (Step 1C) |
If intent is ambiguous, show the dashboard first, then ask what they'd like to do.
Display the banner, then run:
${CLAUDE_PLUGIN_ROOT}/scripts/scheduler/octopus-scheduler.sh dashboard
Present the output as-is. After showing it, offer quick actions:
What would you like to do?
• Add a new job
• Enable/disable a job
• View logs for a job
• Remove a job
Display banner:
🐙 KANNAKTOPUS ACTIVATED — Job Wizard
⏰ Schedule: Creating a new scheduled job
Providers:
🔵 Claude — Job configuration
You MUST ask these questions via AskUserQuestion:
Question 1:
question: "What should this job do?"
header: "Task"
multiSelect: false
options:
- label: "Security scan"
description: "Nightly vulnerability and code quality audit (squeeze workflow)"
- label: "Research digest"
description: "Research a topic and summarize findings (probe workflow)"
- label: "Full review"
description: "Complete 4-phase Double Diamond analysis (embrace workflow)"
- label: "Custom task"
description: "Describe what you want in your own words"
Question 2:
question: "How often should it run?"
header: "Schedule"
multiSelect: false
options:
- label: "Every night at 2am"
description: "cron: 0 2 * * *"
- label: "Every weekday morning"
description: "cron: 0 9 * * 1-5"
- label: "Weekly (Sunday night)"
description: "cron: 0 22 * * 0"
- label: "Custom schedule"
description: "Describe the timing in natural language"
Question 3:
question: "Which project/directory should it run in?"
header: "Workspace"
multiSelect: false
options:
- label: "Current directory"
description: "Use the current working directory"
- label: "Specify a path"
description: "I'll enter the full path"
WAIT for the user's answers before proceeding.
After answers, generate the JSON job definition:
Map user answers:
| User says | workflow | cron |
|---|---|---|
| Security scan | squeeze | 0 2 * * * |
| Research digest | probe | user's choice |
| Full review | embrace | user's choice |
| Custom | infer from description | parse time expression |
Cron translation (natural language → cron):
| Phrase | Cron |
|---|---|
| every night / nightly | 0 2 * * * |
| every morning / daily | 0 9 * * * |
| weekday mornings | 0 9 * * 1-5 |
| weekly / every week | 0 22 * * 0 |
| hourly | @hourly |
| every N minutes | */N * * * * |
| every Monday at Xam | 0 X * * 1 |
Generate job slug: "Nightly Security Scan" → nightly-security
Show the generated definition for user confirmation:
{
"id": "<slug>",
"name": "<Full Name>",
"enabled": true,
"backend": "<detected — see Step 2>",
"schedule": { "cron": "<expression>" },
"task": {
"workflow": "<workflow>",
"prompt": "<expanded description>"
},
"execution": {
"workspace": "<path>",
"timeout_seconds": 3600
},
"budget": {
"max_cost_usd_per_run": 5.0,
"max_cost_usd_per_day": 15.0
},
"security": {
"sandbox": "workspace-write"
}
}
Ask: "Does this look right? (yes to save / no to adjust)"
This step determines which execution backend to use and sets "backend" in the job JSON.
Check 1 — User override wins:
backend_pref="${OCTOPUS_SCHEDULER_BACKEND:-auto}"
daemon → set backend: daemon, skip further checkscoworkd → attempt detection; error loudly if unavailable (do NOT fall back)Check 2 — Detect CronCreate availability (inside CC session):
Use ToolSearch to check if CronCreate is available:
ToolSearch("select:CronCreate")
backend: coworkdCheck 3 — CC version threshold (bash fallback):
if command -v claude &>/dev/null; then
cc_version=$(claude --version 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)
# CronCreate available in CC v2.1.70+
# Use version comparison from detect_claude_code_version() in orchestrate.sh
fi
backend: coworkdbackend: daemonDisplay detection result:
Backend detected: coworkd (CronCreate available)
— Job will run in isolated coworkd VM with CC task visibility
or:
Backend detected: daemon (Claude Code not available / older version)
— Job will run via bash daemon with file-based logging
Write JSON to temp file:
TMPFILE=$(mktemp /tmp/octo-job-XXXXXX.json)
# Write confirmed JSON with backend field set
Register via detected backend:
If backend: coworkd:
Use CronCreate tool with:
- prompt: job's task.prompt
- schedule: job's schedule.cron
- workspace: job's execution.workspace
Then store the job JSON (with backend: coworkd) to ~/.kannaktopus/scheduler/jobs/<id>.json for dashboard display and audit.
If backend: daemon:
${CLAUDE_PLUGIN_ROOT}/scripts/scheduler/octopus-scheduler.sh add "$TMPFILE"
Ensure the daemon is running:
${CLAUDE_PLUGIN_ROOT}/scripts/scheduler/octopus-scheduler.sh status | grep -q "RUNNING" || \
${CLAUDE_PLUGIN_ROOT}/scripts/scheduler/octopus-scheduler.sh start
Cleanup:
rm -f "$TMPFILE"
When user wants to change schedule, budget, prompt, or timeout:
~/.kannaktopus/scheduler/jobs/<id>.jsonstore_atomic_write pattern (temp → validate → mv)backend: coworkd, update CronCreate registration (remove old + create new)After any action:
{
"id": "nightly-security",
"name": "Nightly Security Scan",
"enabled": true,
"backend": "daemon",
"schedule": { "cron": "0 2 * * *" },
"task": {
"workflow": "squeeze",
"prompt": "Run security review on current repo. Focus on OWASP top 10 and auth flows."
},
"execution": {
"workspace": "/path/to/project",
"timeout_seconds": 3600
},
"budget": {
"max_cost_usd_per_run": 5.0,
"max_cost_usd_per_day": 15.0
},
"security": {
"sandbox": "workspace-write",
"deny_flags": ["--dangerously-skip-permissions"]
}
}
backend field values:
"daemon" — executed by octopus-scheduler bash daemon via setsid + orchestrate.sh"coworkd" — registered with CronCreate; executed in coworkd VM (daemon ignores these jobs)probe | grasp | tangle | ink | embrace | squeeze | grapple
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
49 commands in this plugin
/autoSmart Router (/octo:auto)Smart router - Single entry point with natural language intent detection/brainstorm/octo:brainstormStart a creative thought partner brainstorming session/carefulCareful Mode - Destructive Command WarningsActivate destructive command warnings for the session/clawClaw - OpenClaw System AdministrationOpenClaw instance administration — manage hosts across macOS, Ubuntu/Debian, Docker, OCI, and Proxmox/costsCost Dashboard (/octo:costs)Show cost breakdown by provider and workflow for the current session/debateAI Debate Hub - Structured four-way debates between Claude, Sonnet, Gemini, and Codexnpx claudepluginhub kannaka-labs/kannaktopus --plugin octoOther plugins' commands for the same job