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(ui): rename voice→talk; compact worker nav cards + god card pops with dedicated talk line

Chaitanya Giri72f080b8dc6d
diff --git a/src/renderer/src/components/AgentCard.tsx b/src/renderer/src/components/AgentCard.tsx
index 47978f5e..9b651489 100644
--- a/src/renderer/src/components/AgentCard.tsx
+++ b/src/renderer/src/components/AgentCard.tsx
@@ -1,3 +1,4 @@
+import { useState } from 'react';
import { PixelPanel } from './PixelPanel';
import { PixelBadge, StatusKind } from './PixelBadge';
import { SpritePortrait } from './SpritePortrait';
@@ -36,17 +37,44 @@ export function AgentCard({
contextTokens, contextLimit, selected, isGod, onClick,
doingCount = 0, onTaskNoteClick
}: AgentCardProps) {
+ const [hover, setHover] = useState(false);
// The god is always framed (stands out from the row); others only when selected.
const framed = isGod || selected;
+ // Context gauge as ONE clean fill (0..8 → 0..100%) instead of eight bordered
+ // chunks — easier to scan at a glance. Colour escalates as the window fills:
+ // accent while comfortable, lemon from 6/8 (~75%), coral from 7/8 (compaction imminent).
+ const pct = Math.min(8, Math.max(0, progress)) / 8 * 100;
+ const gaugeColor = progress >= 7 ? 'var(--cth-coral)'
+ : progress >= 6 ? 'var(--cth-lemon)'
+ : `var(--cth-${accent})`;
+ const gaugeTitle = contextTokens !== undefined && contextLimit
+ ? `Context: ${fmtK(contextTokens)} / ${fmtK(contextLimit)} tokens (${Math.round((contextTokens / contextLimit) * 100)}%)`
+ : 'Context gauge — fills once the agent reports activity';
+
+ // The orchestrator stands a little taller + wider and rides a hard drop shadow
+ // so it visibly pops UP off the worker row; workers are a compact, uniform size.
+ // Both rise a touch on hover — a clear "this is clickable" affordance.
+ const width = isGod ? 236 : 212;
+ const height = isGod ? 98 : 90;
+ const lift = (isGod ? -2 : 0) - (hover ? 2 : 0);
+ const dropShadow = isGod
+ ? `3px 4px 0 0 rgba(26,19,32,${hover ? 0.30 : 0.22})`
+ : (hover ? '2px 3px 0 0 rgba(26,19,32,0.16)' : 'none');
+
return (
<button
onClick={onClick}
+ onMouseEnter={() => setHover(true)}
+ onMouseLeave={() => setHover(false)}
className="cth-titlebar-nodrag"
style={{
- width: 220, minWidth: 220, height: 96,
+ width, minWidth: width, height,
padding: 0, border: 'none', background: 'transparent', cursor: 'pointer', textAlign: 'left',
- position: 'relative'
+ position: 'relative',
+ transform: lift ? `translateY(${lift}px)` : 'none',
+ boxShadow: dropShadow,
+ transition: 'transform 90ms steps(2, end), box-shadow 90ms steps(2, end)'
}}
>
{/* The taken note, stuck to the card like on the desk: this worker is
@@ -76,8 +104,9 @@ export function AgentCard({
noPadding
>
<div style={{ display: 'flex', gap: 8, height: '100%' }}>
+ {/* Portrait tile — vertically centred so the card reads calm and even. */}
<div style={{
- width: 44, height: 64,
+ width: 44, height: isGod ? 60 : 56, alignSelf: 'center',
background: `var(--cth-${accent}-light)`,
boxShadow: 'inset 0 0 0 1px var(--cth-ink-900)',
display: 'flex', alignItems: 'flex-end', justifyContent: 'center', overflow: 'hidden',
@@ -85,77 +114,88 @@ export function AgentCard({
}}>
<SpritePortrait character={character} scale={2} />
</div>
- <div style={{ flex: 1, display: 'flex', flexDirection: 'column', gap: 2, minWidth: 0 }}>
+
+ <div style={{ flex: 1, display: 'flex', flexDirection: 'column', gap: 3, minWidth: 0 }}>
+ {/* Name + status. The god's name rides an accent chip so its header
+ pops in colour — instantly distinct from the plain worker cards. */}
<div style={{ display: 'flex', alignItems: 'center', gap: 6, justifyContent: 'space-between' }}>
- <span style={{
+ <span style={isGod ? {
fontFamily: 'var(--cth-font-display)',
fontSize: 'var(--cth-text-display-sm)',
lineHeight: 'var(--cth-lh-display-sm)',
color: 'var(--cth-ink-900)',
- whiteSpace: 'nowrap',
- overflow: 'hidden',
- textOverflow: 'ellipsis'
+ background: `var(--cth-${accent})`,
+ padding: '3px 6px 2px',
+ boxShadow: 'inset 0 0 0 1px var(--cth-ink-900)',
+ whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', flexShrink: 1
+ } : {
+ fontFamily: 'var(--cth-font-display)',
+ fontSize: 'var(--cth-text-display-sm)',
+ lineHeight: 'var(--cth-lh-display-sm)',
+ color: 'var(--cth-ink-900)',
+ whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis'
}}>{name.toUpperCase()}</span>
<PixelBadge status={status} />
</div>
- <div style={{
- display: 'flex', alignItems: 'center', gap: 5,
- fontSize: 'var(--cth-text-body-sm)',
- lineHeight: '16px',
- color: 'var(--cth-ink-500)',
- whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis'
- }}>
- {isGod && (
- <span style={{
- fontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',
- background: `var(--cth-${accent})`, color: 'var(--cth-ink-900)',
- padding: '1px 5px 0', boxShadow: 'inset 0 0 0 1px var(--cth-ink-900)', flexShrink: 0
- }}>GOD</span>
- )}
- <span style={{ overflow: 'hidden', textOverflow: 'ellipsis' }}>{project}</span>
- {/* Voice toggle (god/Michael only). Compact form fits the cramped card row;
- it stops its own click so it never selects the card. */}
- {isGod && (
- <span style={{ marginLeft: 'auto', flexShrink: 0, display: 'inline-flex', gap: 6, alignItems: 'center' }}>
+ {isGod ? (
+ <>
+ {/* Identity line — the GOD tag + which workspace it orchestrates. */}
+ <div style={{
+ display: 'flex', alignItems: 'center', gap: 5,
+ fontSize: 'var(--cth-text-body-sm)', lineHeight: '16px',
+ color: 'var(--cth-ink-500)',
+ whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis'
+ }}>
+ <span style={{
+ fontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',
+ background: `var(--cth-${accent})`, color: 'var(--cth-ink-900)',
+ padding: '1px 5px 0', boxShadow: 'inset 0 0 0 1px var(--cth-ink-900)', flexShrink: 0
+ }}>GOD</span>
+ <span style={{ overflow: 'hidden', textOverflow: 'ellipsis' }}>{project}</span>
+ </div>
+
+ {/* Voice control gets its OWN line — a clear, labelled "talk" button
+ (not the cramped icon-only form) with the live cost meter beside
+ it. Stops its click so the mic never selects the card. */}
+ <div
+ style={{ display: 'flex', alignItems: 'center', gap: 6, minWidth: 0 }}
+ onClick={(e) => e.stopPropagation()}
+ >
+ <RealtimeMichaelToggle />
<CostHud compact />
- <RealtimeMichaelToggle compact />
- </span>
- )}
- </div>
+ </div>
+ </>
+ ) : (
+ <>
+ {/* Project the worker is checked out into. */}
+ <div style={{
+ fontSize: 'var(--cth-text-body-sm)', lineHeight: '16px',
+ color: 'var(--cth-ink-500)',
+ whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis'
+ }}>{project}</div>
- <div style={{
- fontSize: 'var(--cth-text-body-sm)',
- lineHeight: '16px',
- // Reserve the line even when empty (idle has no action text) —
- // otherwise it collapses and the context gauge below jumps up.
- minHeight: 16,
- color: 'var(--cth-ink-900)',
- whiteSpace: 'nowrap',
- overflow: 'hidden',
- textOverflow: 'ellipsis'
- }}>{/* The "idle" badge already conveys idle — don't echo "awaiting". */
- (status === 'idle' ? '' : action) || ' '}</div>
+ {/* What it's doing right now. Reserve the line even when idle (the
+ "idle" badge already says so) so the gauge below never jumps. */}
+ <div style={{
+ fontSize: 'var(--cth-text-body-sm)', lineHeight: '16px', minHeight: 16,
+ color: 'var(--cth-ink-900)',
+ whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis'
+ }}>{(status === 'idle' ? '' : action) || ' '}</div>
+ </>
+ )}
- {/* Context gauge: how full the session's context window is. Accent
- while comfortable, lemon from 6/8 (~75%), coral from 7/8 —
- "compaction imminent". Pinned to the card's bottom line so it
- never moves, whatever the lines above do. */}
- <div
- style={{ display: 'flex', gap: 2, marginTop: 'auto' }}
- title={contextTokens !== undefined && contextLimit
- ? `Context: ${fmtK(contextTokens)} / ${fmtK(contextLimit)} tokens (${Math.round((contextTokens / contextLimit) * 100)}%)`
- : 'Context gauge — fills once the agent reports activity'}
- >
- {Array.from({ length: 8 }).map((_, i) => (
- <div key={i} style={{
- width: 14, height: 6,
- background: i < progress
- ? (progress >= 7 ? 'var(--cth-coral)' : progress >= 6 ? 'var(--cth-lemon)' : `var(--cth-${accent})`)
- : 'var(--cth-cream-200)',
- boxShadow: 'inset 0 0 0 1px var(--cth-ink-900)'
- }}/>
- ))}
+ {/* Context gauge — one clean fill bar pinned to the card's bottom edge
+ so it never moves, whatever the lines above do. */}
+ <div style={{ marginTop: 'auto' }} title={gaugeTitle}>
+ <div style={{
+ height: 6, width: '100%',
+ background: 'var(--cth-cream-200)',
+ boxShadow: 'inset 0 0 0 1px var(--cth-ink-900)',
+ overflow: 'hidden'
+ }}>
+ <div style={{ width: `${pct}%`, height: '100%', background: gaugeColor }} />
+ </div>
</div>
</div>
</div>
diff --git a/src/renderer/src/components/AgentStrip.tsx b/src/renderer/src/components/AgentStrip.tsx
index 9afe1dd8..99e47707 100644
--- a/src/renderer/src/components/AgentStrip.tsx
+++ b/src/renderer/src/components/AgentStrip.tsx
@@ -133,13 +133,15 @@ export function AgentStrip({ config }: AgentStripProps) {
<div style={{
display: 'flex',
gap: 12,
- padding: '12px 16px',
+ padding: '14px 16px',
overflowX: 'auto',
overflowY: 'hidden',
borderTop: '2px solid var(--cth-ink-900)',
background: 'var(--cth-cream-200)',
- height: 124,
- minHeight: 124,
+ // Tall enough for the god card to stand proud of the row (it's taller and
+ // rides a drop shadow) plus the hover-lift on every card, without clipping.
+ height: 132,
+ minHeight: 132,
alignItems: 'center'
}}>
{agents.map(a => (
diff --git a/src/renderer/src/components/RealtimeMichaelToggle.tsx b/src/renderer/src/components/RealtimeMichaelToggle.tsx
index f04fccfb..0c4c8101 100644
--- a/src/renderer/src/components/RealtimeMichaelToggle.tsx
+++ b/src/renderer/src/components/RealtimeMichaelToggle.tsx
@@ -39,7 +39,7 @@ const STATE_VIEW: Record<
> = {
off: {
variant: 'secondary',
- label: 'voice',
+ label: 'talk',
dot: 'var(--cth-ink-300)',
help: 'Talk to Michael — start the voice session'
},
@@ -136,7 +136,7 @@ export function RealtimeMichaelToggle({ compact = false }: RealtimeMichaelToggle
<Icon name="mic" />
{!compact && (
<span style={{ fontFamily: 'var(--cth-font-ui)' }}>
- {noKey ? 'voice' : view.label}
+ {noKey ? 'talk' : view.label}
</span>
)}
</span>