Delegated jobs and Night shift in Sledbot
Hand tasks to headless Sledbot agents: set checks, caps and review budgets, integrate safely, and run Night shift on spend-limited API keys or local models.
Updated 7 min read
On this page
This page shows you how to hand a task to a Sledbot agent that works while you aren't watching, and how to bring its result back safely. It also covers Sledbot Night shift, which works through a checklist overnight. Night shift only runs on an API key with a confirmed spend limit or on a local model, and never on a Claude subscription.
What a delegated job is
A delegated job is a task given to an agent that runs headless in its own copy of a project. The copy can be on this Mac or on a remote machine, and the agent uses an account you choose. Your files don't change while it works. You review the result and integrate it when you're ready.


Jobs live in the sidebar under Jobs. The page header reads "Hand work to a machine and an account. Each job runs in its own copy of the project." It has three buttons: Digest, Night shift and Delegate.
Jobs are grouped as Needs you, Working, Queued, Stopped by limits and Done. The capacity line ("N/M slots · K queued") shows how busy each machine is. Each machine has 4 slots by default.
Before you start
- After the trial ends, starting agents needs a MacSuite license.
- The agent you pick must be installed and logged in on the target machine. To check, install or log in, open Settings ▸ Agents and choose the Machine.
- To use an API key instead of a CLI login, save the key in Settings ▸ Providers first. Then add it as an account in Settings ▸ Accounts. See AI providers, accounts and fallback.
Delegate a task: agent, account, model and effort
- Open Jobs in the sidebar.
- Click Delegate. The "Delegate a task" sheet opens.
- Enter a Title and describe the work in Task.
- Choose the Project. Include uncommitted changes is on by default. Leave it on if the job should start from your current edits as well as your commits.
- Choose the Machine.
- Choose the Agent: Claude Code, Codex, Gemini CLI or OpenCode.
- Choose the Account (default: Default login), the Model and the Effort.
- Optionally, click Suggest setup to pick a recipe, and open Checks to set the rules described below.
- Press ⌘↩ (Command-Return) to delegate.


Checks: done-when commands, file globs, caps and review budget
Checks let you leave a job running without watching it. You set them under Checks in the Delegate sheet.
| Check | What it does | Default |
|---|---|---|
| Done when | Verify commands that decide when the job is done. They are frozen when you submit. | — |
| May change | Globs of files the job may change | — |
| Never touch | Globs of files the job must not change | , |
| Caps | Limits on turns, minutes and dollars | Empty = no cap |
| Review budget: items | 1–50 | 8 |
| Review budget: lines | 100–20,000 | 1,500 |
| On a question | Wait for me, Assume and label it, or Skip to the next item | , |
For a job you won't be watching, set a dollar cap and a Done when command, such as your test suite. With Assume and label it, the agent doesn't stop to wait for you. It carries on and labels the assumption it made.
Recipes and the Eco / Balanced / Max dial
Suggest setup offers recipes for the job. Its picker has a dial with Eco, Balanced and Max, and the labels Cheaper, Faster and Better.
The built-in recipes are Quick fix, Feature, Night shift, Bug hunt, Review, Refactor or migration, Explore and Housekeeping.
You can add your own recipes as JSON files in either of these folders:
~/.config/sledbot/recipes: available in every project<repo>/.sledbot/recipes: available in that repository only
Collect, review and integrate a job
Click a job to open its detail page. It has two tabs, Activity and Changes, and these buttons: Open terminal, Stop, Collect & review, Integrate… and Allow and continue.
To keep working with the same agent, type in Follow up in the same conversation… and press ⌘↩. Press Esc to go back to Jobs.
What Integrate does to your files
In Sledbot's words, Integrate "applies the job's changes on top of your current files. If any file conflicts with your edits, nothing is written. Files it overwrites are backed up first; your index, HEAD and branches aren't touched."
A conflict therefore never leaves you with a half-applied result. From the command line, sled job integrate --dry-run checks the integration without writing anything. A conflict exits with code 10.


What snapshots never include
The copy of the project that a job works in never includes:
.env*files (example, sample and template files are still included).ssh.aws.gnupg
To exclude other files, add a .sledignore file to the project.
Job copies and snapshot stores keep using disk space after a job finishes. Cleanup lists them as "Delegated job copies" and "Job snapshot stores". Automatic cleanup has rules that remove job copies 14 days after integration and snapshot stores after 7 days. Both rules are off until you turn them on. See Insights, Resources and Cleanup.
Night shift in Sledbot: routing rules and setup
Sledbot describes Night shift as "Hand a checklist to an agent for the night. Each item is done when its own verify commands pass." It is opt-in. Open it from Jobs ▸ Night shift.
Which accounts Night shift may use
These rules can't be changed:
- Night shift runs only on an API-key account with a confirmed spend limit, or on a local model (Ollama, LM Studio, MLX).
- It never runs on a Claude subscription, and it doesn't run on other subscription logins either.
- Web tools and MCP servers must be off.
To confirm a spend limit:
- Set the limit on the provider's own site.
- In Sledbot, under Route, confirm I've set a spend limit for this key at the provider.
Set up a night
The first time, Set up your first night walks you through 5 steps: Add a key, Evening session, Review the checklist, Set the night and The morning digest.
To set up a night after that:
- Open Jobs ▸ Night shift and start a new night.
- Choose the Project and write the Spec.
- Build the Checklist. For each item, click Add item and enter an id, a description and its verify commands.
- Under Route, pick an allowed API-key account or local model, and confirm the spend limit.
- Under Limits, set your own values or leave the fields empty. Empty fields use the defaults: $15, 24 sessions, 3 attempts per item, and a review budget of 8 items / 1,500 lines.
- Click Approve checklist…, then Approve and freeze.
- Click Start…. To end the night early, click Stop….
The scheduler for the night window runs inside the app. As Sledbot puts it: "Keep Sledbot open and the Mac plugged in; it won't idle-sleep during the window."
The morning digest and Decisions
To open the digest, click Digest on the Jobs page, or click Open digest in the "Overnight" section of Today. The digest has these sections:
- Review queue
- Waiting on you
- Stalled or stopped
- A quiet night
Copy as Markdown copies the whole digest.
Decisions is where "agents park questions here and carry on with a labelled assumption." Decisions also appear in Needs you, after approvals and blocked agents. You can answer several at once by key, for example 1b 2a, then press ⌘↩ to send.
Delegate from the command line or another agent
- CLI:
sled job submit|ls|status|wait|followup|stop|collect|integrate|rm.submittakes these flags:--title,--on,--account,--agent claude|codex|gemini|opencode,--model,--effort,--project,--committed,--base,--allow,--permission-mode,--waitand--json.sled job waitexits with code 124 if it times out while the job is still running. - MCP: agents that have
sled mcpcan delegate withsled_delegate. They can manage jobs withsled_jobs,sled_job_wait,sled_job_followup,sled_job_collectandsled_job_integrate.
Every flag is described in the sled command line reference.
Limits: supported agents and keeping the Mac open
- Jobs support only Claude Code, Codex, Gemini CLI and OpenCode. Support for Gemini CLI and OpenCode is best effort.
- Night shift needs Sledbot open and the Mac plugged in for the whole window.
- Done when commands are frozen when you submit, so check them before you delegate.
Troubleshooting
"Night shift never runs on a Claude subscription (…)." You picked a Claude subscription login. Pick an API-key account with a confirmed spend limit, or a local model.
"Night shift runs only on API keys with a spend limit or on local models, not on subscription logins (…)." The same rule applies to every subscription login. Switch the route to an API key or a local model.
"Set a spend limit for X at the provider and confirm it in Sledbot before using it for Night shift." Set a limit on the provider's site. Then confirm I've set a spend limit for this key at the provider under Route.
The night didn't run, or stopped partway. The scheduler runs inside the app. Keep Sledbot open and the Mac on power during the window.
Integrate wrote nothing. A file in the job's result conflicts with your own edits, so no file was written. Set aside your edits to those files (for example with git stash), then integrate again. To check first without writing anything, run sled job integrate --dry-run.
A job stays in Queued. Every slot on that machine is in use (4 by default). The job starts when a running job finishes. You can also stop a running job to free a slot.