Jump to content

MindAttic.Orchestrator

From MindAttic Docs

MindAttic.Orchestrator

A Windows daemon, dashboard and CLI that keeps Claude agents working the workspace's tickets around the clock and spends each 5-hour usage window to just under its limit, never over.

C%23-.NET%2010-512BD4.svg platform-Windows%20WPF-0078D4.svg https://img.shields.io/badge/license-all%20rights%20reserved-lightgrey.svg status-in%20daily%20use-2ea44f.svg

 Claude Code (every CLI, tab, subagent)                MindAttic.Orchestrator
 ---------------------------------------               -------------------------------------------
 statusline  --> ~/.claude/claude-usage.json  ---->    Daemon (Scheduler job, every 15s)
 transcripts --> ~/.claude/projects/**/*.jsonl ---->     measure: Claude's own 5-hour percent
                                                         pace:    target left / hours to reset
 hooks <------ ~/.claude/rl-status.json  <---------      steer:   allowance, hold, stop
   pace-gate.py    (before every tool call)
   context-gate.py (prompt / turn end)                 Dashboard (WPF)         CLI (orchestrator)
                                                         status, budget, queue,  status, budget, queue,
 /allocate in a CLI --> orchestrator next --claim       agents, settings        next, ledger, audit ...
   one subagent per ticket, all in the repo's own checkout on main

Why

  • Spend almost all of every 5-hour window: unused budget is gone at the reset, so the daemon paces to land at the target (98% by default) right as the window resets.
  • Never hit the wall: reaching Claude's limit stops every session mid-step, so at the target nothing more is spent, even if the daemon itself dies.
  • Leave tickets running overnight: type /allocate in one CLI and it works its repo's tickets through subagents, all in the repo's own checkout on main (no worktrees or branches), landing each on main and closing it.
  • See every agent in one place: which repos are working, which sessions wait on you, what's queued, and how much budget is left.
  • Catch drift early: shared agent files that differ between repos, and code copied across repos, are found and listed.

Features

Pacing and the stop

  • Reads Claude Code's own 5-hour and weekly percent every 15 seconds (sooner when a turn ends) and works out the sustainable rate to the reset.
  • A subagent allowance (up to 16 at once, across every CLI) grows while the draw fits and shrinks when it runs ahead.
  • A hold on every tool call in every Claude CLI (and Codex, Gemini and Kimi through their own hooks) slows a draw that runs ahead, and drops to 0 the moment it fits.
  • A stop at the target that refuses tool calls and answers typed prompts unsent, with a fallback that still refuses at 99% if the daemon is down.
  • A pace ledger that grades every finished 5-hour window ok, under, blind or over, and files a fix ticket the moment a limit is hit.

Working tickets

  • /allocate in a CLI works its own repo's tickets (or -repo=A,B, wildcards like -repo=GTFO.*, or all) through its own subagents.
  • One queue of every open ticket across the workspace, with cost estimates learned from past tickets, blocking, token reservations and quiet hours.
  • Only fixes are worked without asking; features, chores and docs wait for your approval in MindAttic.Tickets (tickets ticket approve, or Tickets Desktop).
  • The Orchestrator runs work; MindAttic.Tickets owns the tickets (M.ORCH-T762). Approving, prioritizing, assigning, reserving, blocking, intake, hygiene and showing a ticket are tickets ticket ... and Tickets Desktop; every ticket id and title the dashboard shows opens the ticket there.
  • Repo windows: a CLI opened in a repo only edits that repo's files and closes that repo's tickets, unless you grant /crossrepo.
  • /allocate off (this CLI) or /allocate off all (every CLI) winds down: no new ticket is claimed, working subagents finish, land and close, and once a CLI's last one has, it quicksaves its repo's handoff (as /quicksave does) and says <repo> quiet, handoff saved. It replaced /handoff (M.ORCH-T572).
  • Per-CLI logins: orchestrator start <repo> --account <email> (or the dashboard's login choice) runs that CLI on another account's token pool beside the others, each paced on its own.
  • Lock a login (M.ORCH-T2108): right-click Lock/Unlock on a login's tab locks it by hand, and a login that reaches its own weekly cutoff locks itself, even with an org allow. A locked login takes no new work and its CLIs are paced to a stop; nothing unlocks it but you. See Per-CLI logins.
  • Settings > Users (M.ORCH-T2184): every login with its email, signed-in and locked state, usage and running CLIs, with Lock/Unlock and the only Delete. Delete (never the global login) closes the login's Launcher and General Prompt, takes it off the member roster (as orchestrator members remove does) and moves its .claude-accounts\<email> folder to .claude-accounts\.deleted\<email>-<timestamp>; it is refused while the login has running project CLIs.
  • Move to account: each CLI on the Accounts view and the agent board has a "Move to" menu of the other signed-in logins (and orchestrator move <repo|pid> --account <email>|--global); its Launcher tab restarts it with claude --resume on that login at its next idle point, so it keeps its session and spends the other account's tokens from then on. Its subagents move with it: they're stopped at once, their tickets stay claimed (uncommitted changes kept) and are handed back to it to start again once it's on the new login; until then the CLI and those tickets show "Moving to <name>…" with every action on them off, and nothing else claims them. A move that doesn't land in 30 minutes unlocks with an alert, the old owner keeping its tickets.
  • Rebalance when an account runs low: when a CLI's login crosses its 5-hour pace target or its weekly stop line and another signed-in login has no CLI and at least 10 points more headroom, the daemon moves it there the same way (restart-resume at its next idle point) and toasts it, keeping one CLI per account. A moved CLI isn't moved again for 30 minutes, and a login that's low itself is never a target. orchestrator settings --rebalance false (or the Settings toggle) turns it off.

Dashboard

  • Repo tiles grouped as Needs you, Working, Open tickets and Quiet, with a toast and taskbar flash when a repo starts waiting on you.
  • Stat tiles for the token budget, pace and tokens today, a full-width 5-hour utilization chart, and a live clock.
  • An agent board listing every live CLI and background agent with its ticket, state, tokens and running time, subagents nested under it.
  • Start a Claude, Codex, Gemini or Kimi tab in any repo, or reply to a live Launcher tab, from the detail pane.
  • No tray icon: closing the window quits, and you pin it to Start or the taskbar to open it. Only one runs (M.ORCH-T497): opening it again brings the open one to the front, and a copy an older build left hidden in the tray is asked to exit (M.ORCH-T501).
  • Settings in MindAttic Vault (LAMP, M.ORCH-T1308): the dashboard's cog opens MindAttic.Vault.Desktop at the Orchestrator tab, where every app-level setting is edited (budgets, pacing, scheduler, logins, reviews, alerts, dashboard, folders, the team gateway); a Save there applies live. orchestrator settings still changes them from the command line. They live in %LOCALAPPDATA%\MindAttic\Orchestrator\settings.json (per machine), overlaid on the database's settings table, which the hooks keep reading and the daemon keeps in step; today's values were imported once from the table, which stays as it was. The org-wide login actions (Add login, Sign in all, Report) are the Logins button beside the cog. The Claude key the API billing mode bills is the one assigned to the Orchestrator on its Vault tab, else the shared keyring's Claude key as before.

Watching and safety

  • Flags a session repeating the same tool call as looks stuck, and a ticket whose session went quiet as stale.
  • Samples the machine every 30 seconds and starts nothing while handles or memory run short.
  • Reaps tool processes orphaned by an agent that exited, and searches running past 30 minutes.
  • Deletes an ended session's %TEMP%\claude\<project>\<session> folder (its scratchpad and background-command logs), on start and every 10 minutes.
  • Refuses whole-drive searches and git push to master before they run.
  • Optional phone alerts through ntfy.sh or any plain-text webhook.

Quick start

You need Windows and Claude Code. The released exe is self-contained, so no .NET install is needed to run it.

  1. Download MindAttic.Orchestrator-v1.zip from the latest release, unzip it and double-click Install.cmd (it installs the Orchestrator, the Launcher and the Vault; no source or .NET SDK needed).
  2. On a new PC the Welcome window (M.ORCH-T1545) takes you through the rest, one button each: the tools (git, the GitHub CLI, Claude Code), GitHub sign-in, the workspace (default D:\Projects\MindAttic: build one or point at one), and your Claude account's sign-in.
  3. The dashboard opens, scans every repo and learns your limits from the last month of transcripts.
  4. In any Claude CLI inside a repo, type /allocate to have it work that repo's tickets.

From source (needs the .NET 10 SDK):

.\run.ps1                       # the shared run menu (run.bat opens it too): 1) Redeploy  2) Run Debug  3) Run Release; 13 = Deploy & Run
.\run.ps1 -Redeploy             # build origin/main to R:\MindAttic\Apps\MindAttic.Orchestrator\{Debug,Release}, then install the Release build as a double-click would
.\run.ps1 -Redeploy -RunRelease # same, then open the dashboard
dotnet run --project src/MindAttic.Orchestrator.Wpf   # a dev build: never installs itself

Redeploy (MAT-T298) builds Debug (framework-dependent, runs as itself) and Release (the self-contained drag-and-drop exe and its daemon). After the Release build it publishes the CLI to C:\Apps\MindAttic.Orchestrator\Cli, adds new TermHost, Gateway and TermViewer version folders beside the old ones, and runs --install. Nothing installs while another Claude CLI is still working: orchestrator busy decides, and -WaitForIdle or -IgnoreBusyClis change that. A TermHost is never stopped, so hosted CLIs survive. -UiOnly installs only the dashboard, and -LauncherOnly only rewrites the shortcuts' launcher, C:\Apps\MindAttic.Orchestrator\run.bat.

What you should see: the dashboard's repo tiles fill in, the token budget tile shows the current 5-hour percent and pace, and orchestrator budget prints the same from a terminal.

How it works

It reads what already exists rather than adding new bookkeeping:

Source What it gives
Workspace folders (MindAttic.Tickets's Workspace) the repo list
MindAttic.Tickets\data\Tickets.db (the ticket database; each repo's docs/USER_STORIES.md is a view generated from it) open tickets and their requires links
\\.\pipe\mindattic-host-{provider}-{pid} (MindAttic.Launcher) live Launcher tabs, and a way to type into them
~/.claude/projects/**/*.jsonl (Claude Code transcripts) per-session activity and per-response token usage, read incrementally
~/.claude/claude-usage.json (written by the shared statusline; the orchestrator's own meter readings go to data/orchestrator.db's claude-usage state row and never replace it, and the later of the two counts: M.ORCH-T528) Claude's own 5-hour and weekly percent used and reset times
~/.claude/session-context/*.json (statusline + context-gate.py) each session's context fill, whether its turn is running, and its CLI process

The goal is to keep agents working all day and night, spending the target (98% by default, adjustable) of every 5-hour window without ever hitting the session limit. Pick what runs; it handles the rest. The full explanation is in docs/ORCHESTRATION.md.

Piece What it does Where
Daemon runs at logon, refreshes every 15s: budget, pace, hooks, sweeps Scheduler's Orchestrator.Daemon job (at logon, kept running); log in Vault (below)
Claude's count 5-hour percent and reset straight from Claude Code, sized safely ~/.claude/claude-usage.json
Pacing caps new sessions so the window lands on its target (98% by default) at its reset; the week is never paced rl-status.json → pace
Weekly reserve every CLI on an account stops at 100 minus the reserve (10% by default, 0–50; Settings page or orchestrator settings --weekly-reserve) of that account's week, so the CLIs never burn it all. Each login is held to its own line; the hooks read it live, the Accounts view and account menu show it ("stops at 90%"), and the Auto login pick and the most-headroom suggestion skip an account at its line rl-status.json → weekly_stop_percent
Holding agents every Claude CLI and subagent waits before each tool call while the draw won't last, 0s once it fits. If the daemon stalls or dies (rl-status.json over 3 minutes old) calls are still held at the last pace it wrote until that window resets, and the daemon logs a write that keeps failing (a gate holding the file open) and any tick over a minute with where its time went ~/.claude/pace-gate.py (PreToolUse hook); rl-status.json → pace_delay_seconds, window_reset
Never over at the target (or a limit) the status says stop: every tool call, in every CLI, ones with /pacing off too, is held as long as a hook may wait and then refused, so usage can't pass the limit whatever the hold settings. A message you type then is answered at once by the hook (not sent, so nothing is spent; it says when typing works again), except /allocate, /pacing, /crossrepo, /goal clear (a new goal is refused) and the exempt commands. If the daemon dies or stalls (rl-status.json over 3 minutes old) the stop still holds: both gates fall back to Claude's own 5-hour and weekly percents (refreshed by the statusline every 60s) and refuse at 99% of the 5 hours or at the week's stop line, and every prompt you type warns that the daemon is down. A stop once seen holds until its window resets (latched in data/orchestrator.db's stop-latch state row, or ~/.claude/session-context/stop-latch.json while the database is held, M.ORCH-T528): a stalled daemon's stale file and an idle session's lower percent can't lift it, and a call already held for the pace or a subagent slot when the stop comes on is held on and refused, never let through. Below the stop, typing is never held rl-status.json → stop, stop_note, stop_until
Pace ledger every 5-hour window, once it resets, gets one permanent row graded ok (ended ≥95%, no hit), under, blind (Claude's meter went unseen ≥15 min while ≥2% of the window was spent) or over (a limit hit, or Claude reporting 100%), with its peak, end, minutes at 99%, the gate's holds and refusals and prompts answered at the stop. A new limit hit is raised the moment it's read (Error log, urgent alert, a fix ticket here with what the gate did in the 30 minutes before); a window closing over or blind does the same (one open blind ticket stands for all) %APPDATA%\MindAttic\MindAttic.Orchestrator\pace-ledger.jsonl; gate events in ~/.claude/session-context/pace-gate.jsonl (8 days); orchestrator ledger
Subagent allowance how many subagents may run at once across every CLI, worked out live from the pace (up to 16); each turn is told it, and a new subagent past it waits, then is refused if no slot frees within 5 minutes (counted as the daemon's live count plus any started since, so a subagent whose stop never arrived doesn't hold the rest) rl-status.json → subagent_allowance, subagents_running; settings --max-subagents 16
Pacing per CLI /pacing off exempts one CLI (its process, subagents and /clear included) from every pace hold until it closes or /pacing on is typed; its usage still counts, so the others absorb it, and the stop at the window's target and the weekly stop still apply. /pacing on is every new CLI's default; a bare /pacing is answered by the hook (unsent) with this CLI's state ~/.claude/session-context/unthrottled-<pid>
Exempt commands a turn typed as one of ExemptCommands (default /pacing, /deploy, /run, /allocate, /commit, /quicksave, /quickload; a saved list still naming the retired /throttle or /unthrottle reads as /pacing) skips every pace gate until it stops: no hold, no subagent wait, no stop refusal, and a typed one isn't answered unsent at the stop. A Skill call naming one goes through anywhere. Each such call is logged as exempt and counted, so its spend lands in the pace at once settings --exempt "/deploy,/run" (none, default); the dashboard's Settings; the turn's mark in ~/.claude/session-context/<session>.state.json → exempt
Wind-down /allocate off (this CLI) or /allocate off all (every CLI): nothing new is claimed there and keep-going sends it back for no ticket; its subagents already working finish, land and close. When a turn of that CLI ends with none of its subagents still running, it's told once to quicksave its repo's handoff as /quicksave does (the quicksave goes through even at the window's stop) and say <repo> quiet, handoff saved; /quickload restores it. This replaced /handoff and its daemon-wide hold, "All quiet" alert and on-start reload (M.ORCH-T572); the old ~/.claude/commands/handoff.md is deleted while it's still ours the CLI's noallocate mark (wind until its quicksave, then empty)
Account roster every Claude account signed in to here (email, org, plan) with its latest weekly and 5-hour used percent and resets. A /login adds or refreshes its row from Claude's meter; while signed in, each 1-point rise in the week refreshes it (the 5-hour percent and resets with it) and reads the meter again. An account not signed in keeps its last reading and when it was read; a passed reset reads 0% and the week's reset rolls on a week. Shown by orchestrator accounts (and a bare orchestrator login), the dashboard's Accounts card and its account menu in the upper right, which switches account (M.ORCH-T492). The daemon commits the database and its readable dump in this repo when the dump changed (every 10 minutes at most), as tickets db sync does for Tickets.db data/orchestrator.db (table accounts) and data/orchestrator.sql in the main checkout, or MINDATTIC_ORCHESTRATOR_DB
Members the organization's members (M.ORCH-T670): email (the key), name, role, tier, status (active or pending) and when each was added and last changed, entered with orchestrator members add/set/remove; the one record of who's in the organization, which the dashboard's person tabs come from. The account roster stays this machine's sign-ins and meter readings, joined to it by email data/orchestrator.db (table members) and data/orchestrator.sql
Organizations organizations above people (M.ORCH-T655): each org (organizations: id, name, place in the switcher) and who's in it (org_members: one row per login, its LLM provider and the login itself, for Claude its email or the global login, naming its org and the person it's theirs, so an org can hold users of other LLMs). A login no org names is the default org's (id default, called MindAttic until renamed), so a one-org setup is unchanged: no switcher. With a second org (orchestrator orgs add "Sales", orchestrator orgs member sales "Jordan" jordan@example.com [--provider Codex], rename, remove, unmember; bare orchestrator orgs lists them) the dashboard shows an org switcher above the person tabs: the person tabs, each tab's CLIs, agents and pace, the Accounts view and the queue's claims are the chosen org's (every unclaimed ticket stays in every org's queue), and the queue is a virtualized list, so a switch builds only the rows on screen. orchestrator org stays about the members of the current org. Dispatch is per org too (M.ORCH-T753): a repo's tickets are its org's (orchestrator orgs repo <repo> <org>, orchestrator orgs repo <repo> --default, bare orchestrator orgs repo lists them; a repo not set is the default org's, kept in the settings' RepoOrgs), and orchestrator next --claim, the idle /allocate wake, the Auto login pick of a dispatched tab and rebalancing hand them only to that org's members' logins, each paced on its own login; a ticket assigned to a user goes to that user as before. With no room on its org's logins a ticket waits, or takes the API key only while API billing is on: another org's member's login is never a fallback data/orchestrator.db or SQL Server (tables organizations and org_members; repos' orgs in settings) or SQL Server (tables organizations and org_members) and data/orchestrator.sql
Usage report one row per member (M.ORCH-T685): 5-hour used and its reset, the week used and left, points left to the weekly target and its reset, how old the reading is and whether it's still accurate (stale past 15 minutes; a 5-hour window that has since reset reads unknown), then a line each for who's at the target, who has room and why a reading is stale. --detail adds where each reading came from (Claude's meter, or estimated from the transcripts since), what the orchestrator's CLIs spent on each login today and this week, and the API key's spend; --since <date>, --csv, --json; --md/--html <file> write it to share. The Accounts view's Report button writes both beside the store and opens the page. The old token breakdown by week, repo, provider and ticket type is orchestrator tokens orchestrator report; the dashboard's files in %APPDATA%\MindAttic\MindAttic.Orchestrator\reports
/org the organization from any Claude CLI (M.ORCH-T686): /org (or /organization) runs orchestrator org and shows its output as is. usage is the usage report above (same flags); login <who> signs that member's own login in (login --account <email>; it opens the browser, so the CLI hands you the ! orchestrator org login <who> line to type); members lists them (add/set/remove as orchestrator members); start <repo> <who> starts a CLI on that member's login; `allow <who> [--until <reset time>]lets that one member's login take work past its weekly target (100 minus the weekly reserve: a login with less than its reserve left otherwise gets no ticket and its CLIs stop until its weekly reset), until its weekly reset by default and never past it, anddisallow <who>takes it back (M.ORCH-T694: saved in orchestrator.db, logged, and shown in the usage report's notes; only you lift it, never rebalancing or allocate);lock <who>locks that member's login by hand so it can't open a CLI, take dispatched or moved work, or keep running CLIs (paced to a stop) untilunlock <who>lifts it — a login also locks itself the moment it reaches its own weekly cutoff, even past an activeallow, and stays locked past its weekly reset until unlocked (never automatically); unlock <who>also prints the login's current weekly use when it was clearing a weekly-cutoff lock;lockslists every locked login, why (manual or weekly-cutoff) and since (M.ORCH-T2114: saved in orchestrator.db, logged, shown in the usage report's notes and a lock badge on its tab/tree row in the dashboard); bare orhelplists them.<who>is a member's email, the part before the @, name, first name, login alias or initials (RD, E), any case; one that names several members, or none, lists who it could be instead of guessing. Each works on one org (M.ORCH-T755): the one chosen in the dashboard's org switcher, or--org <id
SQL Server the orchestrator's data (the account roster, Claude's meter readings, the pace ledger, the usage and ticket-cost history, the settings, the assignments and the saved state) is kept in its own SQL Server database, MindAttic.Orchestrator, on the full instance on this machine (MSSQLSERVER, localhost) (M.ORCH-T658; which repos use SQL Server and which stay on SQLite, and why: docs/DATA_STORES.md). orchestrator db migrate copies it there from data/orchestrator.db, checks every table's row count and switches every process over at its next write; orchestrator db shows where it is with each table's rows; orchestrator db back copies it all back into SQLite and stops using SQL Server. The file keeps what only this machine's processes share (the leases, the pace gate's slots and events, each CLI's marks, the sessions' states, the volatile state rows) and a copy of the settings, assignments and saved state, written on every change and re-copied by the daemon each minute, because the hooks read them through stdlib sqlite3 on every tool call. Without a server configured (another machine, the tests), everything stays in SQLite %APPDATA%\MindAttic\MindAttic.Orchestrator\database.json ({"SqlServer": "<connection string>"}), or MINDATTIC_ORCHESTRATOR_SQLSERVER (off for SQLite)
Repo windows a CLI opened in a repo works only that repo: pace-gate.py refuses edits to another repo's files, tickets ticket close/correct on another repo's tickets, and git -C <other repo> changes. Filing a ticket in another repo (tickets ticket new --repo X) is always allowed, since that's how work is handed over. The workspace-root (General) CLI may work anywhere; /crossrepo A,B (or all) lets one CLI into other repos until it closes, /crossrepo off ends it ~/.claude/pace-gate.py; data/orchestrator.db's cli_marks (~/.claude/session-context/crossrepo-<pid> while the database is held, read in by the daemon: M.ORCH-T528)
No master pushes every repo lands on main (the four master repos were renamed 2026-10-16), so git push to master is refused with a pointer to HEAD:main ~/.claude/pace-gate.py
Whole-drive guard find/rg/grep/fd on a drive root or ~, and a recursive ls/dir/Get-ChildItem there (-R, /s, or PowerShell's -Recurse/-r in any case), is refused: such a search never finishes and leaks handles until Windows freezes ~/.claude/pace-gate.py
Heavy-process lease one game player, Unity/Unreal/s&box build or editor, or long soak runs on the machine at a time (M.ORCH-T1680): a shell command matching the heavy pattern list must take a machine-wide lease before it runs, and is refused, with what is running and who holds it, while someone else holds it. Nothing is killed; a holder whose processes are gone holds nothing. See "Heavy-process lease" under Watching ~/.claude/pace-gate.py; data/orchestrator.db's leases (heavy-N rows); <repo>/.agent/heavy-patterns.json; settings --heavy-processes
Context nothing ever types /quicksave, /clear or /quickload into a session, and no turn is told to stop for its context: a full context is left to Claude's own compaction (automatic cycling cleared a session in use, 2026-10-16, so it was removed) —
Keep going only the CLI /allocate is on in, and only while its repos have workable tickets (fixes and approved ones that orchestrator next would hand it now: the hook asks it, as a dry run, before pushing a stop back): when its turn ends it's told to run orchestrator next again and carry on; one that stops again straight after without doing anything is let go. No other CLI is ever pushed onto tickets. Logged to ~/.claude/session-context/keep-going.jsonl ~/.claude/context-gate.py (Stop hook)
Resume after the reset a turn that ends at a window's stop (5-hour or weekly) is recorded in its session state; once that window has reset and the pace no longer stops, the daemon types a one-line resume into the CLI's Launcher tab, or, for a CLI in a plain terminal (or with --resume-after-reset false), alerts you that it's waiting. Once per stop; a new prompt clears the record ~/.claude/context-gate.py (Stop hook), the daemon
Wake idle /allocate CLIs an /allocate CLI let stop because orchestrator next handed out nothing (no pace room, its fair share in use) is idle until asked again; each tick the daemon asks next for it (a dry run), and once it would hand out a ticket, types a one-line prompt into the CLI's Launcher tab to claim and work them (or alerts you for one in a plain terminal). Not a CLI mid-turn, idle under 2 minutes, waiting on a window or running a /goal; at most once per 10 minutes per CLI the daemon
Allocate the CLI you type it into works the tickets itself, through its own subagents: each takes one ticket in the repo's own checkout on main, touching only that ticket's files, lands it on main and closes it, as many at once as the subagent allowance has room for /allocate (this CLI's repo), -repo=A,B (wildcards too: -repo=GTFO.*), all; /allocate off (this CLI), /allocate off all (every CLI); -target=PID,session,name, -target=others or -target=all turns it on or off in other CLIs, each in its own record; orchestrator next --repos A,B --claim hands out the tickets
Full suite on main a subagent builds and runs only the tests its change touches, then lands and closes its ticket, so its slot goes to the next ticket without waiting on the whole suite. The daemon runs each repo's full suite (dotnet test on the solution at its root) itself, with no LLM, once something lands on its main line: in a detached worktree (<worktree root>\<Repo>\main-tests), one run per repo at a time, landings made meanwhile covered together by the next run; a landing of only data/, docs/ or markdown isn't run. Each failing test (or a build that fails) is filed as one fix ticket ("Fails on main: <test> — <message> (landed on main since the last green run: ...)"); a test with an open ticket isn't filed again, and one that passes again closes it the daemon (MainlineTests)

The hooks are written into your global ~/.claude/settings.json by the daemon and dashboard, and rewritten if they go missing (a failed write, say while Claude Code has the file open, is retried on the next refresh). Both gates take the workspace from MINDATTIC_WORKSPACE (default D:/Projects/MindAttic) and treat <workspace>.worktrees\<Repo>\... as belonging to that repo (its old ticket worktrees from before M.ORCH-T1122, and the tools' own main-tests, deploy and verify-main worktrees).

Per-CLI logins

Several CLIs can run at once, each on a different Claude account's token pool (M.ORCH-T559). Sign an account in once with orchestrator login --account <email>, which makes its own config folder (%USERPROFILE%\.claude-accounts\<email>) and runs claude auth login --email <email> with CLAUDE_CONFIG_DIR pointing there. Then orchestrator start <repo> --account <email>, or the account's pill under Start a session in the dashboard, opens a Launcher tab whose CLI runs under that folder. A CLI started without it uses the global login (~/.claude) exactly as before.

  • Shared: the folder links (junctions) commands, skills, agents, hooks, plugins and projects to ~/.claude, copies CLAUDE.md, and takes ~/.claude's settings.json each time a tab starts on it. Its .claude.json starts as yours without the sign-in, so trusted folders carry over. Transcripts stay in one place, so the dashboard, tickets and agent board see every CLI's work.
  • Its own: the sign-in, Claude's meter (its own statusline writes claude-usage.json in the folder and hands the rest of the line to the shared one, tagged with the account), the pace (rl-status.json in the folder, written by the daemon), its subagents' marks, slots and waits (session-context in the folder), and its 5-hour readings (usage-samples.json).
  • Paced apart: the context gate records each session's config folder, so the global login's budget, pace and subagent allowance leave those sessions out. Each account gets its own budget, pace, allowance and meter probe, and its finished windows are graded in the pace ledger under its own account. orchestrator next (what /allocate asks) run from such a CLI hands out what its account has room for, and orchestrator accounts lists the per-CLI logins with their meter and pace.
  • The global rl-check.py prompt hook is left out of an account's settings: it only reads the global login's pace.
  • A year-long token (M.ORCH-T696): each sign-in (login --account, login --all, org login <who>, start --account, the Accounts view's Sign in / Sign in all) also runs claude setup-token under the folder, which mints a one-year OAuth token billing that seat's own subscription (inference only: no Remote Control or claude.ai connectors). Claude Code prints it once and never saves it, so the orchestrator takes it from the output (or asks you to paste it when it can't see it) and keeps it in the MindAttic Vault (%APPDATA%\MindAttic\ClaudeLogins\tokens.json, keyed by email), sealed with Windows DPAPI for your Windows user: never plaintext, never in the folder's .credentials.json. It isn't kept when claude auth status says it's somebody else's. A tab on that login sets CLAUDE_CODE_OAUTH_TOKEN (unsealed inside the tab's own PowerShell) next to CLAUDE_CONFIG_DIR and unsets ANTHROPIC_API_KEY/ANTHROPIC_AUTH_TOKEN, which would outrank it; a tab on another login or the global one clears any token it would inherit. The token, not the folder, picks the account, so there's one per folder. Bare orchestrator login warns 30 days before a token expires; an expired one is left out of new tabs (they fall back to the folder's own login) and minted again at the next sign-in; login --account <email> --new-token mints a new one at once (after revoking the old one in claude.ai, say). --bare CLIs ignore it.
  • Its own login screen: an account's sign-in (login --account, login --all, start --account, the Accounts view's Sign in / Add account, and a Start pill for an account not signed in yet) opens in a private window of a browser profile of its own (login-browser in its folder; Chrome, Edge or Brave, the default one first), prefilled with its email, through the folder's open-login.cmd set as BROWSER for claude auth login. So the page asks for that person's email and code instead of authorizing whoever your default browser is signed in to claude.ai as. Afterwards the folder's account is checked against the chosen email: a mismatch signs the folder out again and says so. A login's own dashboard tab that's been signed out since it opened signs it in first, then opens the CLI on it.
  • One CLI per account by default (Auto, M.ORCH-T605): a Claude tab started without a login chosen for it (the Auto pill on the dashboard's global-login tab, orchestrator start without --account, allocate's starts) goes on a signed-in per-CLI login no live CLI runs on yet, the one with the most headroom (the smaller of its 5-hour and weekly room) first, and falls back to the global login once every account has a CLI or none is signed in. A pick is held for 3 minutes so tabs started back to back spread out. --account or Global login still wins; orchestrator settings --auto-login false (or the Settings toggle) turns Auto off. orchestrator accounts pick prints the chosen login's CLAUDE_CONFIG_DIR (an empty line for the global login), which is what the Launcher starts a new tab with; --json adds the email and why.
  • One dashboard tab per login (M.ORCH-T613): the dashboard has a tab per Claude login, the global ~/.claude one first, then each per-CLI login signed in (or with a CLI on it), titled by its name with its email in the tooltip and its terminal tab color as its accent, and a tab added or removed as logins are signed in or out (Ctrl+Tab steps through them). Each tab is the whole dashboard scoped to that login: its Need you, Working and Subagents tiles, its own 5-hour and weekly tiles and utilization chart (its account's own meter and pace), its agent board and repos showing only the CLIs and Launcher tabs on it, its toasts tagged with its name, and Start (a repo's detail, the Queue) opening the CLI on its login (the global tab: the global login, or Auto). Tickets stay workspace-wide, so Queue and Audit read the same in every tab; the Accounts view stays the overview of every login, where accounts are added and signed in. One refresh builds the snapshot and each tab gets its part of it.
  • Open Launcher as this person (M.ORCH-T615): each signed-in login's tab has an Open Launcher button next to Refresh that opens the Launcher's menu scoped to that login (MindAttic.Launcher --account <email>, in that login's own Windows Terminal window and color), so every repo CLI started from it runs on that login and shows in that tab; one login may own many CLIs. On the global login's tab it opens the Launcher unscoped. A member of the organization (orchestrator members, M.ORCH-T670) who isn't signed in on this machine yet still gets a tab, showing only a Sign in button (its own sign-in in a private browser window); once signed in, the next refresh gives it the full dashboard and Open Launcher.
  • Tickets per user (M.ORCH-T668): under each person's open CLIs (their tab's Agents view) a Tickets view lists only the tickets assigned to them (the unassigned queue shows on the global login's tab alone, M.ORCH-T842), each saying who has it, with an Assign in Tickets link: assigning, reassigning and unassigning are MindAttic.Tickets' (tickets ticket assign, Tickets Desktop), and the Orchestrator reads the assignment from the ticket database through the engine (M.ORCH-T762; the settings' old Assignees, Reservations and BlockedBy move there once). The assignment is the person's login (its email; each claim's or tab's assignment records the login it was dispatched on, in assignments.account), and it's a pin: orchestrator next --claim hands it only to a CLI on that login, allocate's background agents never take it, and Start opens it only on that login (signed in on this machine, or it isn't started). While its person is out of room (their week at the weekly stop line, their 5-hour window at the pace target, or not signed in here) it waits for them, its card saying why ("Waiting for Ryan: week at 97%"), and nothing moves it to another login on its own; redelegating it in Tickets drops the pin, so it's handed on like an unassigned ticket. Unassigned tickets are handed out as before.
  • Lock a login (epic M.ORCH-T2108): a locked login can't be used until you unlock it. Lock one by hand with right-click Lock on its dashboard tab (the same item is in the tab's more button, the three dots), or orchestrator org lock <who>; a red lock badge then shows on its tab and tree row, and the usage report's notes list it. A login also locks itself the moment its week reaches its own weekly cutoff (100 minus the weekly reserve), even while an org allow is active for it, so no allow can carry a login to 100% of its week. Nothing unlocks a login automatically, not even its weekly reset: only Unlock (right-click, or orchestrator org unlock <who>) does. Unlocking one the weekly cutoff locked asks first and shows its current weekly use; an owner Unlock then holds for the rest of that weekly window, whatever the lock's reason, so the cutoff doesn't re-lock it before the reset. Any real login can be locked, the global one included; the API key never can. A lock blocks:
    orchestrator org locks lists every locked login with why (manual or weekly-cutoff) and since. Locks are kept in data/orchestrator.db (state row login-locks) with a log of every lock and unlock.
    • the Auto login pick, and tickets dispatched or handed to that login;
    • moves onto it;
    • an explicit open: orchestrator start --account, org start, machine start --login, and a ticket dispatched to its assignee's login (each refuses with <who> is locked (<reason> since <time>): orchestrator org unlock <who>);
    • its running CLIs: the login is paced to a stop (no subagents, tool calls held then refused), so they wind down. Nothing is killed.

Where CLIs open

Every CLI the Orchestrator starts (Start, Queue, allocate, orchestrator start) and every login's Launcher opens in Windows Terminal: a tab in its login's own window, titled and colored as that login (M.ORCH-T616). The dashboard shows only the dashboard: the terminal panes inside it (M.ORCH-T618) and each person's Dashboard/Terminals tabs (M.ORCH-T622) were removed by M.ORCH-T751, with Settings' Where CLIs open and orchestrator settings --terminal-host.

Terminals panel (M.ORCH-T810). Each person's page has a Terminals section between Current work and Tickets: one tab per CLI of theirs running inside the dashboard, each a live interactive terminal (EasyWindowsTerminalControl: the Windows Terminal renderer over ConPTY, a true TTY, GPU drawn, full ANSI and 24-bit color in Windows Terminal's Campbell scheme, COLORTERM=truecolor), so Claude Code renders as it does in Windows Terminal. A tab carries its login's badge and color, follows its CLI to another person's page when it's moved, and stays up marked ended once its CLI exits; its close button ends the CLI. The terminals are clipped to the page's scroll area and hidden while a dialog or the loader covers the window.

The hosting entry point: the dashboard listens on the named pipe mindattic-orchestrator-terminals-<Windows user> (current user only). A client writes one line of JSON (title, directory, and command as an argument array or commandLine; optionally repo, provider, configDir, email, initials, tabColor) and reads back one line: empty when the tab opened, else why not. No listener means no dashboard is open, and the caller opens its own window. Every terminal in the panel has MINDATTIC_ORCHESTRATOR_TERMINALS set to that pipe's name, so a MindAttic.Launcher running inside one sends its new CLIs here as tabs instead of opening a standalone window (M.LNCH-T77). PaneBroker.TrySend in MindAttic.Orchestrator.Core is the client side.

Each signed-in login gets its own Launcher tab (M.ORCH-T699), opened idle when the dashboard first sees the login: the Launcher's menu signed in to it (--account <email>, with its CLAUDE_CONFIG_DIR and long-lived token set first), so every CLI started from it runs on that login. A login whose Launcher menu is already running keeps it: Open Launcher brings that tab up instead of opening a second.

Allocate

Type /allocate in a CLI. That CLI works its own repo's tickets (or -repo=A,B, a wildcard such as -repo=GTFO.* for every repo whose name starts GTFO., or all) through its own subagents, and no other CLI is affected.

It runs orchestrator next --repos ... --claim, which hands it the next workable tickets (fixes, and tickets you approved, in queue order: manual priority, then smallest effort), as many as the subagent allowance has room for, each with a full prompt. Every ticket is worked in its repo's own checkout on main: no worktree and no orch/<id> branch is made (M.ORCH-T1122). It starts one subagent per ticket; parallel subagents in one repo share that checkout, so each touches only the files its ticket needs, stages them by explicit path (never git add -A), commits one ticket per commit, runs git fetch + git merge --no-edit origin/main (never a stash) before pushing to origin main, and closes its ticket with --ref. When they return it asks for the next ones, and stops when next hands out nothing and says why (none left, waiting for your approval, or the pace). When a repo's queue has run dry it asks whether to run /bughunt there and hunts only on an explicit yes; each bug the hunt finds becomes a fix ticket that /allocate then works.

While it's on, the repos named are that CLI's cross-repo exception, so its subagents may edit and close tickets there. The daemon no longer starts headless agents of its own; it still reaps ones started before, and its hourly sweep still removes old ticket worktrees (made before M.ORCH-T1122) once landed, deleting their orch/<id> branch when it's fully merged. A story whose agent was stopped at the window's stop is given back to start again after the reset (its work stays where it was). /allocate off ends it in that CLI.

To check on it: orchestrator status (sessions), orchestrator budget (percent, pace, hold), orchestrator queue.

Run it on another machine

To keep the daemon, the CLIs and their builds off your own PC, run them on a Windows 11 VM (M.ORCH-T1473). On the PC: orchestrator machine handoff --kit <folder>. On the VM: setup-host.ps1 -Kit <folder>, which installs everything and prints one orchestrator machine connect ... line. Run that line on the PC, and its dashboard becomes the VM's live Team Wall. From then on, orchestrator machine pull brings the agents' newest code to the PC. See docs/REMOTE_HOST.md.

The mesh: several machines, one Orchestrator

Every Windows 11 PC can be a peer that runs its own daemon, dashboard and CLIs, with one ticket database shared over Tailscale (M.ORCH-T2540). Tickets are claimed by exactly one machine through a renewing lease, each login is paced on its cluster-wide burn, and you can type into any machine's CLI from any other. Add a PC with one click: double-click Setup-Node.cmd. Remove one with orchestrator mesh remove <machine>. The user guide is docs/MESH.md, the operator runbook is docs/MESH_OPERATIONS.md and the design record is docs/MESH_ARCHITECTURE.md.

From your phone

Reach the PC from anywhere with Tailscale and Remote Desktop (Microsoft's Windows App Mobile, formerly Remote Desktop, microphone redirected; Tailscale only connects the phone to the PC, it doesn't show the screen). On a narrow or portrait screen the dashboard switches to its phone layout (M.ORCH-T1543): the CLI fills the screen, with touch keys (Esc, Tab, Shift+Tab, arrows, Ctrl+C, Enter), a mic that opens Windows voice typing on a say box, Send, and /voice (M.ORCH-T1544). Setup, step by step: docs/TAILSCALE.md.

Install

There's no setup step. MindAttic.Orchestrator.Desktop.exe is one self-contained file: drop it anywhere and double-click it. The first run:

  1. copies itself to C:\Apps\MindAttic.Orchestrator (per-user %LOCALAPPDATA%\Programs if C:\Apps isn't writable) and hands over to that copy;
  2. if the workspace (default D:\Projects\MindAttic) is missing or empty, the Welcome window (M.ORCH-T1545) offers start an empty one (any folder, for your own repos: no MindAttic access needed, M.ORCH-T1557), or asks: build one (pick an empty folder; it clones the workspace root repo, mindattic/codex-standard, then every repo listed in its docs\workspace-repos.json, four at a time, with a progress window) or point at one that's already here. Repos that fail (offline, no access) are listed with the git clone line that retries each;
  3. starts the daemon (the same exe with --daemon: headless, no window) if it isn't running. Starting it at logon and keeping it running is MindAttic.Scheduler's Orchestrator.Daemon job; the exe registers no scheduled task of its own (M.ORCH-T475);
  4. makes Start menu and desktop shortcuts, then opens the dashboard, which scans every repo and learns your limits from the last month of transcripts.

Every later start checks the same things and repairs only what's missing or points elsewhere, so a moved exe, a deleted shortcut or a dead daemon fixes itself. Double-clicking a newer copy upgrades in place (the running daemon and dashboard are stopped and restarted); an older one starts the installed copy instead of replacing it. A dev or test build (under bin\ or obj\, inside a git checkout or worktree, a *.worktrees folder, or the temp folder) runs as itself and leaves the install, daemon and shortcuts alone; only --install installs it (--install --force to replace a newer installed exe). MindAttic.Orchestrator.Desktop.exe --uninstall removes the shortcuts and hooks (and the old \MindAttic\Orchestrator\Orchestrator daemon task, if an older install left one); Scheduler's job is removed in Scheduler.

The daemon is what makes budgets and pacing always on: it keeps ~/.claude/rl-status.json and the pace (including the hold on running agents) current, installs and repairs the pace and context hooks, notices stale assignments, reaps orphaned processes and sweeps old landed ticket worktrees. Only one runs (a named mutex), and only one process holds the dispatch lease (dispatch.lock). The same lease decides who writes rl-status.json and builds the status snapshot: the holder publishes each one to status-snapshot.json, and every other dashboard window, and one-off CLI commands like status and queue, show that instead of reading the transcripts themselves (they build their own only when nothing fresh was published in the last minute, and never overwrite the holder's rl-status.json). A minimized dashboard refreshes every 60s instead of every 5s (every 15s while it's the one holding the lease) and catches up the moment it's shown.

Commands

The same core drives a CLI, deployed as orchestrator.exe in C:\Apps\MindAttic.Orchestrator\Cli (or dotnet run --project src/MindAttic.Orchestrator.Cli -- <command>):

Command
status [--all] [--json] every repo's state, sessions, open tickets, tokens today, budget line, who's billed and each open CLI's own billing
billing [team|api], billing credit <USD> who every CLI bills: Claude Team: <email> (<org>) or API KEY: sk-ant-...<last4> (masked), and each open CLI's own billing; team or api switches every CLI (see docs/ORCHESTRATION.md); credit <USD> records the API key person's starting credit (0 clears it), without an amount prints its spend (M.ORCH-T906)
login [<email-or-short-name>] [--sso] [--api-key] bare: the account roster, the signed-in one marked and the most headroom suggested; with an account, runs claude auth login --email <address> (--sso for SSO orgs), which opens its login in the browser; --api-key bills every CLI to the Vault's API key (emergencies)
login --account <email> [--sso] [--new-token], login --all [--new-token] signs in a per-CLI login once: that account's own folder (%USERPROFILE%\.claude-accounts\<email>), leaving the global login every other CLI uses as it is, and mints its year-long token into the Vault (--new-token mints a new one even though one is kept; see Per-CLI logins); --all signs in every roster account that has no login of its own yet, one after another
start <Repo> [--provider Claude] [--prompt <text>] [--account <email>] [--resume <session>] [--new] [--ignore-memory] open a Launcher tab for a repo; --account runs its Claude CLI on that per-CLI login's token pool; without it a Claude CLI goes on the Auto login (a signed-in per-CLI login no CLI runs on yet; none with room: the API key while API billing is on, else it isn't started); --resume reopens a Claude conversation (one cut off by a crash); --new opens one even at the CLIs-per-login limit; --ignore-memory starts it while RAM is low
dock [<session>], undock [<session>] dock gives a hosted CLI (its id, else this CLI's own) its dashboard tab back now, never restarting it; undock drops the tab and the CLI keeps running headless until dock (M.ORCH-T1448)
launcher [--login <email>] bring up the next of this login's Launcher tabs in the dashboard (cycling), or open one when it has none (M.ORCH-T1487)
quickload-all [--wait <seconds>] ask the running dashboard to run Quick Load All (every CLI resumes its repo's latest quicksave) and print what it resumed; waits 600 seconds by default (M.ORCH-T2070, /quickload all)
accounts [--json] every Claude account signed in here: weekly % used and left, its reset, the 5-hour % and reset, and when each was last read
accounts alias <email> ["<name>"] [--reset] names a Claude login (M.ORCH-T614); without a name, prints its name. Kept as alias (with the email it's for) in mindattic-account.json in the login's own folder, so the Launcher and its status line read it without the Orchestrator
accounts pick [--json] the Auto login a new Claude CLI should start on: one line, its CLAUDE_CONFIG_DIR, or empty for the global login (exit 0)
members [--json], members add <email> --role <role> --tier <tier> [--name "<name>"] [--status <status>], members set <email> [--name] [--role] [--tier] [--status], members remove <email> the organization's members (M.ORCH-T670), the members table of data/orchestrator.db: name, email, role (primary-owner, owner, admin, member), tier (premium, standard) and status (active, pending; a member left marked disabled from the old Disable is locked instead at the daemon's start), each with whether it has signed in on this machine (the accounts table, by email). Each change is written to the database and the dump. The dashboard has a tab for every member, titled by its name (else its login's alias, else the email's part before the @)
org, org help the organization commands below, each on the org chosen in the dashboard's switcher or --org <id|name> (M.ORCH-T755); <who> is a member's email, the part before the @, name, first name, login alias or initials; bare lists the subcommands
org usage, org members, org login <who> [--sso], org open <who>, org start <repo> <who> [--prompt <text>] usage is the usage report (as report); members is the members branch (add, set, remove as above); login signs a member's own login in and opens the browser; open opens claude.ai in that member's own browser profile, already signed in (M.ORCH-T1835); start starts a CLI in a repo on a member's login. The ones that act on a member take --org <id|name>
org allow <who> [--until reset|<time>], org disallow <who> let a member's login take work past its weekly target (until its weekly reset by default, M.ORCH-T694); disallow takes that back
org limit [<who> --weekly <pct> --5h <pct> | --reset] per-user usage cutoffs (M.ORCH-T707): alone lists them; --weekly (50 to 100) and --5h (1 to 100) set them; --reset puts back the defaults, 90 (week) and 98 (5-hour)
org lock <who>, org unlock <who>, org locks lock a member's login by hand: it can't open a CLI, take work or keep running CLIs until unlock (M.ORCH-T2114); unlock also clears a login's own weekly-cutoff lock and prints its weekly use; locks lists every locked login with why and since
orgs, orgs add "<name>" [--id <id>], orgs rename <id> "<name>", orgs remove <id> the organizations the dashboard switches between above the person tabs (M.ORCH-T655); with none added, one org (MindAttic, id default) holds every login; remove sends its logins back to the default org
orgs member <org> "<person>" <email|global> [--provider Claude], orgs unmember <email|global> [--provider Claude], orgs repo [<repo> <org> | <repo> --default] put a login in an org as a person's (moving it from any other), take it out again, or say which org a repo's tickets belong to (dispatched only to its members' logins); orgs repo alone lists them
move <repo|pid|session> --account <email>, move <repo|pid|session> --global move a running Claude CLI to another signed-in login: its Launcher tab restarts it with claude --resume on that login at its next idle point, keeping its session
clis [--json] every open Claude CLI and whether /allocate is on in it (the roster the daemon keeps in orchestrator.db)
memory [--json] what each hosted CLI's whole process tree holds (private and working-set MB, by exe), beside the dashboard, the daemon, the hubs and the other MindAttic processes (M.ORCH-T1733)
busy [--json] [--wait] [--poll 30] [--timeout <min>] [--self <pid>] [--all] [--running-only] [--skip-goal] whether any Claude CLI on this machine (any login) is still working: exits 1 when any is working or can't be read, 0 when all are idle; the calling CLI is left out; --wait polls (--poll seconds apart, default 30) until all are idle or --timeout minutes pass; --all also judges CLIs hosted in a TermHost; --running-only counts only work actually running; --skip-goal leaves out CLIs on a /goal. run.ps1 runs it before a redeploy (M.ORCH-T873)
inbox [--json] everything waiting on the owner now: tickets to approve, tickets parked as waiting-on-owner, stale and orphaned tickets, logins to sign in again, consent requests, each with the command that answers it (M.ORCH-T1689)
claim <ID> claim one named ticket this CLI starts by hand at the user's request: /allocate and other CLIs skip it until it closes or is released; refused when another live CLI holds it (M.ORCH-T1696)
send <Repo> "text" [--no-submit] type text + Enter (or just the text) into that repo's Launcher tab(s)
budget [--block 20M] [--weekly 150M] [--weekly-reset "Mon 9:00"] [--warn 80] [--pace true] [--target 98] [--hits] [--week] current 5-hour block, week and pace, and Codex/Gemini usage; set limits (0 clears back to learned, none drops the reset); --pace turns pacing on or off; --target is how much of each limit pacing aims to use by the reset (1 to 100; the setting's default is 98); --hits lists the limit hits the learned limits come from; --week charts the week day by day and projects it against the weekly limit
queue [--top 25] [--groom] the cross-repo ticket queue, what's proposed next, and why (estimate, stale, too big, blocked, reserved); --groom lists old untouched tickets. Reprioritize in Tickets (tickets ticket priority)
dispatch <ID> [--provider] start a session on a ticket, in its repo's own checkout on main
release <ID> [--remove-worktree] [--waiting-on-owner] put a ticket back in the queue; remove its old (clean) worktree, one made before tickets were worked on main; --waiting-on-owner also parks it with the waiting-on-owner label, which allocate, next and the Stop hook skip
daemon [--interval 15] [--here] keep the budget file, pace and hooks fresh without the dashboard open; --here runs it in this console instead of handing off to the installed MindAttic.Orchestrator.Daemon.exe
settings [<option> ...] show or change scheduler settings; every option is listed under Settings reference
disk-cleanup [--dry-run] [--quiet] [--ledger] [--ledger-run] delete agent-made temp (ended sessions' folders, stale scratch builds) oldest first when the temp drive is under --disk-cleanup-gb; --dry-run lists it; --quiet prints only when something was freed; --ledger shows the resource-ledger sweep's plan and deletes nothing; --ledger-run runs that sweep for real whatever --ledger-sweep-dry-run says
audit [--latest] [--top 15] convention drift and cross-repo duplication; --latest shows the last saved report
dryrun / next [--repos "A,B"] [--count n] [--claim] which CLIs have /allocate on and what each would hand its subagents next; --repos (also --repo) takes comma-separated names or wildcards (GTFO.*, *), by default the current folder's repo; next --claim claims them (assignment and prompt; worked in the repo's own checkout on main) and prints each one's model:, which /allocate starts that subagent on: Sonnet 5.5 for fixes, failed tests and tightly specified chores and docs; Opus 5.5 for features, design work, changes across many files and anything that must be right the first time (migrations, security). A settings --model override for the ticket, else its repo, wins
review <ID> [--dry-run] [--force] run from a Sonnet ticket's repo checkout after its commit, before it lands (its prompt says to): when its diff (its commits past origin/main that name the ticket) changes more than --review-lines lines or touches a --risky-files file (the gates, pacing, git landing), one headless Opus 5.5 run with no tools reviews the diff alone, never the repo, and is recorded on the claim so it isn't run twice. Its cost is charged to the ticket; --dry-run only says whether it gets one; --force reviews it whatever its size
show <ID> the sessions dispatched on a ticket; the ticket itself (row, links, history, commits) is tickets ticket show <ID>
mockup [dashboard|queue|settings] a Braille-dot wireframe of one of the orchestrator's own screens, drawn with MindAttic.Helpers.Ascii.AsciiMockup; no screen, or one it doesn't know, lists the names
ledger [--days 7] [--csv FILE] the pace ledger: every 5-hour window graded ok/under/blind/over, the running one, and the record ("26 windows since Sep 16: 23 over, ..."); windows before the usage samples began are known only from their limit hits. Exits 1 if a window went over in --days
pace-watch [--interval 1] live: the pace gate's calculated delay right now, and every hold or refusal as it happens, so pacing's effect on tool calls is visible outside the chat; --interval seconds, Ctrl+C to stop
report [--detail] [--since <date>] [--csv] [--json] [--md <file>] [--html <file>] [--org <id>] the usage report (M.ORCH-T685): one row per member with the 5-hour and weekly percent used, resets, points left to the weekly target and how old and accurate each reading is; --detail adds each reading's source and the CLIs' and API key's spend; --md/--html write it to share
tokens [--weeks 4] [--csv FILE] uncached tokens by week and repo, by provider, by ticket type, and per completed ticket by model (Sonnet against Opus; a ticket counts as the model that spent the most on it, so an Opus review leaves a Sonnet ticket Sonnet's)
remind "<text>" --at <time> [--to <contact>] / remind --list / remind --cancel <id> save a reminder the daemon texts through Psst when it's due (see Watching); --at takes 9am, tomorrow, tomorrow 8am, fri 5pm, tonight, in 2h, 30m or 2026-10-20 09:00, local time; --to a Psst contact or a US number, by default you (Psst's own number). A CLI agent asked to "remind me tomorrow" runs it too
remind add --text "<text>" --every <gap> [--until-ticket <ID>] [--backoff N] [--max-every <gap>] / remind list [--all] [--json] / remind dismiss <id> a reminder that nags (M.ORCH-T1933): first due one --every (30m, 2h, 1d) from now, then again on a backoff (each gap --backoff times the last, default 2, up to --max-every, default 7d) until it's dismissed or --until-ticket's ticket is closed or won't-do; kept in data/orchestrator.db's reminders table. list shows the active ones (--all: ended ones too)
gateway [on|off] [--bind <address>] [--port <port>] [--cert-path <pfx>] [--cert-thumbprint <hex>] [--dev-cert-names <names>] [--owner <identity>] [--token-minutes <n>] the team gateway (M.ORCH-T933), off by default: on/off, where it listens (default 127.0.0.1:7443), its certificate (none clears; with neither, a pinned self-signed dev certificate), its owner identity and how long its tokens last (default 15); bare shows whether it runs and its certificate pin
gateway grant <who> watch|interact [--session <id>] [--for <2h>], gateway revoke <who> [--session <id>], gateway grants [--all] who may watch or interact (interact defaults to 1h, watch never expires unless --for); revoke closes a stream they allowed within seconds; grants lists them (--all: expired ones too); same-org members may watch by default
gateway audit [--since <2h|date>] [--limit <n>], gateway token <who> [--scope watch|interact] [--minutes <n>] who attached, detached and typed (counts, never content); a bearer token for a member, to hand them (M.ORCH-T934)
gateway remote add <name> <url> --pin <sha256> [--person <who>] [--token <token>], gateway remote remove <name>, gateway remote list [--check] the teammates' gateways the dashboard's Team Wall watches (M.ORCH-T936); a token left out is asked for and kept DPAPI-sealed; list shows name, person, URL, pin and token expiry, --check also asks each for its sessions
broadcast [share|unshare|pause|resume <session|all>] [mask|unmask <session>] what the team gateway shows remote viewers (M.ORCH-T935), nothing by default; without an action, every hosted session's choices and who is watching
db, db migrate [--server localhost] [--database <name>] [--connection <string>] [--replace], db back where the orchestrator's data is kept: bare shows SQL Server or data/orchestrator.db (SQLite) with each table's rows; migrate copies the data into SQL Server (the database is created), checks every table's row count, then uses it on this machine, --replace copies over a database that already holds data; back copies it back and stops using SQL Server
probe machine, probe links, probe azure (alias azure-sql), each [--once] [--json] [--interval <seconds>] health probes (M.ORCH-T1935, docs/HEALTH.md): each takes its readings, grades them against the health lines, publishes a health report on the app bus and prints it; --once exits with the Nagios code (0 ok, 1 warn, 2 critical, 3 couldn't run); --json prints health+json; machine is free RAM, commit charge, handles and drive space (M.ORCH-T2022), links the latencies the daemon depends on and its tick (M.ORCH-T2032), azure every Azure SQL database's state, load and storage (M.ORCH-T2029)
workspace export write docs\workspace-repos.json in the workspace root repo from the repos on disk (commit and push it so new machines get them)
workspace export-context-gate [--check] write the generated context-gate.py (default settings) over MindAttic.Agency's shared/hooks copy and the mindattic-agent-standard mirror, to commit there; --check only compares and exits 1 when a copy differs (M.ORCH-T1605)
workspace build <folder> [--root URL] [--install-apps] / workspace install-apps clone the workspace root, then every repo it lists, into a folder; on a partial workspace, only what's missing; install-apps runs every other app's run.ps1
machine / machine handoff [--kit <folder>] [--no-push] / machine connect <host> --pin <sha256> [--owner-key <key>] [--member <email> --member-key <key>] / machine host [--bind <address>] [--port <port>] / machine pull / machine kit <folder> / machine standalone run the Orchestrator on another machine (M.ORCH-T1473, docs/REMOTE_HOST.md): this machine's role; hand off from the PC (--no-push skips pushing the data first); connect the PC's dashboard to the host (an org member's PC uses --member and --member-key); make this machine the host (setup-host.ps1 runs it; --bind defaults to 0.0.0.0); pull every repo; write the host kit; everything on this machine again
machine invite <who>, machine members, machine revoke <who>, machine isolate <who> <windows-account> [--clear] [--password] on the host (hub phases 1 and 2, M.ORCH-T1640, M.ORCH-T1641): invite an active org member to connect their own PC (mints their member key, never the owner key); list the invited members, their keys and who is connected; revoke a member's key (their tokens are refused within a second, open streams close within 10 seconds); record which Windows account an admin made for their CLIs (--clear forgets it, --password also keeps its password in this user's Credential Manager)
machine start <repo> [--login <email>], machine stop <session>, machine consents, machine consent <id> allow|deny, machine tickets -- <args> on a member's PC (hub phase 2): start or stop one of your own CLIs on the host; see who is asking to type into one of your CLIs; answer one (no answer in time leaves them watching); on a client, run a tickets command on the host
milestone [list] [--json], milestone forecast [<ID>] [--json], milestone check [<ID>] [--json] milestones and their acceptance checks (M.ORCH-T1684): the active and accepting ones with tickets done and checks passed; each one's forecast (M.ORCH-T1688): projected date, tokens left, at-risk mark; run the build and exists checks and record each result (exit 1 when one ran and failed)
milestone accept <ID> --by <who> [--json] runs every check and marks the milestone reached only when all pass; never forces
milestone pending [<ID>] [--json], milestone approve <ID> <ITEM> --by <who>, milestone decline <ID> <ITEM> --by <who> [--reason <text>] the tickets and epics waiting to join an active or accepting milestone, whose scope is locked (M.ORCH-T1685); the owner approves one (it becomes a member) or declines it
milestone steward [<ID>] [--dry-run] [--json] files one ticket for each failed build or exists check no open ticket covers, and lists closed tickets that came back or cite no evidence (M.ORCH-T1686); --dry-run prints the plan and changes nothing
branches [--ready] [--returned] [--json] on the remote host: each origin/work/* branch, its isolated build (M.ORCH-T1501, off unless the Vault's RemoteBranchBuilds) and its local test run (M.ORCH-T1637); --ready the ones built clean and waiting for a local test run, --returned the ones whose run failed
branches test [<branch>...] [--repo <name>] [--list] [--timeout <minutes>] [--json], branches fetch [--show] [--json], branches report <repo> <branch> <head> --pass|--fail [--note "<text>"] [--json] on the PC: run the full suite of queued branches at the head the host built, in a detached worktree (M.ORCH-T1635); pull the host's ready-to-test queue without running a test (M.ORCH-T1634); record a local test run, a fail sending the branch back to its work unit
branches pushed <repo> <branch> <head> [--json], branches ff [<repo>...] on the host, the agent's last step: mark the branch's ticket as awaiting its test (M.ORCH-T1661); on the PC, fast-forward main in the named repos' checkouts (every workspace repo when none) after the host merged a signed-off branch (M.ORCH-T1636)
agents [list] [--all] [--role <role>] [--owner <email>] [--json] agents by a stable id (M.ORCH-T1744): each plays a role, runs on a login under a runtime, and is idle, running, paused or terminated; --all adds the retired
agents new <role> [--owner <email>] [--runtime claude] [--unit <ID>] [--id <agt-...>] [--force] [--json], agents pause <id>, agents resume <id>, agents retire <id> write an idle agent's row (the role is checked against the roles table and mindattic-agent-standard\shared\roles; --force skips it); pause an idle or running agent; send a paused one back to idle; terminate one (its row is kept so the id still names it)
mail [list [<agent>]] [--all] [--everyone] [--limit 50] [--json], mail send <agent> "<body>" [--unit <ID>] [--from <who>] [--force] [--json] the agent mailbox (M.ORCH-T1745): durable handoffs between agents by their ids; the daemon hands an agent's unread mail to its CLI on its next prompt; list shows the unread (--all: the read too; --everyone: every agent's); send leaves a message (--force sends to an id the agents table lacks)

Starting sessions needs the deployed Launcher at R:\MindAttic\Apps\MindAttic.Launcher\Release\MindAttic.Launcher.exe (MindAttic.Launcher\run.ps1 -Redeploy; the Orchestrator's "Launcher exe" setting in MindAttic Vault, Folders group, points elsewhere). Every Launcher the dashboard starts (menus, agent tabs, Commit all) runs from a snapshot of that folder under MindAttic.Launcher\Run\<build>, one per build, so a Launcher redeploy, which stops whatever runs from the Release folder it replaces, leaves open tabs running; tabs opened after it pick up the new build once its snapshot is copied (in the background: the previous build runs meanwhile), and a snapshot is deleted once nothing runs from it (M.ORCH-T2285). With the setting left at its default and no R: drive, the Orchestrator looks for the Launcher under C:\Apps, then per-user Programs, where the release installer puts it.

Settings reference

orchestrator settings with no option shows the current values; each option below sets one. A <true|false> option takes the word as its value (--allocate false). Defaults are those of OrchestratorSettings; the dashboard's Settings page and MindAttic.Vault.Desktop's Orchestrator tab change the same values.

Sessions, /allocate and queue:

Option Default Effect
--max-sessions <N> 4 most sessions at once (at least 1)
--max-subagents <N> 16 most subagents running at once across every CLI; 0 holds every new one
--allocate <true|false> true false pauses every CLI where /allocate is on; true lets them go again
--provider <name> Claude default provider (Claude, Codex, Gemini or Kimi)
--repo-cap <Repo=pct> none most of the 5-hour limit one repo may spend per block (0 clears); repeatable
--repo-sessions <Repo=N> 2 for a repo with none set sessions one repo may run at once (0 clears); repeatable
--allocate-skip <A,B> none repos /allocate never starts agents in (none clears)
--quiet <windows> none local times /allocate pauses, like "22:00-07:00,12:00-13:00" (none clears)
--keep-going <true|false> true a CLI that typed /allocate and ends its turn while its repos have workable tickets is told to carry on
--resume-after-reset <true|false> true once the window a CLI stopped for resets, a resume nudge is left for its hook; false only alerts you
--stale-hours <N> 12 hours without activity before a dispatched ticket goes back in the queue (0 never)
--groom-days <N> 30 days old and untouched before queue --groom lists a ticket (at least 1)
--orphan-redispatches <N> 3 times an orphaned ticket is redispatched before it is left for you (0 only shows it)
--orphan-quiet <minutes> 10 minutes a dispatch's CLI or tab must be gone before the ticket counts as orphaned
--unit-token-budget <N> 80000 size of one task in uncached tokens (20000 to 400000)
--heavy-processes <N> 1 heavy processes (a game player, a Unity/Unreal/s&box build, a soak) allowed at once on the machine; 0 turns the lease off
--hand-minutes <N> 15 kept for older setups; no effect now
--exempt <commands> /pacing,/deploy,/run,/allocate,/commit,/quicksave,/quickload slash commands whose turns skip every pace gate (none clears, default restores)
--model <Repo=model> none model /allocate starts a repo's or one ticket's subagents on (Prose=opus, M.ORCH-T12=sonnet, =auto clears); a ticket's wins; repeatable
--review-lines <N> 300 lines changed past which a Sonnet ticket's diff gets one Opus review (0 every one, -1 none for size)
--risky-files <globs> the gates, pacing and git landing files whose change by a Sonnet ticket always gets that review (none clears, default restores)
--github-intake <true|false> false hourly, file GitHub issues labelled orchestrator and CI failures on main as tickets
--notify <URL> none where alerts go off the desktop (an ntfy.sh topic or any webhook; none stops them)
--alert-to <contact> global (follows Vault Global, else ryan) who an urgent owner alert is texted to through Psst (a contact or US number; none stops it)

Pacing and logins:

Option Default Effect
--throttle-agents <true|false> true while the burn won't last until the reset, running Claude agents wait before each tool call
--max-delay <seconds> 300 the longest such wait
--pace-start-percent <pct> 90 a login's 5-hour or weekly use under which no pace guard is considered
--pace-target-percent <pct> 98 how much of the 5-hour or weekly limit pacing aims to use by the reset, for a login with no cutoff of its own (org limit overrides it per member)
--agent-abort <true|false> true abort just enough of a login's ticket subagents to bend its trend back under the pace line, releasing their claims
--agent-abort-after <minutes> 3 how long the new-start cool-off gets first (0 to 60)
--auto-login <true|false> true a Claude tab started without a login goes on a signed-in per-CLI login no CLI runs on yet
--rebalance <true|false> true the daemon moves a CLI whose login crosses its target to a login with more headroom at its next idle point

Refused: --pace-profile, --pace-curve-k, --weekly-aware, --failover, --weekly-target, --weekly-reserve, --weekly-line and --weekly-wind-down still parse, but settings refuses them with a message (M.ORCH-T706, M.ORCH-T707). Cutoffs are hard and per member: set them with org limit <who> --weekly <pct> --5h <pct>.

Dashboard:

Option Default Effect
--tab-blink-tokens <N> 1000 a busy login's play arrow blinks once per N uncached tokens (1 to 10000000)
--park-idle-cli-minutes <minutes> 60 idle minutes before the dashboard parks a CLI as a stub tab (0 never; 0 to 10080)
--first-load-wait <seconds> 20 how long the first load waits on the ticket database before showing anyway (1 to 600)
--symbol-tab-labels <true|false> true tab trailing text as symbols (Σ: 15% | λ: 29%) rather than words
--tree-menu-layout <true|false> true the login sidebar as a collapsible tree rather than the flat person-tab strip
--exclude-launcher-team-wall <true|false> false leave the Launcher's own menu pane out of the Team Wall

Disk:

Option Default Effect
--disk-warn-gb <GB> 20 free GB under which the daemon alerts (0 off)
--disk-critical-gb <GB> 5 free GB under which that alert is urgent
--disk-cleanup-gb <GB> 30 free GB on the temp drive under which agent-made temp is deleted, oldest first (0 off)
--disk-hold-gb <GB> 5 free GB under which no new work starts, once a self-cleanup has run (0 off)
--disk-hold-resume-margin-gb <GB> 2 GB a held drive must clear --disk-hold-gb by before new work starts again
--temp-retention-hours <H> 48 hours a %TEMP%\claude session folder is kept whatever the free space (0 off)
--scratch-lease-hours <H> 48 hours a claimed ticket's scratch dir is leased in the resource ledger (0 no expiry)

Ledger sweep:

Option Default Effect
--ledger-sweep-dry-run <true|false> true true: the sweep deletes nothing and only logs what it would; false lets the daemon delete
--ledger-sweep-quiet-minutes <M> 30 minutes nothing may have been written in an entry's folder before it is deleted
--ledger-sweep-leftover-hours <H> 24 hours a crash leftover in %TEMP% no ledger row covers must be old and quiet (0 off)
--ledger-sweep-build-output-hours <H> 72 hours a daemon worktree's bin and obj must have gone unwritten (0 off)
--ledger-sweep-history-days <D> 30 days a released row whose folder is gone is kept as history (0 keeps them)

Memory guard:

Option Default Effect
--memory-guard <true|false> true when RAM runs low, hold new subagents, CLIs and test runs; lower still, shed the newest subagent, then refuse tool calls
--memory-start-percent <pct> 98 physical RAM in use under which the guard does nothing
--memory-tight-gb <GB> 4 free RAM under which nothing new starts
--memory-critical-gb <GB> 2 free RAM under which the newest /allocate subagent is shed each minute
--memory-emergency-gb <GB> 1 free RAM under which every tool call is refused
--memory-per-subagent-gb <GB> 1 RAM one more subagent is assumed to take
--memory-tight-commit-percent <pct> 80 commit charge at or past which nothing new starts
--memory-critical-commit-percent <pct> 88 commit charge at or past which the newest subagent is shed
--memory-emergency-commit-percent <pct> 94 commit charge at or past which every tool call is refused
--memory-resume-margin-gb <GB> 2 how far clear of a level's free-GB line a reading must be to step back down
--memory-resume-margin-commit <points> 5 the same for a level's commit-percent line

Health lines (graded by the probes, docs/HEALTH.md):

Option Default Effect
--health-ram-degraded-gb <GB> / --health-ram-unhealthy-gb <GB> 4 / 2 free RAM under which RAM grades degraded / unhealthy
--health-commit-degraded-percent <pct> / --health-commit-unhealthy-percent <pct> 80 / 90 commit charge at or past which it grades degraded / unhealthy
--health-disk-degraded-gb <GB> / --health-disk-unhealthy-gb <GB> 20 / 5 free space on a drive under which it grades degraded / unhealthy
--health-dtu-degraded-percent <pct> / --health-dtu-unhealthy-percent <pct> 80 / 95 an Azure SQL database's DTU (or vCore CPU) percent
--health-storage-degraded-percent <pct> / --health-storage-unhealthy-percent <pct> 80 / 95 an Azure SQL database's storage percent
--health-link-degraded-ms <MS> / --health-link-unhealthy-ms <MS> 1000 / 5000 round-trip milliseconds of a link
--health-tick-degraded-seconds <S> / --health-tick-unhealthy-seconds <S> 60 / 180 a daemon tick this long
--health-learn <true|false> true learn the lines from the probes' history, each within its bound
--health-learn-min-samples <N> 60 fewest readings of a check its lines are learned from
--health-learn-margin-percent <pct> 5 how far past the normal reading a learned degraded line goes
--health-learn-percentile <pct> 90 which reading of the history counts as normal (50 to 100)
--health-learn-changes-kept <N> 200 learned-line moves kept to read back
--health-ram-learn-floor-gb <GB> 1 lowest free RAM a learned line may go
--health-commit-learn-ceiling-percent <pct> 97 highest commit percent a learned line may go
--health-disk-learn-floor-gb <GB> 2 lowest free GB a learned disk line may go
--health-dtu-learn-ceiling-percent <pct> 99 highest DTU percent a learned line may go
--health-storage-learn-ceiling-percent <pct> 98 highest storage percent a learned line may go
--health-link-learn-ceiling-ms <MS> 15000 highest round-trip milliseconds a learned link line may go
--health-probe-machine-seconds <S> / --health-probe-links-seconds <S> / --health-probe-azure-seconds <S> 30 / 30 / 300 seconds between the daemon's runs of each probe (0 never)
--health-alerts <true|false> true text the alert recipient through Psst when a check turns unhealthy and when it recovers
--health-failure-threshold <N> 2 unhealthy results in a row before a check alerts (1 to 100)
--health-success-threshold <N> 1 results in a row back out of unhealthy before the recovery alert (1 to 100)

Backup:

Option Default Effect
--backup-keep <N> 30 local backup folders kept after each Backup & Restore backup (0 to 10000; 0 keeps every one)

Configuration

All of the orchestrator's state lives in the repo's data/orchestrator.db (SQLite, committed with a readable data/orchestrator.sql dump; MINDATTIC_ORCHESTRATOR_DB overrides, else every process and hook, a worktree's too, uses the main checkout's copy under the default workspace, or a machine-local orchestrator.db in %APPDATA%\MindAttic\MindAttic.Orchestrator when there's no checkout there). Settings are the settings table, one row per setting; assignments the assignments table, one row each; learned limits, reminders, the last audit, the pace alarms, limit wakes and allocate's holds are rows of state (what changes every tick, the holds, the stale claims and when the dashboard was last seen, is left out of the dump so it doesn't make a commit every sync). Each change is one transaction, so the daemon, the dashboard, the CLI and the hooks (Python's sqlite3) read and write at once with no .lock files; the JSON files these replaced (settings.json, assignments.json, limits.json, reminders.json, audit.json and the rest) are read in the first time each is used and kept beside it as .bak. No secrets go in it: keys and tokens stay in MindAttic.Vault (M.ORCH-T524). The history lives there too: Claude's meter readings (usage_samples, kept a week), the pace ledger (pace_ledger), usage by day (usage_history) and ticket costs (ticket_costs); the JSON files these replaced (usage-samples.json, pace-ledger.jsonl, usage-history.json, ticket-costs.json) are read in on the first run and kept beside it as .bak. Change them with orchestrator settings and orchestrator budget, or in MindAttic.Vault.Desktop's Orchestrator tab (the dashboard's cog), which holds every app-level setting (LAMP, M.ORCH-T1308: the Vault file is overlaid on the settings table, and the daemon copies a Vault edit into the table for the hooks).

Every process logs through MindAttic.Log, the workspace's shared schema, to the standalone database Vault assigns it, %APPDATA%\MindAttic\Logging\MindAttic.Orchestrator\MindAttic.Log.db (VaultPaths.LoggingDbPath; open it with MindAttic.Log.Reader). The daemon records pace changes, holds, stale tickets, dispatches and failed refreshes; the dashboard records dispatches, releases and crashes; the CLI records crashes. Entries are tagged with a Component (Daemon, Dashboard, Cli) and a category.

What's been read from the transcripts is cached in %LOCALAPPDATA%\MindAttic\MindAttic.Orchestrator\transcripts.cache.json (each file's read offset plus its parsed usage and limit hits; a few MB, saved at most once a minute), so a new process parses only what was written since: a CLI run takes under a second instead of about 4. Within a process, a transcript that's been quiet for 10 minutes and whose size and timestamp haven't moved isn't reopened on the next refresh (every one is rechecked every 5 minutes). When the 7-day window moves on at midnight, what fell out of it is trimmed rather than reread. Deleting the file is always safe; the next run rebuilds it.

Budget and pacing

Budget. Usage is grouped into 5-hour blocks (the window Claude's subscription limits reset on), starting at the first response after the previous block, rounded down to 10 minutes: that's where Claude Code's own reported resets land. The budget metric is uncached tokens (input + cache writes + output); cache reads are reported but excluded because they dominate raw totals.

Claude's own count wins. Claude Code hands the statusline its real usage (rate_limits: 5-hour and 7-day percent used and reset time); the shared statusline saves it to ~/.claude/claude-usage.json and the orchestrator sizes each limit from it (what the window spent by then, over the percent taken a point high, since Claude reports whole percents, so the limit errs small and pacing never walks into the wall). Between reports the percent is the last report's plus what the transcripts recorded since, so everything is counted: what you type, every reply, subagents, background agents. A report stays in use for its whole 5-hour window; the hooks also give the statusline a 60s refreshInterval, so any open tab, idle or not, keeps the real percent fresh. A statusline only carries its own session's last reply, though, so a CLI waiting on subagents reports nothing new while they spend; when the report is 4 minutes old and the transcripts show tokens spent since, the daemon asks Claude's usage endpoint itself (what /usage shows, with Claude Code's saved sign-in, read-only) and writes the reading to the same file. A budget you set overrides it; a learned limit applies only when there's no report for the current window (or it's under 5%, too coarse to size by). The daemon recounts on its 15s tick, and sooner (at most every 10s) whenever a turn or subagent ends anywhere or a new report lands (~/.claude/session-context/refresh.now).

Learned limits. Whenever Claude Code refuses a turn it writes You've hit your session limit · resets 2pm (America/Chicago) (or weekly limit) into the transcript. Each wall becomes one observation: the uncached tokens in that window up to the hit, plus the exact reset time. The learned limit is the median of the 5 most recent hits, so a raised limit takes over within a few hits. The first run reads the last 30 days to start from the hits you already have. While you're behind a wall, its reported reset replaces the estimated block end. A weekly hit's reset becomes the week's reset when you haven't set one. Spending past a learned limit with no wall means the limit went up, so it's retired until the next hit relearns it. A budget you set always overrides the learned one.

With a limit (reported, set or learned) you get percent used, burn rate, the projected time you'd hit it, a warning toast, and ~/.claude/rl-status.json kept current for the hooks. With none, the block is compared to your busiest block in the last 7 days as context only: it never warns, and no limit file is written. The week starts when Claude's own report says it resets, else at the reset day and time you set (local time, e.g. Mon 9:00 AM), else the learned one, else it's a rolling 7 days.

Pacing (on by default) aims to land on the target (98% by default, budget --target or the dashboard's Settings) of the 5-hour window right as it resets, instead of hitting the wall and waiting hours. The sustainable rate is what's left of the target divided by the hours to the reset. The weekly limit is shown, never paced: a week-long stretch would hold agents for days; only a real weekly wall stops new work. A session's cost is the last 30 minutes' burn divided by the sessions active in it (scaled up for any hold in force), or with none running, your median 10-minute session burn over the past week. The session cap is how many such sessions fit the sustainable rate:

Pace When Effect
open every slot fits normal
throttled fewer than max fit fewer new sessions; running ones aren't replaced as they finish
coast none fit, or the target is spent no new sessions
over at a limit (reported or counted) no new sessions

Near a reset with budget left, the sustainable rate climbs and the cap opens back up, so the leftover gets used.

Holding running agents. M.ORCH-T706 hard-coded this off; M.ORCH-T1750 restored it (2026-11-17) after a lone CLI with no subagents to cap ran a window from ~20% to 91.6% while its pace line sat at 34%. --throttle-agents is on by default again: while the forecast says the burn won't last until the reset, the pace gate holds each tool call (up to --max-delay, 300s by default) so running agents slow down instead of coasting straight through the curve to the hard cutoff, which still refuses calls outright once reached. The front-loaded curve, weekly-aware pacing and automatic API-key failover stay retired: only the per-call hold came back, and API billing is still only ever switched on by the owner.

The same pace-gate.py is wired into Codex's, Gemini's and Kimi's own pre-tool-call hook too (Codex's PreToolUse in ~/.codex/hooks.json, Gemini's BeforeTool in ~/.gemini/settings.json, Kimi's PreToolUse in ~/.kimi-code/config.toml), so a Launcher tab on any of the four providers slows down the same way. Codex shows its own one-time "hooks need review" prompt in its TUI before a freshly added hook runs there; nothing types through that for you.

Context. The statusline saves each session's context fill to ~/.claude/session-context/<session>.json, and context-gate.py records whether its turn is running; that's all. Nothing types into a session and no turn is told to stop for its context: a full one is left to Claude's own compaction.

Scheduler and queue

Every open ticket across all repos is in one queue: assigned tickets last, reserved ones first, then manual priority, then smallest effort (a known estimate before an unknown one, cheapest first), then fixes before features before chores before docs, then oldest. Tickets that aren't fixes and that you haven't approved wait outside it. Each refresh it proposes up to the free session slots (one per repo) under the pace's session cap. It holds when the slots are full, the pace is coasting or over, or (with pacing off or nothing to pace against) the budget passes the warn line. Proposals wait for a click; the tab opens with the ticket pre-filled and unsent, and the prompt tells the agent to finish with /commit and tickets ticket close <ID> --repo <Repo>. To work unattended, use /allocate (above). Every ticket starts in its repo's own checkout on main, even when the repo already has a session: agents share the checkout and each touches only its own ticket's files (M.ORCH-T1122; no worktree or branch is made). A closed ticket that still has an old worktree from before then is offered for removal (git refuses if it has uncommitted changes; the branch is kept).

A dispatched ticket stays assigned while there's any sign of life on it: a transcript (a session's or a subagent's) started on its ticket, or a Launcher tab titled for it. In the repo's shared checkout it's judged by repo and ticket, never by the folder; an old worktree of its own is still judged by its folder. After StaleAfterHours (default 12; settings --stale-hours, 0 never) of neither, the session evidently ended without closing the ticket, so it goes back in the queue at its normal place, marked stale. Starting it again starts it in the repo's checkout, where its partial work is, and replaces the old assignment.

Ticket costs. A dispatched session is tied to its ticket by the prompt the scheduler writes ("Work on ticket ID (type)") or (for an old one) by its worktree folder, so the orchestrator learns what tickets cost: every session's uncached tokens, kept per session for 180 days in orchestrator.db's ticket_costs. Each queued ticket gets an estimate: the median cost of the same type in the same repo (3+ done), else the same type, else all tickets. Proposals show it (~1.2M (median of 5 fix tickets in Prose)). When pacing is on and the estimate is more than what's left before the reset, the ticket isn't proposed but listed as too big for now.

Steering the queue. Approval, priority, blocks and reservations are set in MindAttic.Tickets (M.ORCH-T762), and the queue reads them from the ticket database. tickets ticket block X-T2 --by X-T1 (or "blocked by X-T1" in a ticket's summary) keeps a ticket out of proposals until its blockers close. tickets ticket reserve X-T5 2M sets tokens aside: that ticket is proposed first and may start while pacing coasts (never past a limit), and everything else paces against what's left. settings --quiet 22:00-07:00 pauses allocate in those hours. settings --repo-cap Prose=40 stops proposing work in a repo once it has spent 40% of the 5-hour limit in the current block; --repo-sessions Prose=3 lets a repo run 3 sessions at once (default 2), all in its own checkout. A non-Claude default provider holds at 90% of its own reported 5-hour limit. Proposals in a repo that shares duplicated code (per the last audit) with a repo that has a session say so. queue --groom lists open tickets over 30 days old that nobody is on. orchestrator dryrun prints what allocate would start right now, without starting anything.

Watching

The daemon flags a session that keeps repeating the identical tool call (5 of its last 12, still writing) as looks stuck: in its log, as a dashboard toast and in orchestrator status. It audits the workspace every AuditEveryHours (24) and reports drift or duplication that's new since the last audit.

An hour before each 5-hour reset, and again at 30 minutes, when the window is on course to end below 90% and no CLI has a ticket it could work (an open fix or approved ticket, unclaimed and unblocked, in a repo with a CLI open or that /allocate works), it raises a Needs you alert: how much of the window would go unused, how many tickets wait for your approval, and where /allocate is on. It only says so; it never starts or approves anything.

With settings --notify https://ntfy.sh/<topic> (or any webhook that takes a plain-text POST), the moments worth leaving the desk for go to your phone: an agent finished and is waiting on you, pacing coasts or hits a limit, a window is heading to end under target with nothing to work, a session looks stuck, a ticket went stale, the audit found something. With settings --github-intake true it files GitHub issues labelled orchestrator and CI failures on main as tickets every hour (once each, marked GH#n / CI#id; nothing is written back to GitHub).

Every 30 seconds it samples the machine (kernel handles, commit charge, free RAM): past a warn line (88% commit, under 2 GB free, 100k handles in one process) you're alerted, and past a danger line (95%, 0.75 GB, 250k) the alert is urgent. It names the worst offenders by what's short: memory users (and all Claude processes together) when it's memory, handle holders when it's handles. Going up is immediate; coming down is one level at a time and only once clear of the line (5 points of commit, 1 GB, a fifth of the handles), so it doesn't flap as agents come and go, and you're alerted once per escalation. Nothing is killed or held for these alerts; running out of RAM is held for by the memory guard below.

Memory guard (M.ORCH-T1493–T1498). Out of RAM, Windows pages to a pagefile that, system-managed, grows until the disk is full, and only a hard restart recovers. So low RAM scales work back the way the 5-hour and weekly stops do, /pacing off included:

Level Free RAM (or commit, with a fixed pagefile) What happens
Tight under 4 GB (80%) No new subagents, CLIs or main-line test runs start; running work finishes. orchestrator next hands nothing out.
Critical under 2 GB (88%) Also, once a minute, the newest /allocate subagent is stopped at its next tool call and its ticket requeued first. Nothing is killed.
Emergency under 1 GB (94%) Every agent's tool calls are held, then refused ("end your turn"), until memory recovers.

A level is entered at once and left one step at a time, only once 2 GB (5 points) clear of its line for a minute, so new work resumes at 6 GB free, not 4. With RAM to spare, new subagents still start only as far as free RAM holds above the 4 GB line at 1 GB each, and Agent calls sent together reserve their share for a minute while they load. The pace gate reads free RAM live itself, so a stale or dead daemon can't hide a fall. Main-line suites also run one at a time across all repos. A CLI you start from the dashboard while RAM is low asks first; orchestrator start --ignore-memory overrides. The menu bar's RAM readout turns amber, then red, with what's held in its tooltip; each CLI's session start says [Orchestrator] Memory guard is on. Lines: settings --memory-tight-gb/--memory-critical-gb/--memory-emergency-gb/--memory-per-subagent-gb, off with --memory-guard false (or Vault's Memory group). To try it, write a free-GB figure to %LOCALAPPDATA%\MindAttic\Orchestrator\memory-simulate.txt: it stands in for the real reading for 30 minutes, then lapses by itself.

Run set-pagefile.ps1 once (one UAC prompt, then restart) to fix C:\pagefile.sys at 16 GB: the disk then can't fill whatever happens, and commit becomes a stable signal. While the pagefile is still system-managed the daemon alerts once a day, and the guard goes by free RAM alone.

Every tick it reads free space on the system drive and the worktree root's drive: under DiskWarnGb (default 20 GB; settings --disk-warn-gb, 0 turns it off) you're alerted, urgently under DiskCriticalGb (default 5 GB), with the five biggest folders in %TEMP% and the five biggest files under %TEMP%\claude\<project>\<session>\ (background commands' output, scratchpad builds), so a runaway writer is named while it's still growing. It alerts once per step down and again each time free space halves since the last alert; it's back to normal once a tenth of the warn line (at least 1 GB) clear of it.

Low disk is acted on in two more steps, each a setting (orchestrator settings, or Vault's Alerts group):

Free space Setting What happens
under 30 GB on %TEMP%'s drive DiskCleanupGb (--disk-cleanup-gb, 0 off) Self-cleanup: ended sessions' %TEMP%\claude folders are deleted, by session liveness, at most every DiskCleanupEveryMinutes (5). A running session's scratch is only named. orchestrator disk-cleanup --dry-run lists what would go.
under 5 GB on the system or worktree drive DiskHoldGb (--disk-hold-gb, 0 off) The hard disk floor. The same self-cleanup runs first and the drive is read again; only if it's still under the floor is new work held: orchestrator next and /allocate hand out nothing, no new CLI opens (the dispatcher and orchestrator start refuse), and the daemon's main-line tests and branch builds wait. Running work is never stopped or killed for disk.

The hold lifts by itself once the drive is DiskHoldResumeMarginGb (--disk-hold-resume-margin-gb, default 2) clear of the floor, so new work resumes at 7 GB free, not 5, and a drive hovering on the floor doesn't flap. While it holds, every refusal says which drive, how much is free and how many GB to free; the daemon alerts once ("Disk full: holding new work") and the pace note carries the same line. It's an exhaustion floor only: over it nothing is held or slowed.

Ledger sweep (M.ORCH-T1677). Whatever the free space, on daemon start and every SessionTempPruneMinutes (10) the daemon reclaims what the orchestrator itself made and no longer needs. It ships as a dry run: LedgerSweepDryRun (--ledger-sweep-dry-run, on by default) deletes nothing and writes each thing it would delete, with its bytes, to data/disk-cleanup.log (once per item, and the daemon's log says when the plan changes). orchestrator disk-cleanup --ledger lists the plan with every verdict, kept ones included; --ledger-run runs it once for real; settings --ledger-sweep-dry-run false lets the daemon delete. It sweeps three things:

  • Resource-ledger entries (data/orchestrator.db's resources table: each claimed ticket's scratch dir <WorktreeRoot>\.scratch\<ticket>, its agent's ORCH_SCRATCH, and temp files) whose owner is dead or finished. Only what is proven delivered goes early: a ticket's scratch goes once the ticket is closed (or wont-do) and a commit naming it is on origin's main line (as last fetched), or once its claim was handed back (released with the ticket still open). Anything else, such as a ticket closed without a commit or one nobody holds any more, waits for its lease (ScratchLeaseHours, --scratch-lease-hours, default 48) to run out. A ticket still claimed keeps its scratch whatever its lease says, and one whose state can't be read from the ticket database is kept. A session's entry goes when SessionLiveness says the session ended; a process's when its pid is gone, or is another process now (the owner records pid and start time). The files are deleted, then the row is marked released; a released row whose folder is gone is dropped after LedgerSweepHistoryDays (--ledger-sweep-history-days, default 30).
  • Crash leftovers in %TEMP%'s top level: orchestrator-review-*.txt (a diff review's prompt) and mindattic-token-check-* (a token check's config folder) are made and deleted in a try/finally, so a crash orphans them. Both now record themselves in the ledger under the process that made them, so the sweep reclaims them as soon as that process is gone; ones with no row (left by an earlier crash, or made while the database was busy) go by name once older and quiet for LedgerSweepLeftoverHours (--ledger-sweep-leftover-hours, default 24, 0 off).
  • Stale bin/obj in the daemon's own worktrees (main-tests, main-bisect, local-tests, merge-main, branch-* under <WorktreeRoot>\<repo>): only folders beside a project file, all of a worktree's together, once nothing in them was written for LedgerSweepBuildOutputHours (--ledger-sweep-build-output-hours, default 72, 0 off) and no build or test runs there. The worktree itself, a ticket's work-* worktree and the repos' own checkouts are never touched; the next run there rebuilds.

Never deleted, whatever its owner's state: a worktree; anything outside <WorktreeRoot>\.scratch and %TEMP%; anything at or behind a junction or symlink (links inside a folder are removed as links, never followed); anything a running process names on its command line or holds a file open in (the session-temp prune's probes); and a ledger entry written within LedgerSweepQuietMinutes (--ledger-sweep-quiet-minutes, default 30). All of these are in Vault's Alerts group too.

Heavy-process lease (M.ORCH-T1680). The agent standard's rule is one heavy process per machine: one game player, one Unity/Unreal build, or one long soak at a time (parallel players and engine builds once grew the pagefile to 43 GB). The pace gate enforces it on every CLI it's wired into:

  • What counts as heavy is a pattern list, data not code. The default list is generated into pace-gate.py from HeavyGate.DefaultPatternsJson (src/MindAttic.Orchestrator.Core/Setup/HeavyGate.cs): the Unity editor and -batchmode builds or players, Unreal's RunUAT, BatchFiles\Build.bat, UnrealEditor/UE4Editor, UnrealBuildTool and AutomationTool, s&box (sbox, sbox-dev, sbox-server), a built game .exe run from a Build/Builds, Binaries\Win64, WindowsNoEditor or StagedBuilds folder, and soak, balance and harness-campaign runners. A repo adds its own in <repo>/.agent/heavy-patterns.json, the same shape as the test gate's per-repo file ({"patterns": [{"name", "regex", "at"}]}), added to the default list, never replacing it. regex is a case-insensitive Python regex; at is command (the default: at the start of each command in the shell call, once wrappers such as quotes, &, cmd /c, powershell -Command, Start-Process and an interpreter are stripped and the program's folder dropped), program (the same, with the program's folder kept) or anywhere.
  • The lease is a heavy-N row of data/orchestrator.db's leases table, N up to the limit, taken in one write transaction so two calls sent at once can't both get it. Its holder is JSON: the session, subagent, CLI pid, repo, login and command, and, once found, the processes running it (each a pid with its start time, so a reused pid isn't taken for it).
  • When it's free. While the gate that took it is still deciding (it may hold the call for the pace) it's held. For 60 seconds after that it's held while the holder's CLI is alive. After those 60 seconds the next heavy command's hook lists the machine's processes: one running the lease's command that started since the lease was taken makes the lease that process's, held for as long as it lives (a background or detached launch included, whatever its CLI does); none means the call is over and the lease is free. A crashed holder never blocks the machine. If the processes can't be listed, a lease lapses 15 minutes after it was taken.
  • The refusal says what is running, who holds it and for how long, and tells the agent not to kill it or ask you, but to do other work and try again on a background timer. The hook never kills, stops or waits on the holder. The same agent's next heavy command (a harness driving the player it started) reuses its own lease; a subagent of the same session is someone else.
  • The setting. orchestrator settings --heavy-processes <N> (Vault's Memory group: "Heavy processes at once") sets how many may run at once: 1 by default, 0 turns the lease off. orchestrator clis ends with who holds it: what is running, since when, and its repo, login, session, subagent and CLI.
  • It fails open. Any error in the check (the database held or missing, a bad pattern file) lets the call through. It runs before the pace gate's own exits, so an exempt turn, /pacing off and a CLI billed to the API key are held to it too. A command the test gate or a later hold refuses after the lease was taken leaves a lease that lapses after its 60 seconds, since no process is found for it.

Beside the watchdog, every tick it texts each reminder that's due (orchestrator remind) through Psst (psst sms <to> "Reminder: <text>") and marks it sent. The reminders live in one list it owns, the reminders row of data/orchestrator.db's state table (was reminders.json), not a Task Scheduler task each as psst sms --schedule makes, so they're listed (remind --list, the Queue view), cancelled, and survive reboots: one whose time passed while the machine slept or the daemon was off is sent at the next tick and logged as late. A send Psst fails is counted, alerted once and tried again next tick; when Psst isn't installed or configured, or a reminder for you finds no number in Psst's settings, the reminders wait and you're alerted once. Sent ones are dropped from the file after 30 days.

Every 60 seconds it reaps tool processes (find, rg, grep, git, bash, python, node) left orphaned when their agent exited, ones still under an agent that pass 50,000 handles, and searches (find, rg, grep) running past 30 minutes; a long test run or build under an agent is left be. An orphan is only reaped if an earlier scan saw it (or the shell it ran in) under a live Claude CLI, so a dev server or script you started yourself is never touched. Git and gh calls made inside its loop give up after 2 minutes and 1 minute and never wait on a credential prompt, so a network stall can't stop pacing.

Dashboard

Each repo is one tile, grouped as Needs you (a session stopped and is waiting, longest wait first), Working (a transcript grew in the last 2 minutes), Open tickets, no session and Quiet (shown with Show quiet repos or a search); Sort by orders the other groups by Name (the default) or Open tickets, and is remembered. A toast and a taskbar flash fire when a repo goes Working → Needs you. A full-screen loader covers the window until the first refresh finishes. F5 refreshes, Ctrl+F searches repos and tickets, Ctrl +/− zooms.

The top row holds the stat tiles (token budget, tokens today and the rest, aligned to one size at every window width), then a full-width 5-hour utilization chart. The header shows a live clock next to Updated and Refresh. Settings opens only from the cog in the window's top-right corner, between the emergency billing key and the sun/moon theme toggle (M.ORCH-T804): a tabbed dialog (Budget, Pacing, Scheduler, Logins, Person tabs) sized to 80% of the window, whose Logins tab holds the org-wide login actions (the email box, Add login, Sign in all and Report). The agent board lists every live CLI and background agent (its ticket, state, tokens and running time) with its subagents nested under it. Opening it after an hour or more away starts with a While you were away summary. A finished ticket's Details shows its sessions. Every ticket id and title the window shows (a finished ticket, an agent's ticket snippet, the per-person Tickets view, and the ids named in the dashboard's messages, statuses, held notes and a CLI's claims) is a link that opens the ticket in Tickets Desktop (OrchestratorOptions.TicketsDesktopExe, started with --root <workspace> --ticket <ID>) to view, approve, prioritize, assign, block or close it there; an alert about one ticket opens it when clicked. The dashboard has no ticket actions of its own (M.ORCH-T762): it only runs and watches work.

From a repo's detail pane you can start a Claude, Codex, Gemini or Kimi tab (ticket text can pre-fill the prompt, sent only by you) and reply to a live Launcher tab.

There's no tray icon: closing the window quits the dashboard (the daemon keeps running), and it's opened from its Start menu shortcut or a taskbar pin. Opening it while it's already up brings that window to the front. Usage is kept by day for a year (orchestrator.db's usage_history), so tokens and the week projection reach past the 7 days of transcripts.

Audit

Drift: for each agent file most repos share (.claude/commands, hooks, skills, .prose/commands, AGENTS.md, CLAUDE.md), the version most repos have is canonical (repo name and path are ignored), and every other copy is listed as drifted or, under 30% alike, custom, with a diff button. Missing: shared files absent where 60%+ of agent-enabled repos have them.

Duplication: a built-in copy/paste detector (6-line fingerprints over meaningful lines; generated code, migrations, build output and vendored libraries skipped) finds identical and near-identical files across repos, clusters them, and suggests a home (mindattic-agent-standard, MindAttic.Components, MindAttic.Helpers, MindAttic.Deploy).

Project layout

Path What's there
src/MindAttic.Orchestrator.Core budget and pacing, the pace ledger, scheduling and allocate, session discovery and control, activity readers, audit, installer and the hook scripts
src/MindAttic.Orchestrator.Wpf the dashboard and daemon entry point (MindAttic.Orchestrator.Desktop.exe)
src/MindAttic.Orchestrator.Cli the orchestrator CLI (Spectre.Console)
src/MindAttic.Orchestrator.Daemon the headless daemon exe (no window): keeps the budget file, pace and hooks current
src/MindAttic.Orchestrator.Term the terminal-hosting library: session records, the pipe protocol, the bus, the gateway and its grants and tokens
src/MindAttic.Orchestrator.TermHost the process that owns a CLI on a ConPTY so it outlives the dashboard; its Replay folder keeps the screen replay ring and terminal modes for a viewer that attaches late
src/MindAttic.Orchestrator.Term.Wpf the WPF terminal control that mirrors a hosted CLI over the relay (the dashboard's Terminals panel and the viewer use it)
src/MindAttic.Orchestrator.TermViewer a standalone window that watches (and, when granted, types into) a hosted CLI
src/MindAttic.Orchestrator.Gateway the team gateway: serves hosted CLIs to teammates' viewers over TLS, with grants, masking and an audit log; off by default
prototypes/T923-relay the throwaway relay prototype from the CLI-host spike (M.ORCH-T923); not in the solution
tests/MindAttic.Orchestrator.Tests NUnit tests for all of the above, including the Python hooks run for real
run.ps1 build the single-file exe and the CLI, then install

It targets net10.0-windows and uses the MindAttic.Log, MindAttic.Vault, MindAttic.Tickets and MindAttic.Components.Wpf packages.

Testing

Don't run dotnet test by hand or from a subagent. Under the workspace's agent standard, suites run only when you ask for them with /test (or /tests), which runs the repo's whole suite on origin/main in a clean worktree and files a fix ticket for each failure (MAT-T121). The one other runner is the daemon's main-line suite, which runs each repo's full suite itself after something lands on main (see "Full suite on main" above). A subagent builds and runs only the tests its change touches, and only when you've asked for tests.

Limitations

  • Budgets and pacing are Claude's (from Claude Code's own count, else learned from its limit hits). Codex (~/.codex/sessions) and Gemini CLI (~/.gemini/tmp/*/chats) usage counts toward repo activity and per-repo totals and is shown per provider, with Codex's own 5-hour and weekly percentages; Kimi writes no local session log, so its sessions show as Launcher tabs but aren't counted.
  • A session started outside the Launcher is tracked, counted and held, but send and the dashboard's reply box only reach Launcher tabs.
  • The owner's rules are still hard-coded for weekly-aware pacing, the pace profile and automatic failover to the Vault API key (M.ORCH-T706): --weekly-aware, --failover and --pace-profile are refused, and each login's week runs to its cutoff and stops. --throttle-agents is a real setting again (M.ORCH-T1750): on by default, it holds each tool call (--max-delay) once the burn won't last until the reset; the 5-hour and weekly cutoffs still refuse calls outright once reached either way.
  • Claude Code prunes transcripts after about 30 days; the budget history window is 7 days, which always covers the current week.
  • The budget file only updates while the daemon or the dashboard is running, so pacing only steers while one of them is; Scheduler's job keeps the daemon up, and opening the dashboard restarts it if it died.
  • Building a workspace clones the repos; it doesn't install the other apps unless you pass --install-apps or run workspace install-apps. The repo list is only as current as the last workspace export that was pushed.
  • No hold lasts past 5 minutes per tool call: past it the call goes ahead, held but never refused, except at the window's stop and for a subagent still waiting on a full allowance, where it's refused (the subagent is tried again once a slot frees, never started over the allowance). /pacing off exempts a CLI from holds, never from that stop.
  • A hold slows tool calls, not a long reply with no tool calls in it. Codex needs a one-time "trust this hook" click in its own TUI the first time its hold fires on a machine; nothing automates that.
  • Learned limits are in uncached tokens, and the token-to-limit ratio shifts with the model mix, so they're estimates, used only when Claude's own count isn't available.

Scope

The complete product, built and unbuilt, is docs/SPEC.md: every epic, feature and story with its ticket, the milestone that delivers it, and what is never in the product. The current finish line is docs/RELEASE.md (MS-23, 1.0: a week unattended), followed by MS-109 (2.0: jobs that finish themselves) and MS-110 (3.0: the right agent on the right model, across repos).

Documentation

  • docs/SPEC.md: the complete product specification and release sequence (MAT-T365).
  • docs/RELEASE.md: the active milestone's charter.
  • docs/MESH.md: the mesh user guide: what it is, adding and removing a machine, the logins grid, outages, FAQ (M.ORCH-T2582).
  • docs/MESH_OPERATIONS.md: the mesh operator runbook: the shared server, SQL logins, backups and restore, revoking a lost laptop, every mesh Vault setting (M.ORCH-T2582).
  • docs/MESH_ARCHITECTURE.md: the mesh design record, decisions and what is built so far (M.ORCH-T2543).
  • docs/ORCHESTRATION.md: how the measure, pace and steer loop works, and what happens when something fails.
  • docs/USER_STORIES.md: every ticket, open and closed (a view generated from the ticket database).
  • docs/FEATURES.md: the team gateway, broadcast, milestones, branches, named agents, mail, inbox, health probes, dock/undock/quickload-all and pace-watch: what each is for, its commands, defaults and limits (M.ORCH-T2150).
  • docs/HEALTH.md: the health-check probe contract and which parts are reused (M.ORCH-T2019).
  • docs/WORK_UNITS.md: why every dispatch is one small task, and the epic > feature > story > task tree (M.ORCH-T1901).
  • docs/ELEVATED_TABS.md: how an Administrator CLI tab is started under a TermHost (M.ORCH-T1656).
  • docs/app-bus.md: the local message bus between the dashboard, Tickets Desktop and the daemon: pipes, message kinds and a sender example (M.ORCH-T879).
  • docs/AGENTIC_ROADMAP.md: the roadmap from one ticket per login toward role-configured agents running jobs.
  • docs/design/hub-and-spoke/: the first hub-and-spoke pass (research spike, plan, implementation plan), closed as wont-do; superseded by the research note below.
  • docs/research/hub-and-spoke.md: members' own machines on one central Orchestrator, the second pass (M.ORCH-T1127).
  • docs/spikes/: cli-host-viewer.md (CLIs living outside the dashboard, M.ORCH-T922) and activity-feed.md (a structured activity feed, M.ORCH-T937).
  • AGENTS.md: instructions for agents working in this repo.

License

No license file: all rights reserved. Copyright (c) 2026 MindAttic.

Part of MindAttic — see more projects at github.com/mindattic. Related: MindAttic.Tickets, MindAttic.Launcher, MindAttic.Log, MindAttic.Vault.

Pages in this repository

From MindAttic.Orchestrator/docs/overview.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.