Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
feat(control): group/arrange/align/spawn-team verbs + skill docs
enes20f2217af69e
diff --git a/src/main/canvas-control-core.test.ts b/src/main/canvas-control-core.test.tsindex bfc12b3f4..83111dd89 100644--- a/src/main/canvas-control-core.test.ts+++ b/src/main/canvas-control-core.test.ts@@ -47,4 +47,22 @@ describe('parseControlRequest', () => {expect(isDestructiveVerb('open-claude')).toBe(false)expect(isDestructiveVerb('show-image')).toBe(false)})++ it('group/arrange require --nodes; align also requires --edge', () => {+ expect(parseControlRequest('group', {})).toEqual({ error: 'group requires --nodes <id,id>' })+ expect(parseControlRequest('group', { nodes: 'a,b' })).toEqual({ verb: 'group', args: { nodes: 'a,b' } })+ expect(parseControlRequest('arrange', {})).toEqual({ error: 'arrange requires --nodes <id,id>' })+ expect(parseControlRequest('align', { nodes: 'a' })).toEqual({ error: 'align requires --edge' })+ expect(parseControlRequest('align', { nodes: 'a', edge: 'left' })).toEqual({+ verb: 'align',+ args: { nodes: 'a', edge: 'left' }+ })+ })+ it('spawn-team requires --team and none of the layout verbs are destructive', () => {+ expect(parseControlRequest('spawn-team', {})).toEqual({ error: 'spawn-team requires --team <json>' })+ expect(parseControlRequest('spawn-team', { team: '[]' })).toEqual({ verb: 'spawn-team', args: { team: '[]' } })+ for (const v of ['group', 'arrange', 'align', 'spawn-team'] as const) {+ expect(isDestructiveVerb(v)).toBe(false)+ }+ })})diff --git a/src/main/canvas-control-core.ts b/src/main/canvas-control-core.tsindex 416f1062a..28c2302df 100644--- a/src/main/canvas-control-core.ts+++ b/src/main/canvas-control-core.ts@@ -10,6 +10,10 @@ export type ControlVerb =| 'show-video'| 'show-web'| 'open-browser'+ | 'group'+ | 'arrange'+ | 'align'+ | 'spawn-team'| 'write'| 'close'@@ -26,6 +30,10 @@ const VERBS: ControlVerb[] = ['show-video','show-web','open-browser',+ 'group',+ 'arrange',+ 'align',+ 'spawn-team','write','close']@@ -53,6 +61,10 @@ export function parseControlRequest(return { error: 'show-web requires --url, --file or --html' }}if (v === 'open-browser' && !args.url) return { error: 'open-browser requires --url' }+ if ((v === 'group' || v === 'arrange') && !args.nodes) return { error: `${v} requires --nodes <id,id>` }+ if (v === 'align' && !args.nodes) return { error: 'align requires --nodes <id,id>' }+ if (v === 'align' && !args.edge) return { error: 'align requires --edge' }+ if (v === 'spawn-team' && !args.team) return { error: 'spawn-team requires --team <json>' }return { verb: v, args }}diff --git a/src/main/canvas-control.ts b/src/main/canvas-control.tsindex 85c71c9bf..a5455061a 100644--- a/src/main/canvas-control.ts+++ b/src/main/canvas-control.ts@@ -62,12 +62,21 @@ Verbs:- \`show-video <path>\` — open a video file as a player node.- \`show-web (--url U | --file P.html | --html "<...>")\` — open a web viewer (live URL or local HTML you wrote).- \`open-browser --url U\` — open a navigable browser (back/forward/address bar) at a URL.+- \`group --nodes <id,id> [--label "Frontend Team"]\` — wrap nodes in a labeled group frame.+- \`arrange --nodes <id,id> [--layout grid|row|column] [--cols N]\` — tidy layout, no overlap.+- \`align --nodes <id,id> --edge left|right|top|bottom|hcenter|vcenter\` — align edges/centers.+- \`spawn-team --label "Frontend Team" --team '[{"title":"UI","prompt":"...","agent":"claude"}]'\` —+ open one agent per role (each prompt starts that member working), arrange them in a grid,+ wrap them in a labeled group, and connect each to you. Max 8 roles per call.- \`write --node <id> --text "..."\` — type text into a terminal node. (Asks the user to confirm.)- \`close --node <id>\` — close a node. (Asks the user to confirm.)Notes:- \`write\` and \`close\` require the user to approve a confirmation dialog; they may be denied.- If the CLI says canvas control is unavailable, you are not in a controllable nodeterm session — do not retry.++To orchestrate a team: decide the roles + a concrete starting prompt for each, then one+\`spawn-team\` call (or \`open-claude\` per role followed by \`group\` + \`arrange\`).`try {fs.mkdirSync(path.dirname(skillPath()), { recursive: true })