Skip to content

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

feat(memory-graph): wire graph tab into Command Center

Chaitanya Giri21e515691354
diff --git a/src/renderer/src/components/CommandCenterPanel.tsx b/src/renderer/src/components/CommandCenterPanel.tsx
index a71ff27a..71f447b8 100644
--- a/src/renderer/src/components/CommandCenterPanel.tsx
+++ b/src/renderer/src/components/CommandCenterPanel.tsx
@@ -7,6 +7,7 @@ import { PtyTerminalView } from './PtyTerminalView';
import { MessageQueueComposer } from './MessageQueueComposer';
import { disposeTerminal } from './terminalPool';
import { Icon } from './Icon';
+import { MemoryGraphPanel } from './MemoryGraphPanel';
import { useStore, type Agent } from '@/store/store';
import { usePtyParser } from '@/hooks/usePtyParser';
import { buildSpawnCommand, AGENT_MODELS } from '@/store/config';
@@ -16,18 +17,21 @@ import { buildSpawnCommand, AGENT_MODELS } from '@/store/config';
* per-agent model + dispatch + assistant access), a memory view, and a live
* activity feed / board / usage meter. */
-type CCTab = 'terminal' | 'floor' | 'memory' | 'activity' | 'handbook';
+type CCTab = 'terminal' | 'floor' | 'memory' | 'graph' | 'activity' | 'handbook';
const TABS: { key: CCTab; label: string; icon: Parameters<typeof Icon>[0]['name'] }[] = [
{ key: 'terminal', label: 'terminal', icon: 'terminal' },
{ key: 'floor', label: 'floor', icon: 'mcp' },
{ key: 'memory', label: 'memory', icon: 'sparkle' },
+ { key: 'graph', label: 'graph', icon: 'web' },
{ key: 'activity', label: 'activity', icon: 'bell' },
{ key: 'handbook', label: 'commands', icon: 'code' }
];
export function CommandCenterPanel({ agent }: { agent: Agent }) {
const [tab, setTab] = useState<CCTab>('terminal');
+ // Lifted so the memory-graph tab can jump to a specific agent's memory file.
+ const [selectedMemoryAgent, setSelectedMemoryAgent] = useState<string | null>(null);
const updateAgent = useStore((s) => s.updateAgent);
const setFullscreen = useStore((s) => s.setFullscreen);
const fullscreenAgentId = useStore((s) => s.fullscreenAgentId);
@@ -114,7 +118,15 @@ export function CommandCenterPanel({ agent }: { agent: Agent }) {
)
)}
{tab === 'floor' && <FloorTab />}
- {tab === 'memory' && <MemoryTab godId={agent.id} />}
+ {tab === 'memory' && (
+ <MemoryTab godId={agent.id} who={selectedMemoryAgent ?? undefined} onWho={setSelectedMemoryAgent} />
+ )}
+ {tab === 'graph' && (
+ <MemoryGraphPanel
+ godId={agent.id}
+ onJumpToMemory={(id) => { setSelectedMemoryAgent(id); setTab('memory'); }}
+ />
+ )}
{tab === 'activity' && <ActivityTab />}
{tab === 'handbook' && <HandbookTab />}
</div>
@@ -282,9 +294,12 @@ function FloorTab() {
// ─── Memory tab ──────────────────────────────────────────────────────────────
-function MemoryTab({ godId }: { godId: string }) {
+function MemoryTab({ godId, who: controlledWho, onWho }: { godId: string; who?: string; onWho?: (id: string) => void }) {
const agents = useStore((s) => s.agents);
- const [who, setWho] = useState<string>(godId);
+ // Selection is controllable from the graph tab; falls back to local state.
+ const [internalWho, setInternalWho] = useState<string>(godId);
+ const who = controlledWho ?? internalWho;
+ const setWho = onWho ?? setInternalWho;
const [mem, setMem] = useState('');
const [query, setQuery] = useState('');
const [searchOut, setSearchOut] = useState('');