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
fix: don't send Claude-only traffic to non-Claude workers (from #47 review)
Gulum1f3d9126d8de
diff --git a/src/main/hive.ts b/src/main/hive.tsindex c27f8415..dcfe7a14 100644--- a/src/main/hive.ts+++ b/src/main/hive.ts@@ -544,9 +544,15 @@ export class HiveManager {const resolveTo = (to: string): string => (to === 'human' || to === 'god' ? godId : to);const targets = msg.to === 'broadcast'// The roster for fan-out is the ACTIVE registry: skip the send-only prep- // assistant and any archived agent (closed tab) so mail never piles into a- // dead inbox no one will read.- ? Object.keys(reg.agents).filter((a) => a !== msg.from && !reg.agents[a]?.isAssistant && !reg.agents[a]?.archived)+ // assistant, any archived agent (closed tab), and non-hive-aware providers+ // (e.g. Antigravity's agy — they never drain an inbox) so mail never piles+ // into a dead inbox no one will read. A broadcast just skips them; their+ // god relays anything they actually need (direct mail to them bounces).+ ? Object.keys(reg.agents).filter((a) =>+ a !== msg.from+ && !reg.agents[a]?.isAssistant+ && !reg.agents[a]?.archived+ && isHiveAwareProvider(reg.agents[a]?.provider))// Never deliver to self — guards a god → "human" message looping back to god.: [resolveTo(msg.to)].filter((t) => t !== msg.from);for (const t of targets) {diff --git a/src/renderer/src/hooks/useHive.ts b/src/renderer/src/hooks/useHive.tsindex a7aa14d5..eaeef59b 100644--- a/src/renderer/src/hooks/useHive.ts+++ b/src/renderer/src/hooks/useHive.ts@@ -1,6 +1,6 @@import { useEffect, useRef } from 'react';import { useStore, type Agent, type StationKind, type ToolKind } from '@/store/store';-import { buildSpawnCommand, ASSISTANT_MODEL, type HarnessConfig } from '@/store/config';+import { buildSpawnCommand, ASSISTANT_MODEL, inferAgentProvider, isClaudeProvider, type HarnessConfig } from '@/store/config';const GOD_ID = 'god';const GOD_PTY = `pty-${GOD_ID}`;@@ -517,6 +517,9 @@ export function useHive(config: HarnessConfig | null): void {const { agents, messageQueues, enqueueMessage } = useStore.getState();for (const a of agents) {if (!a.ptyId) continue;+ // /compact is a Claude Code slash command — non-Claude CLIs (agy) would+ // just receive it as literal prompt text. Skip them.+ if (!isClaudeProvider(inferAgentProvider(a.command, a.provider))) continue;const queued = messageQueues[a.id] ?? [];if (queued.some((m) => m.text.trimStart().startsWith('/compact'))) continue;enqueueMessage(a.id, COMPACT_CMD);