Rota
See it in action
Week plan | Menu bar |
Jobs | My time |
The dashboard has Light, System and Dark themes.
Related MCP server: tandem
Why Rota
You run Claude Code in one repo, Codex in another, a nightly test suite and a video render. Each one assumes it has the whole machine. They start at the same time, the fans spin up, everything slows down, and the end-to-end tests time out in the middle of your video call.
Rota gives the machine a schedule:
Agents ask before they start. Rota answers go or wait until 10:10.
Your time wins. Block an hour and running jobs are asked to wrap up first.
Higher priority goes first, and lower jobs slip in only where they fit.
Projects book known work a week ahead, so there are fewer surprises.
Usage limits are tracked. Rota warns when a job may run out of a tool's quota. It warns only and never holds a job back.
By default Rota is a gatekeeper, not a runner. It never starts, pauses or kills a process. Each agent runs its own job and checks in. That keeps Rota small, and it works with any tool that can run a shell command.
If you want Rota to hold jobs to the plan itself, turn on the optional enforcer mode. Rota then runs plain commands through pueue and can pause, resume or stop them, and hooks let live agent sessions wrap up and resume around your time.
Platforms: macOS and Linux.
How it works
This is the default mode: Rota only answers, and the agent starts and stops its own work. With the optional enforcer mode, Rota starts, pauses and resumes plain commands itself.
Every answer is also an exit code, so a shell script can act on it without parsing output:
Answer | Exit code | What the agent does |
|
| Start now. |
|
| Ask again later. |
|
| Keep going. |
|
| Stop at a safe point by then, then |
|
| Stop at the next safe point, then |
An answer takes into account:
Triggers. A job can run at a time (
--at), on a schedule (--cron "0 2 * * *"), only inside a window (--window 22:00-06:00@mon,tue), or only once the machine has been idle for a while (--idle 10m). With no trigger it is due as soon as it is announced.Priority.
low,normal,highorurgent. When a higher job has waited too long (10 minutes by default), lower running jobs are asked to wrap up.Resources. Each job estimates its cores, memory, GPU share and run time. Rota counts both what jobs declared and what the machine is really using, and keeps the total under your limit (85% of the CPU and all but 4 GB of memory by default).
Your blocked time. The machine is open to jobs around the clock until you block time. A job that would run into your time waits until after it.
Install
One line (macOS 14+ on Apple silicon or Intel, or Linux with systemd):
curl -fsSL https://raw.githubusercontent.com/psardana/rota/main/install.sh | shIt downloads the latest release, checks its checksum, puts rota in
~/.local/bin, starts the background service (launchd or systemd) and, on
macOS, adds the menu bar app to ~/Applications. Read
install.sh first if you like; it is short.
Homebrew:
brew tap psardana/rota https://github.com/psardana/rota
brew install rota
rota service installGo: go install github.com/psardana/rota/cmd/rota@latest, then
rota service install.
From source (Go 1.27 or later; no C compiler needed, the SQLite driver is pure Go; on macOS also the Xcode command line tools for the menu bar app):
git clone https://github.com/psardana/rota.git
cd rota
make installmake install builds rota into ~/.local/bin, registers the daemon with
launchd so it runs in the background and starts at login, and puts the menu
bar app in ~/Applications. On Linux it sets up a systemd user service and a
tray icon instead; see Linux.
Then open the dashboard at http://127.0.0.1:7420:
rota openTo remove everything, run rota service uninstall and delete rota (or
make uninstall from a source checkout). Your data stays in
~/Library/Application Support/Rota.
Connect your agents
Rota speaks MCP, so agents can announce,
ask, check in and book work as tool calls (rota_announce, rota_ask,
rota_checkin, rota_done, rota_book, rota_week, rota_status,
rota_cancel) instead of shell commands.
Claude Code: install the plugin. It adds the MCP tools, a skill that tells the agent when to use them, and the hooks that route heavy commands and wrap sessions up before your blocked time.
/plugin marketplace add psardana/rota
/plugin install rota@rotaOr add only the MCP server: claude mcp add rota -- rota mcp.
Codex: codex mcp add rota -- rota mcp
Gemini CLI: gemini mcp add rota rota mcp
OpenCode: add this to opencode.json:
{ "mcp": { "rota": { "type": "local", "command": ["rota", "mcp"], "enabled": true } } }Any other MCP client: run rota mcp as a stdio server. Tools that can't
use MCP use the CLI below, and every agent follows Rota best with the
instructions for coding agents.
Quick start
For agents and scripts
Wrap any heavy job in four steps.
Announce the job. Rota prints the job's id.
id=$(rota add --name "refactor checkout flow" --est 90m --cpu 3 --ram 6)Wait for a go. This returns when it is the job's turn.
rota wait "$id"Check in every few minutes while it runs. Exit code
0means keep going.10(wrap up) or11(pause) means stop at a safe point and runrota done "$id" --paused.rota checkin "$id"Say when it is done. Add
--failedif it failed.rota done "$id"
Priority, the tool's name, usage-limit estimates and JSON output are all options
on rota add. See the CLI reference. To have coding agents do this
on their own, give them the instructions for coding agents.
Booking the week ahead
Book a one-off job at a set time.
rota book --project web-app --name "e2e suite" --at "wed 23:00" --est 1hBook repeating work with a cron schedule.
rota book --project api-server --name "nightly e2e" --cron "0 2 * * *" --est 40mSee every project's next 7 days.
rota week
If a slot is taken, Rota books the nearest free one and says so. Booked work goes before ad-hoc work of the same priority.
For you
Command | What it does |
| Opens the dashboard. |
| Shows the load now and what runs next. |
| Keeps the machine to yourself for two hours. |
| Shows what Rota decided, and why. |
Every command and option is in the CLI reference, or run rota help.
Instructions for coding agents
Agents follow Rota best when every project tells them to. Paste this into your agent's global instructions file, and change the defaults to suit you:
## Heavy work goes through Rota
This machine is shared by several agents and by me. Rota (`rota help`) decides
whose turn it is. Anything heavy, such as browser or UI tests, renders, video
or audio work, model runs, benchmarks, large migrations or long agent runs,
must go through Rota. Ordinary builds and unit test suites are not heavy and
run as they are.
- **Book known work a week ahead.** Recurring or planned jobs for this project
go in with `rota book --project <project> --name "<what>" --at "<time>"` or
`--cron "<schedule>"`, with `--est`, `--cpu` and `--ram` estimates. Check the
plan with `rota week --project <project>`.
- **Announce ad-hoc jobs and wait for a go.** Run
`id=$(rota add --name "<project>: <what>" --est <time> --cpu <cores> --ram <GB>)`,
then `rota wait "$id"`. Never start heavy work before Rota says go.
- **Check in while running.** Run `rota checkin "$id"` every few minutes. Exit
code 0 means continue. 10 means wrap up by the time given, and 11 means pause.
- **Stop cleanly when told.** On wrap up or pause, reach a safe point, save
your state, run `rota done "$id" --paused` and tell me where you stopped.
Otherwise, finish with `rota done "$id"`, or `--failed --note "<why>"`.
- **My blocked time always wins.** Never work around a wait, a wrap up or a
pause, and never change my blocks or priorities yourself.
- **Prefer enforcement for plain commands.** Run heavy commands with
`rota run --enforce --name "<project>: <what>" --est <time> -- <command>`, so
Rota can pause and resume them. If this tool has Rota hooks installed, let the
hooks route heavy commands and follow what they say.
- **Ask when unsure.** If you can't tell whether something is heavy, or Rota's
answer seems wrong, ask me instead of guessing.Where each tool reads global instructions:
Tool | File |
Claude Code |
|
Codex |
|
OpenCode |
|
Gemini CLI |
|
Instructions are a request, not a guarantee. For Claude Code, the hooks route heavy commands through Rota even when the agent forgets.
Enforcer mode (optional)
Rota is a gatekeeper by default: it answers, and jobs run themselves. Enforcer mode is for when you want Rota to really hold the reins. It is built on pueue, which you install yourself (Rota never installs it):
brew install pueue
brew services start pueueThen check that Rota can reach it:
rota enforcePlain commands opt in one at a time:
rota run --enforce --name "api-server: full test suite" --est 40m --cpu 6 --ram 8 -- make test-allRota holds the command in pueue's heavy group (with a parallel limit, set
under Settings) and starts it when the plan says go. When your blocked time
or a higher-priority job needs the machine, Rota pauses it there and then, and
resumes it later. A paused command keeps its memory, so Rota keeps counting it
as taken. rota run shows the output and exits with the command's own status.
--detach returns at once, and rota logs ID [--follow] shows the output,
which Rota keeps after the run ends. Cancelling an enforced job stops it.
Commands that send work outside their process group (nohup, setsid,
docker run, a trailing &) are flagged as not fully enforceable, because
pausing or stopping them would miss those processes.
Live agent sessions are never frozen. Instead, hooks let them work with
Rota. Claude Code is the first tool supported. The
Claude Code plugin brings the hooks with it. Without the
plugin, this adds them to ~/.claude/settings.json and keeps a .bak copy. Use
rota hooks print claude-code to see them first.
rota hooks install claude-codeWith the hooks in place, each session shows up as a job. Heavy commands it
runs (browser and UI tests, renders and other media or model work; see the
built-in list in internal/enforce/classify.go, or set your own patterns) go
through rota run --enforce. Builds and unit tests run as they are. A heavy
command that would run into your blocked time is turned away with the reason,
so the agent can do something else. Before your
time starts, the session is told to reach a safe stopping point and end its
turn. Afterwards, Rota resumes it with the tool's resume command
(claude --resume <session> -p …) through pueue. The hooks keep Claude Code's
normal permission checks. Set ROTA_HOOK_DECISION=ask to have every rerouted
command shown to you first.
Backstop: if a session is still working a few minutes after its wrap-up time (5 by default), Rota stops the session's heavy child processes (busy CPU or large memory), never the agent itself, and tells you which ones.
Linux
Rota runs on Linux with systemd (Ubuntu, Debian, Fedora, Arch and most others). The one-line install works there too. From a source checkout:
make installEither way, rota goes into ~/.local/bin, with a systemd user service
(~/.config/systemd/user/rota.service) that starts at login, adds a "Rota"
launcher that opens the dashboard, and starts the tray icon now and at login.
To keep Rota running from boot on a machine nobody logs in to, run
loginctl enable-linger once.
What Rota reads on Linux:
Source | |
CPU |
|
Memory |
|
GPU |
|
Idle time | GNOME's idle monitor, the freedesktop ScreenSaver service (KDE and others), or |
Notifications | the desktop's notification service over D-Bus ( |
The tray icon (rota tray) needs a panel that shows StatusNotifierItem icons:
KDE, Ubuntu, XFCE and Cinnamon do out of the box; stock GNOME needs the
AppIndicator extension. rota tray --panel light draws dark bars for a light panel.
Files live in ~/.local/share/rota (database) and ~/.local/state/rota (log).
GPU readings have been tested against sample output only. If you run Rota on
an NVIDIA or AMD machine, please report what rota status shows.
Architecture
Path | What lives there |
| The |
| The decision engine. It plans the coming hours and answers each job. Pure Go, no I/O. |
| The daemon: HTTP API, background loop and booking logic. |
| SQLite storage for jobs, blocked time, readings and the feed. |
| CPU, memory, GPU and idle readings, for macOS and Linux. |
| Optional enforcer mode: the pueue backend and agent session hooks. |
| Where Rota keeps its files on each operating system. |
| A small cron expression parser. |
| Desktop notifications on macOS and Linux. |
| The dashboard: plain HTML, CSS and JavaScript, built into the binary. |
| The SwiftUI menu bar app. |
| Desktop launcher files for Linux. |
Built on
Go's standard library for the daemon, the API and the command line.
SQLite through the pure-Go driver
modernc.org/sqlite, so no C compiler is needed.launchd on macOS and a systemd user service on Linux to keep the daemon running.
The system's own tools for readings:
sysctl,ps,vm_statandioregon macOS,/procon Linux.SwiftUI for the macOS menu bar app and
fyne.io/systrayfor the Linux tray.pueue, only if you opt in to enforcer mode.
Security
Rota listens only on 127.0.0.1, answers only requests addressed to this machine,
and refuses changes that come from other web pages. Nothing leaves your machine.
To report a vulnerability, see SECURITY.md.
FAQ
Why not nice, cgroups or systemd slices? Those share the CPU among
processes that are already running. Rota decides whether a job should start at
all, and when it should stop, based on memory, the GPU, your blocked time and
priorities. Memory is the main reason: two jobs that each need 10 GB on a 16 GB
machine don't just get slower under nice, they swap or get killed. You can
still run a job Rota let through under nice.
Why not just a job queue like pueue? A queue runs commands for you. An agent session isn't one command: it runs many and has to stop at a sensible point, which the agent knows better than a scheduler. So by default Rota only answers. For plain commands, enforcer mode does use pueue underneath.
What stops an agent from ignoring Rota? In the default mode, nothing: it's a request, like the instructions you give it. For Claude Code, the hooks send heavy commands through Rota even when the agent forgets, turn away a heavy command that would run into your blocked time, and, a few minutes past a wrap-up time, stop the session's heavy child processes (never the agent itself).
Does it work with my tool? Anything that speaks MCP can use rota mcp, and
anything that can run a shell command can use the CLI and its exit codes.
Windows? Not yet. macOS 14+ and Linux with systemd.
Roadmap
A dedicated job machine. Run Rota on an always-on Mac mini that does the heavy work while your laptop stays free.
More agent hooks beyond Claude Code, for tools that offer them.
GPU readings confirmed on real NVIDIA and AMD machines, and Windows support.
Ideas and opinions are welcome in issues.
Contributing
Contributions are welcome, from a typo fix to a new platform. Start with CONTRIBUTING.md, and look at good first issues if you want somewhere easy to begin. Please follow the code of conduct.
License
Rota is released under the MIT License.
Available Tools
8 toolsrota_announceA
Announce a heavy job and ask whether it may start. Returns the job id and GO or WAIT. Start only on GO.
Inputs: est (required), name (required), cpu, dir, +7 more.
rota_askA
Ask again whether an announced job may start: GO or WAIT (with a time to ask again). Never blocks.
Inputs: id (required).
rota_bookA
Book known work into the project's week plan: once (at) or repeating (cron). Rota moves it to the nearest free slot if the time is taken, and says where.
Inputs: est (required), name (required), at, cpu, +9 more.
rota_cancelB
Take a job off the list, e.g. one announced by mistake.
Inputs: id (required).
rota_checkinB
Call every few minutes while a job runs. CONTINUE, WRAP UP by a time, or PAUSE now.
Inputs: id (required).
rota_doneC
Say a job stopped. result is "ok", "failed", or "paused" (stopped early after WRAP UP or PAUSE; ask again later).
Inputs: id (required), note, result.
rota_statusB
The machine's load now, how many jobs run and wait, the owner's next blocked time and any usage warnings.
Inputs: no named parameters.
rota_weekC
What each project booked for the next 7 days, and any unplanned jobs.
Inputs: project.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Most tools map to distinct lifecycle stages (announce → ask → checkin → done, plus book/cancel). The only real overlap is rota_announce vs rota_ask (both return GO/WAIT) and rota_status vs rota_week (both report load/bookings), but the descriptions clarify that announce registers a new job while ask re-queries an already-announced one, and that status is 'now' versus week being 7 days out.
All eight tools share a predictable rota_<suffix> snake_case pattern with single-word suffixes. Minor deviation: suffixes mix verbs (ask, announce, book, cancel, done, checkin) with nouns (status, week), though the noun forms consistently denote read-only queries.
Eight tools is well within the sweet spot and each maps to a necessary step in the announce-run-finish scheduling workflow. Nothing appears redundant or padded.
The job lifecycle is fully covered: announce, re-ask, periodic checkin, completion reporting, booking, cancellation, and two views of load/plan. Minor gaps: no way to inspect or amend an existing booking (must cancel and rebook) and no per-job detail/history lookup, but agents can work around these.
Maintenance
Related MCP Connectors
Task coordination for AI agents. Exclusive locks, shared files, handoffs, per-agent spending limits.
Keeps AI coding agents on one codebase from overwriting each other, and briefs each on its code.
Coding agents from Claude Code, Cursor and Codex claim jobs and lock files on one shared board.
Shared control plane for AI coding agents — tasks, memory, decisions, file locks. 12 tools.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI agents and their users to submit, route, and monitor training jobs across free-tier GPU clouds (Kaggle, Colab, Lightning, local MPS) through a local daemon that tracks quota, explains routing decisions, and gates long or secret-reading agent jobs behind human approval.81MIT
- AlicenseNot gradedqualityBmaintenanceLocal task queue and live board so parallel coding-agent sessions (Claude Code, Codex, Cursor) stop double-claiming work: atomic task claims, one human approval per batch of agent-proposed tickets, and results linked to commits. One Go binary with SQLite, no account.MIT
- AlicenseAqualityBmaintenanceSelf-hosted daemon connecting Claude Code, Codex, and other coding agents across machines via MCP + A2A: delegate tasks, ask questions, share results, and wake sessions.132Apache 2.0
- AlicenseBqualityCmaintenanceEnables AI agents to start, monitor, follow up on, stop, and collect results from headless Claude Code CLI sessions, with queuing, budgets, locks, and wake-up notifications.9MIT