/dispatch:jobsfrom Dispatch
Schedules and monitors agent runs with cron, timeouts, structured pass/fail reporting, and webhook triggers. Use for recurring unattended work like nightly triage, release babysitting, or cleanup.
Ships in Dispatch. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A job is automation layered on a template. The template supplies the agent configuration — prompt, agent type, directory, worktree settings. The job adds everything that makes an unattended run safe: a cron schedule, timeouts, a one-at-a-time guarantee, structured reporting, auto-archive, and an optional webhook trigger.
Template or job? A template is for work a human launches — quick-start workflows out of the command palette. A job is for work that runs on its own and whose outcome someone needs to check later without reading a transcript. If nobody is watching when it runs, it wants to be a job.
Jobs need a backing template, so start with the templates skill if one does not
exist yet.
list_jobs — scoped to a directory; prompts omitted (length only)
get_job — one job by ID, or by name within a directory
create_job — only `name` is required; everything else has a default
update_job — identified by `jobId`; pass only what changes
delete_job — identified by `jobId`; fails if the job has an active run
run_job — trigger a run by `jobId`; returns the run ID and agent ID immediately
Jobs have stable IDs; use jobId for every mutation and run. name and directory are editable configuration and must be unique together. get_job retains read-only name/directory lookup convenience. Changing a directory does not move files or change already running agents; subsequent starts use the saved directory.
| Field | Meaning |
|---|---|
templateId | The backing template supplying agent config |
defaultArgs | Values for the template's arguments, on every run. HTTP API only |
schedule | Cron expression. Optional — a job without one still runs manually |
timeoutMs | Wall-clock ceiling for a run (default 30 min) |
needsInputTimeoutMs | How long a run may sit waiting on a human (default 24 h) |
singleton | Default true: only one run active at a time |
autoArchive | Archive the spawned agent when the run completes |
enabled | False skips the cron schedule; manual runs still work |
Leave singleton on unless overlapping runs are genuinely safe — for anything
that touches a branch, a container, or a shared resource, they are not.
enabled: false is the right way to pause a job you are debugging. Deleting and
recreating loses its history.
started → running → completed | failed | needs_input | timed_out | crashed
The runner creates an agent named job-<slug>-<runId[:8]> and waits for it to
make a terminal MCP call. A run that ends without one is not "done" — it
eventually times out and reports as such.
If you are the agent running a job, these are yours:
job_log — append a structured log line (debug|info|warn|error) to a named task
job_complete — terminal: the run succeeded
job_failed — terminal: the run failed
job_needs_input — pause the run pending a human answer
The report shape:
{
"status": "completed",
"summary": "Processed 3 pull requests.",
"tasks": [
{
"name": "triage-pr-123",
"status": "success",
"summary": "Re-ran CI, posted comment"
},
{
"name": "triage-pr-124",
"status": "error",
"summary": "Rebase failed",
"errors": [
{ "message": "Merge conflict in server.ts", "recoverable": false }
]
}
]
}
One task per unit of work, named stably across runs. That is what makes a
job's history readable — "this task has failed four nights running" is only
visible if the name stayed the same. job_log creates a task if it does not
exist yet, so use it for progress between terminal calls.
Mark recoverable honestly. It is the signal that decides whether a human needs
to look tonight.
Limits: 1 MB per report, 100 tasks, 500 logs per task, 10 KB summary and error strings, 5 KB log messages.
job_needs_input pauses the run rather than failing it — the right call when a
decision genuinely requires a human. The answer arrives in your terminal like any
other message; there is no answer box in the Jobs pane, so nothing "resumes" you
but the human typing.
Do not count on needsInputTimeoutMs as your budget for waiting. timeoutMs is
measured from the start of the run and keeps counting through needs_input, so
with the defaults (30 min vs 24 h) a parked run is killed by the run timeout
first. Raise timeoutMs on any job that expects to wait on a person.
There is no per-job notification config to wire. The notify column exists in
the data model, but nothing writes it — not the routes, not create_job, not
update_job — so the per-job Slack path never fires.
The ordinary per-agent path covers a job run only halfway: a job agent's
derived status (waiting, blocked, idle) raises the browser notifications the
user has configured, and never goes to Slack. Nothing your status conveys will
reach Slack. Call notify when a run needs to say something in Slack, or anything the
status cannot carry.
For project-associated jobs, the project repository root supplies the working directory, including updates that omit projectId. Switch to Folder mode (API/MCP: projectId: null) to save a custom directory. Job directory and backing template changes commit together.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub selfcontained/dispatch --plugin dispatch13 skills in this plugin
/brainRecord decisions, findings, or state in the repo's shared persistent store so they survive this session. Use when you need to remember something for later, look up what was already decided, or accumulate results across runs./communicatePick the shape for something you are about to tell the user — a plain or threaded reply, a question they answer in one click, a form, a file, a link, a checklist, or a data visualization. Use when you need a decision from them, have progress or a result to report, or produced something they should look at./personalitiesChange how Dispatch agents communicate — tone, verbosity, how much they narrate. Use when the user comments on the way agents talk rather than what they do — too wordy, be blunter, skip the preamble.Other plugins' skills for the same job