Worker windows: delegated work as at-claude windows the hub shows as its agents (ATC-256) #391
Loading…
Reference in a new issue
No description provided.
Delete branch "atc-256-worker-windows"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Work package: https://openproject.home.romaine.life/wp/ATC-256 (this session's: https://openproject.home.romaine.life/wp/ATC-258)
Delegated work on home PCs runs as an at-claude window of its own in the
agentstmux session, never a sub-agent. This makes such a worker window count as one of the background agents of the window that opened it (the hub), shown where a sub-agent was, until both agree it is done.Added
at-claude worker open -name -dir -brief-file,worker send <name>(text on stdin),worker done <name>, through the hub's host (a Low or agents-account claude's tools may ask). Open saves the brief in~/.claude-spawnwith a note telling the worker its final reply each turn is its report, opens the window with the installed claude-pane (as open-window does), marks the tmux window with@at-claude-huband@at-claude-worker, and moves it toagentswith tmux's ownmovew, making the session if missing (CP-1).Worker: <name>), inat-claude agents, and on the strip throughtmux-strip agentswith strip'sWindowStart/WindowStop(strip PR 21, released as v0.1.18). It gives Claude each report as a wake in a newat-claude-workertag, which the window draws as that worker's message, folded like a sub-agent's report, beside the face its own window shows.sendwakes the worker in anat-claude-hubtag.donecloses the worker's window (its claude ends with the session saved) and drops it everywhere. A worker window closed by hand is dropped too, and the hub's Claude told.at-claude agents.Changed / left alone
--envtakes only follow-up settings, and a protocol restart (respawn-pane) drops env but keeps window options.host.Protocolstays 3: new optional fields (Request.Worker,BackgroundTask.Window, aworkersevent an older window drops), a new role an older host closes on, and newMovedfields so a move hands on the list and the worker's tie to its hub.done.Proven
internal/host/worker_test.goruns two real hosts with the fake claude end to end (open, marks, move, start, progress, report waking the hub, follow-up, done, strip events), plus notes from below Medium refused, gone, and a move. Parsing, transcript and window-row tests are listed in TESTING.md.agentsand moved the window there; the worker's report woke the hub, which showed1 agent reportand theWorker: review-diffrow;at-claude agentslisted it; a follow-up reached the worker and its next report the hub; done closed its window and emptied the lists; a second worker's window killed by hand was dropped with the hub told. The realtmux-strip agentstook both events without error.worker openas a tool (driven from outside here).🤖 Generated with Claude Code