/computational-research:backlog-autolab runs instead · from computational-research
Orchestrates autonomous backlog processing by dispatching background subagents per task, each in its own git worktree. Use for unattended multi-item runs with live monitoring and steering.
This skill never runs in Claude Code
It ships in computational-research at skills/, but /computational-research:backlog-autolab (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
This chat becomes the orchestrator of an autonomous run.
It does no task work itself.
Each task is done by a background subagent — a worker — which starts cold, as a fresh session does, and runs backlog-run for one task in its item's worktree.
The operator watches the workers in the Agent map, and reads halts in this chat.
Why subagents and not claude -p, and what a worker can and cannot do: Wiki/Concepts/AutonomousPipeline.md § Subagent workers.
The headless driver scripts/auto-run.sh stays for cron, the one trigger a chat cannot serve.
backlog-run./backlog-autolab [<Item> ...] [--repo <path>] [--parallel N] [--max-tasks N] [--max-minutes M] [--max-tokens T] [--dry-run]
| argument | default | meaning |
|---|---|---|
<Item> ... | every eligible item | the queue, in the order given |
--repo | the git root of this session's directory | the repo whose Work/ is run |
--parallel | 1 | items in flight at once; each item still runs its tasks in order |
--max-tasks | 3 | tasks per item |
--max-minutes | 90 | wall clock per item |
--max-tokens | 4000000 | tokens per item, summed from the workers' completion notices — provisional until T4 of InSessionAutoRun measures a real task |
--dry-run | off | selection and preflight only; no worktree, no worker |
The orchestrator follows two rules throughout.
It reaches other trees with git -C <path> and absolute paths, never cd: one cd in this shell moves the session's working directory for good.
And it never cleans up after a failure — no git reset, no git worktree remove --force, no branch deletion.
Work/.Work/Ready/<Item>.md, where the folder is the operator's approval, or Work/Active/<Item>.md carrying > Autonomous: allowed.
Any that is not stops the run before anything starts, naming it — the operator is still at the keyboard, and nothing has cost anything yet.Work/Active/*.md carrying the marker, then every Work/Ready/*.md, each group in Work/README.md order, then any not listed there, alphabetically.
None → stop and say so.work/<Item>, the one name every session uses (backlog-run § Claim it); when only an unmerged auto/<Item> exists, made before the rename, that is the item's branch until it is merged, and <branch> below is whichever applies.<branch> when it exists, since earlier unmerged work lives there and the checkout can still show the item in Ready/.
Use git -C <repo> ls-tree -r --name-only <branch> -- Work to find the exact Ready/<Item>.md, Active/<Item>.md, UnderReview/<Item>.md or dated Done/*-<Item>.md / Dropped/*-<Item>.md path, then read it with git -C <repo> show <branch>:<path>; without a branch, read the checkout.
Report and leave out UnderReview/, Done/ and Dropped/ items before preflight or worktree creation, even when the checkout still lists them as Ready.
A missing or ambiguous item path is an inconsistent state: report and leave it out rather than falling back to the stale checkout.
Only a resolved Ready/ item, or an Active/ item still carrying > Autonomous: allowed, is eligible.(human), when its ## Hand-off already holds a needs-human line, or when that task's routing annotation does not parse.
The annotation grammar is in backlog-add § The routing annotation; model must be one of haiku, sonnet, opus, fable, since those are the values the Agent tool takes.
If filtering leaves no runnable items, stop before preflight or worktree creation and report why.After this step nothing waits for the operator.
Every worker is part of this session, so its permissions come from this session's settings — ~/.claude/settings.json and the .claude/settings.json and .claude/settings.local.json of the directory this chat was opened in — never from the target repo's.
## Summary through ## Technical details, or ## Spec in an older item) and its unchecked tasks up to the task cap, and name the Bash command families, MCP tools, web access and writes they imply.
Every run needs, beyond that:
Skill, and git status, add, commit, mv, log, diff, show, rev-parse;Read, Edit and Write on ~/.cache/autolab/**, which lies outside this session's directory;CLAUDE.md § Wolfram Kernel Execution Policy).allow, ask and deny rules of the three files.
A need that matches an ask rule counts as missing: unattended, nobody answers it.defaultMode:
default — every uncovered call prompts, so the run cannot be left; stop and say so;acceptEdits — every Bash call needs a rule;auto — an uncovered call goes to the classifier, which can deny it; list the needs anyway, since a rule skips the classifier;bypassPermissions — nothing to add; say that only the branch bounds the run.--parallel above 2 (workers share one Wolfram kernel, and parallel kernels have rebooted this machine); a checkout with uncommitted changes (the run branches from HEAD and will not see them); a repo with .gitmodules (submodules in a worktree are untried)./permissions, to this project's local settings.
The orchestrator never writes a settings file itself: in auto mode the classifier refuses that as self-modification (measured 2026-09-26).With --dry-run, stop here and show the queue: per item the branch, the worktree path, the next task and its routing.
The worktree is ~/.cache/autolab/<Repo>/<Item>, <Repo> being the repo folder's name.
It lives outside the repo because git surgery inside a cloud-synced folder races the sync daemon, and the Agent tool's own isolation: "worktree" is not used for the same reason.
This is the claim of backlog-run § Claim it, held by the orchestrator for the whole run.
<branch> exists → git -C <repo> worktree add <path> <branch>.git -C <repo> worktree add -b work/<Item> <path> HEAD.worktree-busy, naming that worktree, and never work in it.
That includes a worktree left at <path> by an earlier run; the operator releases it with git worktree remove <path>.The operator's checkout is never switched.
Recheck the resolved item path in the worktree before dispatch; a terminal or inconsistent state is reported and left out.
Start an item only if it is still in Ready/ in that worktree: git mv Work/Ready/<Item>.md Work/Active/<Item>.md, add > Autonomous: allowed on the line after > Type: unless it is there, and commit chore(work): start <Item> from Ready.
An already Active/ item resumes without another move.
The marker keeps the item eligible for later runs once it has left Ready/; an item with no > Type: line halts bad-annotation.
In the operator's checkout the item stays in Ready/ until the branch is merged.
Per task, record the worktree's HEAD, the number of boxes in the item's ### Done, and the time, then make one Agent call:
| parameter | value |
|---|---|
description | <Item> Tk — the label in the Agent map |
subagent_type | computational-research:autolab-worker-<effort> from the annotation; computational-research:autolab-worker when it names no effort |
model | the annotation's model; omitted when it names none, so the worker inherits this session's |
run_in_background | true |
prompt | the worker prompt, filled in |
Keep up to --parallel items in flight, one worker each.
Then end the turn: a completion notice wakes the orchestrator, so it neither polls nor waits.
While workers run, the operator talks to the orchestrator in this chat.
To steer a worker, send it a message with SendMessage (it arrives at the worker's next tool round); to stop one, TaskStop, which halts its item stopped.
Add the notice's subagent_tokens to the item's total, then check, in this order.
Every check reads the worktree with git -C and absolute paths.
| check | halt reason |
|---|---|
the report says outcome: denied | permission-denied — record the rule under approve next time |
the report says outcome: fault, or the worker ended in an error | fault |
the tree is dirty, ignoring Work/Runs/ | dirty-tree |
HEAD did not move | no-commit |
the item file is in none of Work/Active/<Item>.md, Work/UnderReview/<Item>.md, Work/Done/*-<Item>.md | item-vanished |
### Done gained no box | no-box |
## Hand-off holds needs-human | needs-human |
| no unchecked task remains | item-complete — the success exit |
| a cap is reached | cap-tasks, cap-minutes or cap-tokens |
the next task carries (human) | task-gated |
| the next task's annotation does not parse | bad-annotation |
Nothing tripped → dispatch the item's next task (step 4).
A halt → tell the operator at once, in one short message: the item, the reason, and for needs-human the question quoted.
For fault, no-commit or no-box on a haiku or sonnet worker, add the escalation — the annotation to re-run the task at — since a cheap tier fails by producing confident wrong output that a re-run at the same tier repeats.
Then dispatch the next queued item into the free slot.
The halt stops that item only; the others run on.
When no item is in flight and the queue is empty:
Work/Runs/<YYYYMMDD-HHMMSS>-<Item>.md in the operator's checkout, gitignored — in the shape auto-run.sh writes: item, branch, worktree, times, tasks run, stop reason, tokens; per task the verdict, the model routed, the effort requested (nothing reports the effort applied), tokens, tool uses and duration; the commits and files since the run began (git -C <worktree> log --oneline <start>..HEAD); the ## Hand-off before and after.
Plus two lists: the rules the operator added for this run, and the rules to approve next time.git -C <repo> worktree remove <path>, no --force; its branch stays.
A dirty one stays, and the summary names its path./backlog-review <Item>, which merges <branch> (the merge is the document-revise approval), answer each hand-off question, remove this run's rules with /permissions, and add the rules to approve next time.The autonomy notice that auto-run.sh puts into the system prompt goes at the top of the worker's prompt instead: a session cannot tell it is unattended unless it is told (document-revise § Autonomous mode).
Fill in <Item>, <Tk>, <branch>, <Worktree> (absolute) and <Home> (this session's directory, where a worker's Bash starts):
You are an autonomous worker dispatched by /backlog-autolab. No user reads this transcript; the orchestrator reads only your final report.
Item: <Item>. Task: <Tk>. Branch: <branch>. Worktree: <Worktree>.
The worktree is the repository you work in. Never touch any other checkout.
- Your Bash working directory resets to <Home> on every call. Start every Bash command with `cd <Worktree> &&`.
- Give file tools absolute paths under <Worktree>. Every repo-relative path a skill names — Work/Active/<Item>.md, Wiki/..., Code/... — means <Worktree>/<that path>.
Invoke the Skill tool with skill `computational-research:backlog-run` and args `<Item>`, and do exactly that one task.
Follow the document-revise skill's section "Autonomous mode — the gate is deferred, not dropped": do not stop to present; commit unconditionally on <branch> in the worktree; if the task turns on a decision you would otherwise ask about, write the question into ## Hand-off on a line containing `needs-human:`, commit, and stop.
If a tool call is denied, do not work around it: write `needs-human: permission — <Tool(pattern)>` into ## Hand-off, commit, and stop.
End with exactly these four lines and nothing else:
task: <Tk>
commit: <short sha of your last commit, or none>
outcome: done | needs-human | denied | fault
note: <one line — for denied, the Tool(pattern) that was refused>
The four-line report is a budget, not a style: the orchestrator's context grows by every word a worker returns.
backlog-run is what each worker runs; its protocol is unchanged, and its commit and box are what step 5 checks.document-revise § Autonomous mode governs every worker; the gate is deferred to branch, digest and merge.backlog-add writes the markers and the routing annotations the queue reads.agents/autolab-worker*.md in this plugin — one per effort level, and one that inherits.backlog-run-scheduled is the headless path, for cron./backlog-run in a fresh chat./backlog-run-scheduled, or cron.backlog-add.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
computational-research@WolframInstitute is listed by wolframinstitute/claudepluginmarketplace — review the source before installing
npx claudepluginhub wolframinstitute/claudepluginmarketplace --plugin computational-research30 skills in this plugin
/backlog-addCreate and manage work items in the top-level Work/ folder — each a multi-session effort with a Spec (what to build), a Tasks checklist (one task ≈ one session), and a Progress log. This is the project's execution state, separate from the Wiki knowledge base. Use for: "new work item", "start a work item", "spec out X", "plan for X", "break X into tasks", "track this across sessions", "add a task", "update the spec", or the /backlog-add command. Creates Work/Backlog/<Name>.md, bootstrapping the folder if missing. A work item's status is its folder (Backlog/Ready/Active/UnderReview/Done/Dropped), not a field. Specs follow the document-revise protocol; shaping one together with the user over a long sitting is the backlog-refine skill. Do NOT trigger on casual uses of the word "work".
/backlog-boardPublish and sync the work board — a private claude.ai page, readable on a phone, that shows every Work/ item under a root (one repo or a folder of repos): what needs the user, what is under review, active, ready and in the backlog, each item rendered and clickable. On the page the user edits the human sections, approves moves (Backlog → Ready, Accept, Send back), leaves notes, files new items and asks Claude about an item; those changes wait on the page until a session syncs them into the files. Use for: "sync the board", "refresh the board", "publish the board", "set up a board", or the /backlog-board command. Never on a timer — a sync is always the user's request.
/backlog-infoGo through the whole Work/ backlog with the user: read every item in Backlog/, Ready/ and UnderReview/ and every work/<Item> branch, and report what waits on the user (a review, a halted run's question, a Waiting-on line, queued board changes), what is stale (no Progress for a month, or a premise the code no longer has), which items overlap, and what to refine, merge, split or drop next. Changes nothing until the user says so; then each move is a git mv and an index update. Never moves an item to Ready and never syncs the board. Use for: "go through the backlog", "backlog info", "what's in the backlog", "what waits on me", "clean up the backlog", "what next", or the /backlog-info command. Not for shaping one item (backlog-refine) or reviewing a finished one (backlog-review).
/backlog-refineShape a Work/Backlog item together with the user over a long sitting until it is ready to be worked — the user writes the human parts (Summary, Motivation, Acceptance criteria, any detail they care about) in their editor, while the LLM researches the code and wiki, writes the Technical details, keeps a list of open questions, and proposes the tasks and their routing. Ends with a readiness check and, on the user's word, the move to Work/Ready/ where /backlog-run-scheduled may pick it up. Use for: "refine X", "let's work on the backlog", "shape this item", "backlog refinement", "get X ready", or the /backlog-refine command. Not for executing tasks (backlog-run) or filing a quick new item (backlog-add).
/backlog-reviewReview a finished Work/ item with the user: find it in Work/UnderReview/ or on its unmerged work/<Item> branch, show the run digest, walk the Acceptance criteria one by one with the test instructions of the tasks that serve each, run the checks that can be run, and end on the user's verdict — accept (merge the branch, item to Done/) or send back (merge the branch, a new task from the user's words, item to Active/). Nothing is fixed during the review. Use for: "review X", "review the item", "check the finished item", "accept X", "send X back", "merge the item branch", or the /backlog-review command. Not for running tasks (backlog-run) or going through the whole backlog (backlog-info).
/backlog-runRun one disciplined work session against a Work/ item: pick the next incomplete task, study the Spec, implement exactly ONE task, append a Progress report, mark the task done, sync durable knowledge to the Wiki, commit, and STOP. Built to be run in a FRESH session each time to avoid context accumulation. Use for: "next session", "next task", "work the next task", "continue the work item", "resume <Name>", or the /backlog-run command. It does exactly one task then stops — it never chains tasks.
Other plugins' skills for the same job