Repository navigation
capcomd 0.7.0
The desktop app (build it with apps/menubar/scripts/build-app.sh --desktop), goal branches (a run's reviewed work
lands on a branch of its own, and you choose at the end whether to open one pull request), and agents that name their
own tabs; also everything in 0.7.0-rc.1. Breaking: capcomd run <goal> now works on a goal branch
(--no-goal-branch for the old behaviour). Checked with a live run on boxd before the release: a planner, two workers
and a reviewer landed a goal on its branch from dev with no approvals, and the pull request into dev opened from it.
-
A goal branch's result lists each piece of work by its agent's title, in
capcomd goal, the apps' ready card and the
pull request's description. Work an agent continued from another (say, to fix a merge conflict) is listed once,
under the agent that carried it on, instead of also showing the first try as "merge failed". API: each landed and
not-landed entry ofGET /v1/runs/{runId}/goalcarriestitleandcontinues. -
Start a project from the desktop app: + (⇧⌘N) opens a new project column with the folder, the branch the work starts
from and the goal branch it lands on, the goal, Local or Cloud, the model and its effort, and Start. A folder that
isn't set up shows its setup steps in place. On Start the column becomes the planner's, and the crew's columns
appear as it spawns them. -
The desktop app's project menu: click the open project's name for its goal, repos and place, then Message the
planner (⌘L), Changes, Pause or Resume (⌥⌘P), Stop (asks first), Fold into the title bar (⌘W; a finished project
offers Remove from the title bar, which lasts until it has news, also across relaunches) and Copy run ID. ⌘K opens a palette of these actions, the other projects, New
project, Follow and the open project's agents by title. ⌘W folds the open project instead of closing the window. -
Agents name their own tabs. Each agent has a short title (1–4 lowercase words, e.g. "login redirect") that the
desktop app's crew tabs and column headers, the menu bar's rows, approvals and notifications show instead of id
fragments. Inside its VM an agent runscapcomd title "<words>"; a planner names its children withspawn --title
and the run withcapcomd title --run. An agent nobody named shows the first words of its task. Naming a tab
doesn't show up in the agent's thread or activity, and an agent that can't spawn names itself with a small local
capcomdthat makes no extra calls (capcomd reads the name from the agent's own commands). -
Rename an agent yourself by double-clicking its tab or its column header in the desktop app, or with Rename… on
its row in the menu bar. Your name stays until you clear it (empty the field); the agent's own name shows again
after that. From your own harness,capcomd title <runId> <agt> <words>and the MCP toolcapcomd_titlename an
agent, andcapcomd_spawntakestitle. -
The desktop app's column header reads "lead · login redirect · waiting on you" (no bot name), and a merge on the
menu bar's Active card reads "Merge work from into ?". -
API (capability
agents.title): agents carrytitleandtitleSource;PUTandDELETE /v1/runs/{runId}/agents/{agentId}/title; new eventsagent.titledandrun.titled;Run.titleSourcecan be
agent. -
The desktop app is called capcomd: in the menu bar, its About/Hide/Quit items and the Dock.
apps/menubar/scripts/build-app.sh --desktoppackages it ascapcomd.app(a regular Dock app). Its title bar shows each project by name only, without
the clock or status line under it. -
A desktop app (
CapcomdDesktop, a regular Dock app you can install without the menu bar one): the open project's
agents as full-height columns that stream their threads live, each with its own message box, and an agent's ask
docked at its column's foot (Approve ↩ / Deny; Return approves only the focused column's ask, Esc never denies).
Other projects fold into decks in the title bar (⌘1–9); ⌃1–9 and ⌃←/→ move between agents, and a sideways swipe
anywhere over the columns moves between them (scrolling up and down stays with the thread under the pointer). A
merge waits on the agent that asked for it (the lead or planner merging its child's work), so its Approve/Deny
docks on that agent's column. Follow (on by default,
⇧⌘F) scrolls to an agent that asks or fails, and scrolling yourself turns it off. A steer you send settles into the
thread, and one that failed offers Retry or Discard. The window says when capcomd can't be reached (and reconnects
by itself), when nothing is running, and when your token was refused. -
Fix: in the menu bar app, a long thread no longer opens on its oldest items and catches up over several seconds; it
shows once it has been read. -
API: agents have
createdAt, when they were spawned (null when unknown; older daemons omit it). -
API: a merge approval's
subject.askedBynames the agent that asked for the merge and waits on the decision
(requestedBy.agentIdstays the agent whose work merges); absent for an operator's merge. -
Breaking:
capcomd run <goal>with a planner (and every run the apps start) now works on a goal branch of its
own,capcomd/<goal-slug>, cut from--base(default: the project's target, else the repository's default branch;
never a guessedmain). Its agents' reviewed work lands there with no approval and no pull request per child, even
when the project merges by pull request. Pass--no-goal-branchto merge into the target as before. -
When the planner is done,
capcomd goal <runId>shows the goal branch against its base, what landed (with its
checks and review), what didn't and why, and the planner's summary.capcomd pr open <runId>opens one pull request
from it into the base with yourghlogin (capcomd never merges it);capcomd goal keep <runId>keeps the branch
without one.capcomd run new --goal-branch G --base Bstarts a scope on a goal branch; MCPcapcomd_run_newtakes
goalBranchandbase, and the new MCP toolscapcomd_goalandcapcomd_pr_opendo the same (your agent asks you
before opening a pull request). -
API (capability
runs.goal_branch):POST /v1/runstakesbaseandgoalBranch(a bad one is a 422 naming the
field); runs carrygoalBranch(its branch, base, state and pull request);GET /v1/projects/brancheslists a
checkout's branches for a base menu with a suggested base and goal branch;GET /v1/runs/{runId}/goalis the
finished branch;POST /v1/runs/{runId}/pull-requestand/keep-branchrecord the choice; new events
run.goal_completed,run.pr_openedandrun.branch_kept. -
As soon as you choose a project folder, the menu bar's composer shows the branch your run's work lands on and the
branch it starts from: the starting branch is preselected from the project, and when the project doesn't say you
pick it (nevermainby default). The branch name follows your goal as you type until you edit it, and a problem
with either name shows under its field. -
When the planner is done, the desktop app docks a card on the planner's column with its summary, what landed and
what didn't, and View diff · Keep branch · Open PR; the menu bar shows "Ready: " with the same actions, and
older runs in its Recent list show a "Ready" or "Stopped" flag while their branch waits on you. Afterwards you see
the pull request's link, or "Kept on ". -
capcomd notifies you once when a goal-branch run is ready ("Ready: → : 2 of 3 tasks landed") or
stopped with some work landed ("Stopped: …"); clicking it opens the run. It follows the same Settings switch as
finished-run notifications. -
When the planner failed or was cancelled, opening a pull request with what landed asks you first: in the apps, in
capcomd pr open(y/N on a terminal,--yesotherwise) and for agents (capcomd_pr_openwithstopped: true).
The pull request's description then says the run stopped. API:POST /v1/runs/{runId}/pull-requestanswers 409
stoppeduntil the body is{"stopped": true}, andGET /v1/runs/{runId}/goalcarries the question as
openPullRequest.confirm. -
Fix: capcomd no longer guesses
mainas a project's target.GET /v1/projects/inspectsendsdefaultBranch: null
when the checkout doesn't say,capcomd setup projectsuggests origin's real default branch, and running it again
keeps the target you set instead of resetting it tomain. -
Desktop window bench for coding agents (
apps/menubar/app/DESKBENCH.md):swift run -c release CapcomdDeskBench
hosts the desktop window on generated runs (1 to 64 agents, no daemon), drives it (open, project switch, reel steps,
jumps, swipes, thread bursts, typing, resize, Follow), measures frames, main-thread stretches and which views
re-rendered, judges the result against the SPEC §1 budgets, and compares builds within the machine's noise (run,
suite,ab,compare,profileunder Instruments,snapshot,explain;--jsoneverywhere, stable exit codes). -
The desktop bench shows where a slow stretch went and what changed between builds:
runsamples the main thread's
stack inside long stretches andexplainprints each one's top frames (--sampler offto disable;selftest samplerchecks it without a window);diff A Bcompares two time profiles as a call tree in ms per step. Results
record the exact build (commit, dirty flag) even for a copied binary.ab,compareandrun --baselinedecide on
main-thread CPU per step (--objective instructions|frames|latencyto change it), with frame metrics as guards and
late frames measured as ms of lateness per second.profilerecords the whole scenario, marks its results as
profiled (never compared: exit 6), and warns that.tracefiles hold private data and must never be committed.
The desktop app's views now live in theCapcomdDesklibrary the app and the bench both link; the app is unchanged. -
The desktop bench's
abis fair to both builds: it runs them in pairs with the order of each pair counterbalanced
(--order random|abba,--seed Nto redraw it), waits for a quiet machine before every run (--quiet-wait,
--quiet-busy; it names any build running alongside), and decides on the per-pair differences.explaintakes a
stretch's likely causes from its sampled stacks, and the first step no longer starts inside the setup's work.
deskbench describe [--json]lists the scenarios, objectives, guards, fixtures and runtime knobs;--knob name=valuesets a knob (reel.slide=ca|clip,build.perFrame=1..8), results record every knob's value, and
ab <scenario> --a-knobs … --b-knobs …compares two knob settings of one binary. A newperflooptool
(tools/perfloop:perfloop exp new|screen|full|promote,champion,store) keeps a ledger of experiments against the best
build so far;apps/menubar/app/PROGRAM.mdis the procedure an agent follows with it. -
Correctness guards for the desktop bench and perfloop:
deskbench run … --guards built-within,snapshot-diffchecks
that the columns in view were built once the window is at rest and saves a snapshot;deskbench snapdiff A.png B.pngcompares two. perfloop asks both builds for the best build's guards on every pair: a build that fails one
can't win, a snapshot unlike the best build's goes to the owner (needsReview), and theburst/typingisolation
checks run before every promotion.perfloop guards --exp IDre-runs them; only the owner may pass
--guard-tolerance. -
Bench results say why views re-rendered: each step and long stretch has
causes(which desktop-model properties
were set before its view bodies ran, and how many distinct columns or tabs re-ran),explainprints them under each
stretch, andperfloop causes <result.json>prints the whole table.profile --template swiftuisummarises the
SwiftUI instrument's cause tables and says when the recording has none. -
perfloop sweep step --set agents=4..64/12measures the desktop window across a grid of crew sizes, thread lengths,
knobs and scenario params and prints the cost curve with its fit ("ms/step grows 4.98 ms per agent (r² 0.84)");
--dry-runshows the grid and an estimate, and running the same command again resumes. Generated fixtures take
parameters (crew@agents=32,items=200).deskbench fixture capture --from <socket> --run <id> --token-file <file>
saves a run as an anonymised fixture outside the repo, and the bench runs on it with--fixture file:<name>. -
deskbench run swipe --gesture FILEreplays a recorded trackpad gesture into the desktop window's reel and reports
how closely the content followed your fingers (position error, stalls, jerk). Record one withdeskbench record-gesture --name NAMEand list them withperfloop gestures list. -
perfloop experiments can run on a machine nobody is using.
perfloop queue add IDandperfloop queue run --runner local|ssh://user@host --until HH:MMrun queued screens and fulls.localwaits until this Mac has been idle
(--idle 120) and redoes a rep you interrupt.ssh://copies the build to a spare Mac and opens the window in its
logged-in session, waiting while its screen is locked. Results record their runner and machine and are never
mixed;perfloop runner check Rshows a runner's state. -
Fix: deskbench's scene-hosted runs (the default) opened a second desktop window and measured both, so earlier
numbers were about twice one window's cost. Compare new results only with results recorded after this fix. -
Fix: an agent whose engine restarted (a crash, a killed
capcomd serve) while the engine was starting, provisioning
or wrapping it up no longer stays "running" for up to an hour: it resumes by itself within seconds of the engine
coming back, and whoever awaits it (you, or a parent agent'scapcomd await) gets its result.
Install
Needs Bun ≥ 1.4.0.
bun add -g capcomd@0.7.0
# or from this release's package:
gh release download v0.7.0 --repo MarvinAmador7/capcomd --pattern 'capcomd-0.7.0.tgz' && bun add -g ./capcomd-0.7.0.tgz
capcomd setupcapcomd-0.7.0.tgz.sha256 holds the package's SHA-256. The npm package is published from this workflow run with provenance.