Skip to content

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.

feat(claude): lay out subagent nodes in a 4-wide grid (wrap rows)

enes90ff64e81433
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsx
index 6412c8ba1..666ef60f9 100644
--- a/src/renderer/canvas/Canvas.tsx
+++ b/src/renderer/canvas/Canvas.tsx
@@ -142,12 +142,18 @@ export function Canvas() {
const parent = nodes.find((n) => n.id === pid)
if (!parent) continue
const ph = parent.measured?.height ?? (parent.height as number) ?? 400
+ const COLS = 4
+ const COL_W = 240
+ const ROW_H = 140
childIds.forEach((cid, i) => {
const v = agentById[cid]
eNodes.push({
id: cid,
type: 'subagent',
- position: { x: parent.position.x + i * 240, y: parent.position.y + ph + 60 },
+ position: {
+ x: parent.position.x + (i % COLS) * COL_W,
+ y: parent.position.y + ph + 60 + Math.floor(i / COLS) * ROW_H
+ },
draggable: false,
selectable: false,
data: {