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
feat(ui): IDE at agent level; floor-wide auto-delivery on the god; files tab retired; fullscreen avatars uncropped
Chaitanya Giri820cfc348650
diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsxindex e5cfe598..64c6169e 100644--- a/src/renderer/src/App.tsx+++ b/src/renderer/src/App.tsx@@ -295,23 +295,8 @@ export function App() {><Icon name={fullscreenAgentId ? 'minimize' : 'expand'} size={1} style={{ width: 16, height: 16 }} /></button>- <button- className="cth-titlebar-nodrag"- onClick={() => setIdeOpen(true)}- title="Open IDE — file editor + git diff"- aria-label="Open IDE"- style={{- display: 'inline-flex', alignItems: 'center', gap: 5,- height: 28, padding: '0 9px',- background: 'var(--cth-paper-100)',- boxShadow: 'inset 0 0 0 1px var(--cth-ink-300)',- border: 'none', borderRadius: 2, cursor: 'pointer',- color: 'var(--cth-ink-900)',- fontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '14px'- }}- >- <Icon name="code" size={1} style={{ width: 16, height: 16 }} /> IDE- </button>+ {/* v0.3.4: the IDE button moved to agent level — every agent's header+ (sidebar detail, god Command Center, fullscreen) carries it. */}<buttonclassName="cth-titlebar-nodrag cth-settings-btn"onClick={() => setSettingsOpen(true)}diff --git a/src/renderer/src/components/AgentControlStrip.tsx b/src/renderer/src/components/AgentControlStrip.tsxindex 5ff4b867..297cbd72 100644--- a/src/renderer/src/components/AgentControlStrip.tsx+++ b/src/renderer/src/components/AgentControlStrip.tsx@@ -41,12 +41,6 @@ export function AgentControlStrip({ agentId }: { agentId: string }) {if (s) setSnap(s);flash('halt requested — stops cleanly at next hook');};- const toggleAutoDelivery = async () => {- const paused = !(snap?.autoDeliveryPaused ?? false);- const s = await window.cth.controlAutoDelivery(agentId, paused);- if (s) setSnap(s);- flash(paused ? 'auto-delivery paused — messages stay queued' : 'auto-delivery resumed');- };const sendSteer = async () => {const t = steer.trim();if (!t) return;@@ -68,13 +62,11 @@ export function AgentControlStrip({ agentId }: { agentId: string }) {{snap?.paused ? 'resume' : 'pause'}</PixelButton><PixelButton variant="destructive" size="sm" onClick={halt}>halt</PixelButton>- <PixelButton- variant={snap?.autoDeliveryPaused ? 'primary' : 'secondary'}- size="sm"- onClick={toggleAutoDelivery}- >- {snap?.autoDeliveryPaused ? 'delivery paused' : 'auto-delivery on'}- </PixelButton>+ {/* v0.3.4: the auto-delivery switch moved to the god's Command Center+ header — ONE floor-wide control instead of a per-agent toggle. */}+ {snap?.autoDeliveryPaused && (+ <span style={{ fontSize: 11, color: 'var(--cth-ink-500)' }}>delivery paused (floor)</span>+ )}{snap?.halted && <span style={{ fontSize: 11, color: 'var(--cth-coral)' }}>halting…</span>}{!!snap?.pendingSteers && <span style={{ fontSize: 11, color: 'var(--cth-ink-500)' }}>{snap.pendingSteers} steer queued</span>}</div>diff --git a/src/renderer/src/components/AgentDetailPanel.tsx b/src/renderer/src/components/AgentDetailPanel.tsxindex 55197b86..09a5f6fa 100644--- a/src/renderer/src/components/AgentDetailPanel.tsx+++ b/src/renderer/src/components/AgentDetailPanel.tsx@@ -9,7 +9,6 @@ import { MessageQueueComposer } from './MessageQueueComposer';import { CommandCenterPanel } from './CommandCenterPanel';import { disposeTerminal } from './terminalPool';import { SidebarTabs } from './SidebarTabs';-import { FilesTab } from './FilesTab';import { ThreadsPanel } from './ThreadsPanel';import { ToolWaterfall } from './ToolWaterfall';import { AgentControlStrip } from './AgentControlStrip';@@ -117,6 +116,13 @@ export function AgentDetailPanel({ agent }: AgentDetailPanelProps) {}}>{agent.project}</span></div></div>+ {/* v0.3.4: the IDE lives at agent level (replaces the old files tab) —+ opens the full-window Monaco editor rooted at this agent's workspace. */}+ <PixelButton variant="secondary" size="sm" onClick={() => useStore.getState().setIdeOpen(true)}>+ <span title={`Open the IDE — file editor + git diff for ${agent.project}`} style={{ display: 'inline-flex', alignItems: 'center', gap: 4 }}>+ <Icon name="code" /> IDE+ </span>+ </PixelButton><PixelButton variant="secondary" size="sm" onClick={openTerminal} disabled={openTerminalState === 'opening'}><span title={`open Terminal.app at ${agent.cwd}`} style={{ display: 'inline-flex', alignItems: 'center', gap: 4 }}><Icon name="terminal" />@@ -182,10 +188,6 @@ export function AgentDetailPanel({ agent }: AgentDetailPanelProps) {))}- {sidebarTab === 'files' && (- <FilesTab cwd={agent.cwd} />- )}-{sidebarTab === 'messages' && (<ThreadsPanel agentId={agent.id} />)}diff --git a/src/renderer/src/components/CommandCenterPanel.tsx b/src/renderer/src/components/CommandCenterPanel.tsxindex 68b82b11..a83f94e1 100644--- a/src/renderer/src/components/CommandCenterPanel.tsx+++ b/src/renderer/src/components/CommandCenterPanel.tsx@@ -101,6 +101,24 @@ export function CommandCenterPanel({ agent, fullscreen = false }: { agent: Agentconst onPtyStream = usePtyParser(agent.id);// True only for the DOCKED panel while the overlay holds this agent.const isFullscreenedHere = fullscreenAgentId === agent.id && !fullscreen;+ // v0.3.4: ONE floor-wide auto-delivery switch, moved off the per-agent+ // control strips — toggling applies to every live agent, god included.+ // Seeded from the god's own control state (the floor is kept in sync by+ // this single control, so any agent's state reflects the floor's).+ const [floorDeliveryPaused, setFloorDeliveryPaused] = useState(false);+ useEffect(() => {+ let alive = true;+ window.cth.controlSnapshot(agent.id)+ .then((s) => { if (alive && s) setFloorDeliveryPaused(s.autoDeliveryPaused); })+ .catch(() => { /* none */ });+ return () => { alive = false; };+ }, [agent.id]);+ const toggleFloorDelivery = async () => {+ const next = !floorDeliveryPaused;+ setFloorDeliveryPaused(next);+ const all = useStore.getState().agents;+ await Promise.all(all.map((a) => window.cth.controlAutoDelivery(a.id, next).catch(() => null)));+ };return (<PixelPanel@@ -130,6 +148,24 @@ export function CommandCenterPanel({ agent, fullscreen = false }: { agent: Agent<span style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>runs the floor</span></div></div>+ {/* v0.3.4: floor-wide auto-delivery lives HERE (one switch for every+ agent's queue), and the IDE opens from agent level, not the toolbar. */}+ <PixelButton+ variant={floorDeliveryPaused ? 'primary' : 'secondary'}+ size="sm"+ onClick={() => { void toggleFloorDelivery(); }}+ >+ <span title={floorDeliveryPaused+ ? 'Automatic queue delivery is PAUSED for every agent — messages stay queued until resumed'+ : 'Automatic queue delivery is ON for every agent — click to pause the whole floor'}>+ {floorDeliveryPaused ? 'delivery paused' : 'auto-delivery on'}+ </span>+ </PixelButton>+ <PixelButton variant="secondary" size="sm" onClick={() => useStore.getState().setIdeOpen(true)}>+ <span title="Open the IDE — file editor + git diff" style={{ display: 'inline-flex', alignItems: 'center', gap: 4 }}>+ <Icon name="code" /> IDE+ </span>+ </PixelButton></div>{/* Tab bar — an auto-fit grid of equal-width cells. The tabs wrap ontodiff --git a/src/renderer/src/components/FullscreenTerminal.tsx b/src/renderer/src/components/FullscreenTerminal.tsxindex 67f62363..a7b85d81 100644--- a/src/renderer/src/components/FullscreenTerminal.tsx+++ b/src/renderer/src/components/FullscreenTerminal.tsx@@ -286,22 +286,8 @@ export function FullscreenTerminal({ config }: FullscreenTerminalProps) {><Icon name="minimize" size={1} style={{ width: 16, height: 16 }} /></button>- <button- onClick={() => useStore.getState().setIdeOpen(true)}- title="Open IDE — file editor + git diff"- aria-label="Open IDE"- style={{- display: 'inline-flex', alignItems: 'center', gap: 5,- height: 28, padding: '0 9px',- background: 'var(--cth-paper-100)',- boxShadow: 'inset 0 0 0 1px var(--cth-ink-300)',- border: 'none', borderRadius: 2, cursor: 'pointer',- color: 'var(--cth-ink-900)',- fontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '14px'- }}- >- <Icon name="code" size={1} style={{ width: 16, height: 16 }} /> IDE- </button>+ {/* v0.3.4: IDE moved to agent level — it lives in each agent's+ header (see Header below), not in this global bar. */}</div></div>@@ -604,7 +590,9 @@ function SidebarRow({width: scale.portrait, height: Math.round(scale.portrait * 1.3), flexShrink: 0,background: `var(--cth-${agent.accent}-light)`,boxShadow: 'inset 0 0 0 1px var(--cth-ink-300)',- display: 'flex', alignItems: 'flex-end', justifyContent: 'center',+ // Anchor the sprite's TOP: the portrait is taller than this tile, and+ // bottom-anchoring cropped the head — crop feet, not face (v0.3.4).+ display: 'flex', alignItems: 'flex-start', justifyContent: 'center',overflow: 'hidden'}}>{/* Sprites only scale by whole pixels — doubling past the point where@@ -770,6 +758,13 @@ function Header({ agent }: { agent: Agent }) {fontStyle: 'italic'}}>“{agent.description}”</span><div style={{ marginLeft: 'auto', display: 'flex', alignItems: 'center', gap: 6 }}>+ {/* v0.3.4: the IDE opens from agent level — full Monaco editor + git+ diff over this agent's workspace. */}+ <PixelButton variant="secondary" size="sm" onClick={() => useStore.getState().setIdeOpen(true)}>+ <span title="Open the IDE — file editor + git diff" style={{ display: 'inline-flex', alignItems: 'center', gap: 4 }}>+ <Icon name="code" /> IDE+ </span>+ </PixelButton>{/* Voice toggle is ALWAYS reachable in fullscreen — it controls Michael (thegod orchestrator) globally, not the agent in view, so users can start avoice session even while a worker's terminal fills the screen. The costdiff --git a/src/renderer/src/components/SidebarTabs.tsx b/src/renderer/src/components/SidebarTabs.tsxindex c465592f..38ffebf7 100644--- a/src/renderer/src/components/SidebarTabs.tsx+++ b/src/renderer/src/components/SidebarTabs.tsx@@ -2,9 +2,10 @@ import { type SidebarTab } from '@/store/store';import { type AccentColorName } from '@/design/tokens';import { Icon, type IconName } from './Icon';+// v0.3.4: the files tab is gone — the per-agent IDE button (header) opens the+// full Monaco editor + file tree, which superseded the read-only browser.const TABS: { key: SidebarTab; label: string; icon: IconName }[] = [{ key: 'terminal', label: 'terminal', icon: 'terminal' },- { key: 'files', label: 'files', icon: 'folder' },{ key: 'messages', label: 'messages', icon: 'bell' },{ key: 'traces', label: 'traces', icon: 'web' }];diff --git a/src/renderer/src/store/store.ts b/src/renderer/src/store/store.tsindex 595c3844..331c1f05 100644--- a/src/renderer/src/store/store.ts+++ b/src/renderer/src/store/store.ts@@ -115,7 +115,9 @@ export interface QueuedMessage {instruction?: string;}-export type SidebarTab = 'terminal' | 'files' | 'messages' | 'traces';+// 'files' retired in v0.3.4 (the per-agent IDE button superseded it) — a+// persisted 'files' selection falls back to 'terminal' on load.+export type SidebarTab = 'terminal' | 'messages' | 'traces';/** Lifecycle of the god agent ("Michael") bootstrap on launch.* 'booting' until his PTY is confirmed live, then 'ready' (or 'failed' if the@@ -491,7 +493,7 @@ const initialSidebarWidth = (() => {const initialSidebarTab: SidebarTab = (() => {try {const v = window.localStorage.getItem(LS_SIDEBAR_TAB);- if (v === 'files' || v === 'terminal' || v === 'messages' || v === 'traces') return v;+ if (v === 'terminal' || v === 'messages' || v === 'traces') return v;} catch { /* noop */ }return 'terminal';})();