an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions
HTML agent-harnessagent-orchestrationagentsai-agentsautonomous-agentsclaude-codecodexcoding-agentsdesktop-appdeveloper-toolselectrongemini-cliharnessharness-engineeringlocal-firstmemorymulti-agentopencodeorchestrationtypescript
Merge PR #53 (terminal work-order handoff) into v0.2.3
Chaitanya Giri6d6d7a69b177
diff --cc src/main/hive.tsindex 6b656f94,321d664f..2923dc52--- a/src/main/hive.ts+++ b/src/main/hive.ts@@@ -633,17 -565,14 +633,21 @@@ export class HiveManager}, godId);continue;}- // A provider with no way to drain its inbox (a hookless custom command)- // would let direct mail rot unread — bounce it to the god to relay as a- // live prompt. Claude (Stop hook), Antigravity (agy-hook Stop→drain bridge)- // and Codex (renderer idle inbox-wake nudge) all drain their inbox, so they- // receive directly into their inbox/. God is exempt (the bounce target).- if (target && !isClaudeProvider(target.provider ?? 'claude')) {++ // A provider that can't drain its own inbox (a hookless custom command)++ // would let direct mail rot unread. Claude (Stop hook), Antigravity++ // (agy-hook Stop→drain bridge) and Codex (renderer idle inbox-wake nudge)++ // all drain their inbox, so they receive directly into their inbox/. For a++ // provider that can't, try a terminal work-order handoff to its REPL (#53);++ // if the renderer is unavailable, bounce to god to relay. God is exempt++ // (the bounce target).+ if (t !== godId && !canReceiveInbox(reg.agents[t]?.provider)) {- this.deliver({- ...msg,- to: godId,- subject: `[bounced — "${t}" runs ${reg.agents[t]?.provider ?? 'a hookless CLI'} and can't drain its hive inbox; relay this to it] ${msg.subject}`- }, godId);+ if (!this.emitTerminalHandoff(msg, t)) {+ this.deliver({+ ...msg,+ to: godId,- subject: `[terminal handoff failed — "${t}" uses ${target.provider ?? 'custom'}; renderer unavailable] ${msg.subject}`++ subject: `[undeliverable — "${t}" runs ${reg.agents[t]?.provider ?? 'a hookless CLI'} and the terminal handoff failed (renderer unavailable); relay this to it] ${msg.subject}`+ }, godId);+ }continue;}this.deliver(msg, t);diff --cc src/preload/index.tsindex bf948ecc,2e7ba4b8..4430eda1--- a/src/preload/index.ts+++ b/src/preload/index.ts@@@ -424,14 -405,11 +437,22 @@@ const api =ipcRenderer.on('hive:message', listener);return () => ipcRenderer.removeListener('hive:message', listener);},+ /** Register a listener for hive tasks routed to non-Claude agents (e.g.+ * Codex). Main emits this instead of bouncing; the renderer enqueues the+ * raw text so the drain effect types it into the agent's REPL when idle. */+ onHiveEnqueue: (cb: (e: { targetId: string; text: string }) => void): (() => void) => {+ const listener = (_e: IpcRendererEvent, payload: { targetId: string; text: string }) => cb(payload);+ ipcRenderer.on('hive:enqueueToAgent', listener);+ return () => ipcRenderer.removeListener('hive:enqueueToAgent', listener);+ },++ /** Register a listener for terminal work-order handoffs (#53) — hive mail to a++ * hookless provider that can't drain an inbox; the renderer types it into the++ * agent's REPL as a work order. */+ onHiveTerminalHandoff: (cb: (e: HiveTerminalHandoffEvent) => void): (() => void) => {+ const listener = (_e: IpcRendererEvent, payload: HiveTerminalHandoffEvent) => cb(payload);+ ipcRenderer.on('hive:terminalHandoff', listener);+ return () => ipcRenderer.removeListener('hive:terminalHandoff', listener);+ },// ─── Quit confirmation ───────────────────────────────────────────────────onCloseRequested: (cb: (info: { ptyCount: number }) => void): (() => void) => {