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

fix: every remaining hardcoded "Michael" reads the live/persisted name

savvaskc461fe1a75ed
diff --git a/src/main/hive.ts b/src/main/hive.ts
index f3b9c03d..cb13be3b 100644
--- a/src/main/hive.ts
+++ b/src/main/hive.ts
@@ -41,6 +41,7 @@ import { selectBroadcastTargets } from '../shared/broadcast';
import { preferredAgentRole } from '../shared/agentRole';
import { mergeTaskLedger } from '../shared/taskLedger';
import { expandTilde } from './fs';
+import { resolveGodName } from '../shared/godIdentity';
/** The subset of HarnessConfig the hive consumes for the default-MCP merge.
* Kept as a local shape so hive.ts never imports the foundation-owned config
@@ -1293,6 +1294,14 @@ export class HiveManager {
// Native-separator path helpers — see the 🪟 note above.
const inDir = (...parts: string[]): string => join(dir, ...parts);
const inRoot = (...parts: string[]): string => join(root, ...parts);
+ // Resolved ONCE here, at THIS agent's own spawn — same prompt-cache-stable
+ // shape as name/id/dir/root above it, not a live re-read on every turn.
+ // Needed only for the PREP ASSISTANT persona below, which refers to god by
+ // name in prose; god's own prompt already gets its name via `meta.name`.
+ const godRegistry = meta.isAssistant ? this.registry() : null;
+ const godNameForPrompt = godRegistry
+ ? resolveGodName(godRegistry.agents[godRegistry.godId ?? 'god']?.name)
+ : '';
const ctxLine = 'LIVE CONTEXT: each agent row in the LIVE ROSTER carries a `ctx NN%` tag — its live context-window occupancy. Treat it as the real headroom signal when routing: prefer an agent with a LOW `ctx` for a big task; treat a HIGH `ctx` (near 100%) as busy rather than idle, even if the cumulative token count looks modest.';
const memoryLine = semanticMemory
@@ -1333,7 +1342,7 @@ export class HiveManager {
? 'You are the GOD / ORCHESTRATOR of this hive — your job is to ORCHESTRATE, not to implement: maintain live situational awareness and delegate the work. (1) AWARENESS — always know what is going on: keep an accurate picture of every agent (active vs archived/idle), the task board, and all in-flight work; drain your inbox continually and triage every other agent\'s requests, answering clarifications so the team runs autonomously. (2) DELEGATE — decompose work and fan it out to the hive agents via their inboxes (route messages and assign owners; do not do their jobs); do NOT take on grunt implementation yourself. Stay aware of who is already on the floor and delegate OPPORTUNISTICALLY: BEFORE you spawn anything, CHECK THE LIVE ROSTER (active agents in registry.json + their state in fleet.json) and prefer routing to an EXISTING agent that fits — above all when the request names one ("ask Pam to…", "have Jim…"), route to that agent instead of reflexively creating a new one. Reuse an idle or already-running agent whose role matches; only spawn a fresh agent when no existing one is a sensible fit, and say that you checked. One capable owner beats a duplicate. (3) OWN ONLY THE IMPORTANT, high-leverage things — task decomposition, dispatch decisions, sign-offs, conflict resolution, branch integration, and final QA — and remain the sole scribe of board.md. You are otherwise fully autonomous — there is NO separate approval queue. For the genuinely critical (destructive actions, spending real money, scope changes, unresolvable conflicts), ask the human directly in your own session and let the tool-permission prompt gate the action; the human approves natively, including remotely from their phone via /remote-control. Keep the team unblocked. When you DISPATCH a task, write it as a 4-part contract so the agent can run autonomously: (1) OBJECTIVE — the concrete goal; (2) OUTPUT — the expected deliverable/format; (3) TOOLS — what to use or avoid, and any references to read instead of re-deriving; (4) BOUNDARIES — scope limits + the definition of done. Pass references (file paths, message ids, board sections), not pasted content — keep dispatches short.'
+ ` MONITOR the floor by reading ${inRoot('fleet.json')} (live per-agent tokens, cost, status, last tool, breaker level, inbox backlog) and ${inRoot('registry.json')} — note that running 'claude agents' will NOT list your hive's sibling agents. A full Claude Code command reference is at ${inRoot('COMMANDS.md')} (slash commands act ONLY on your own session; CLI commands run in your shell and can target the fleet). You periodically receive scheduler / "Heartbeat" standup requests — on each, review every agent via fleet.json, re-engage anyone stalled, over-budget, or breaker-armed, and keep board.md and tasks.json accurate. In tasks.json, ALWAYS set each task's "assignee" to the worker's agent id the moment you dispatch it, and NEVER clear it on status changes — a done card must still say who did the work (the human reads the board by who-did-what). HUMAN FEEDBACK is first-class in the ledger: when a task can only proceed with the human's input — a QUESTION to answer OR an ACTION only the human can perform (create an account, approve a purchase, provide credentials/screenshots, test on their device) — set its status to "blocked" and append the concrete ask to the card's "humanQA" array (push {"q":"...","askedAt":"<iso>"}; phrase actions as clear to-dos; keep every past entry — the history documents the card's decisions). The harness surfaces open questions on the office floor's ASK ME board; the human's answer lands in the same entry ("a") AND arrives as an inbox message to you — read it, act on it, and unblock the card so work continues. Do NOT park human questions in separate files (no HumanQuestion.md) and never sit waiting on the human in your own session. Steward the token budget.`
: meta.isAssistant
- ? 'You are Michael\'s PREP ASSISTANT. You will be handed short, possibly vague instructions (each begins with "ENRICH TASK:"). For each one: (1) figure out which project it concerns and cd into the most relevant repo — you start in Michael\'s home directory; (2) gather concrete context READ-ONLY (exact file paths, current state, relevant code, conventions, active branch, gotchas) — NEVER modify, create, or delete files; (3) rewrite the instruction into ONE clear, self-contained prompt that Michael can execute autonomously, preserving the user\'s original intent without inventing scope. Then deliver it: write ONE message JSON into your outbox with "to":"god", "act":"request", a short subject, and the finished prompt as the body. Do NOT perform the task yourself — your only output is the improved prompt sent to Michael.'
+ ? `You are ${godNameForPrompt}'s PREP ASSISTANT. You will be handed short, possibly vague instructions (each begins with "ENRICH TASK:"). For each one: (1) figure out which project it concerns and cd into the most relevant repo — you start in ${godNameForPrompt}'s home directory; (2) gather concrete context READ-ONLY (exact file paths, current state, relevant code, conventions, active branch, gotchas) — NEVER modify, create, or delete files; (3) rewrite the instruction into ONE clear, self-contained prompt that ${godNameForPrompt} can execute autonomously, preserving the user's original intent without inventing scope. Then deliver it: write ONE message JSON into your outbox with "to":"god", "act":"request", a short subject, and the finished prompt as the body. Do NOT perform the task yourself — your only output is the improved prompt sent to ${godNameForPrompt}.`
: 'For anything ambiguous, cross-cutting, or needing sign-off, address a message to "god".';
const guardrailsLine = 'Guardrails: a circuit breaker watches the floor — a "Circuit breaker: steer/constrain" message means you are looping or overspending, so STOP repeating, summarize what you tried, and follow it. Be token-frugal (a floor-wide or per-agent token budget can pause you). The shared plan has two parts: board.md (freeform; god is the sole scribe) and tasks.json (structured kanban — todo/doing/blocked/done).';
const slackLine = meta.isGod
diff --git a/src/main/index.ts b/src/main/index.ts
index 5944af45..d9ee27f5 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -64,6 +64,7 @@ import { buildWorkerLaunch } from './workerLaunch';
import { ControlRegistry } from './control';
import { WorkerWakeWatchdog, type WorkerWakeFacts } from './workerWake';
import { inboxNudgeText } from '../shared/hiveNudge';
+import { resolveGodName } from '../shared/godIdentity';
import { fetchHireManifest, readHireManifestFiles } from './hire';
import { parseHireDeepLink, type HireManifest } from '../shared/hire';
import { ClosingTimeController } from './closingTime';
@@ -4261,7 +4262,14 @@ const completionWatcher = initCompletionWatcher({
return [];
}
},
- onNotify: (evt) => { try { if (Notification.isSupported()) new Notification({ title: 'Michael', body: evt.summary }).show(); } catch { /* best-effort */ } }
+ onNotify: (evt) => {
+ try {
+ if (!Notification.isSupported()) return;
+ const reg = hive.registry();
+ const title = resolveGodName(reg.agents[reg.godId ?? 'god']?.name);
+ new Notification({ title, body: evt.summary }).show();
+ } catch { /* best-effort */ }
+ }
});
registerRealtimeActionIpc({
diff --git a/src/main/realtimeActions.ts b/src/main/realtimeActions.ts
index f4354bc2..6ef52454 100644
--- a/src/main/realtimeActions.ts
+++ b/src/main/realtimeActions.ts
@@ -39,6 +39,7 @@ import type { HiveMessage, HiveTask, Registry } from './hive';
import type { ScheduledMission } from './config';
import { inferAgentProvider } from '../shared/agentProvider';
import { clearCommandForProvider } from '../shared/providerAutomation';
+import { resolveGodName } from '../shared/godIdentity';
export const VOICE_ACTOR = 'michael-voice';
@@ -281,12 +282,14 @@ function attribute(deps: RealtimeActionDeps, verb: string, target: string, extra
: typeof extra.status === 'string' ? ` → ${extra.status}`
: typeof extra.action === 'string' ? ` (${extra.action})`
: '';
+ const reg = deps.hiveRegistry();
+ const godName = resolveGodName(reg.agents[reg.godId ?? 'god']?.name);
deps.hiveSend(
{
to: 'god',
act: 'inform',
subject: `voice action: ${verb} ${target}`,
- body: `Michael (voice orchestrator, ${VOICE_ACTOR}) just did: ${verb} on ${target}${detail}. Heads-up so we don't duplicate — the board is the single source of truth.`
+ body: `${godName} (voice orchestrator, ${VOICE_ACTOR}) just did: ${verb} on ${target}${detail}. Heads-up so we don't duplicate — the board is the single source of truth.`
},
VOICE_ACTOR
);
@@ -305,7 +308,7 @@ function execPing(deps: RealtimeActionDeps, a: Record<string, unknown>): ActionR
const r = resolveAgent(str(a.agentId) || str(a.target) || str(a.name), reg);
if ('error' in r) return { ok: false, spoken: r.error };
const message = str(a.message) || str(a.text) || 'Checking in.';
- deps.hiveSend({ to: r.id, act: 'inform', subject: 'Voice ping from Michael', body: message }, VOICE_ACTOR);
+ deps.hiveSend({ to: r.id, act: 'inform', subject: `Voice ping from ${resolveGodName(reg.agents[reg.godId ?? 'god']?.name)}`, body: message }, VOICE_ACTOR);
attribute(deps, 'ping', r.id);
return { ok: true, spoken: `Pinged ${r.name}.` };
}
diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx
index 396403ca..9f4696a9 100644
--- a/src/renderer/src/App.tsx
+++ b/src/renderer/src/App.tsx
@@ -5,6 +5,7 @@ import type { HarnessConfig } from '@/store/config';
import { DEFAULT_ORG_TRIGGER } from '@shared/triggers';
import { OfficeFloor } from '@/scene/office/OfficeFloor';
import { useHive } from '@/hooks/useHive';
+import { useResolvedGodName } from '@/hooks/useResolvedGodName';
import { MemoryPanel } from '@/components/MemoryPanel';
import { AgentDetailPanel } from '@/components/AgentDetailPanel';
import { AgentStrip } from '@/components/AgentStrip';
@@ -36,6 +37,7 @@ export function App() {
const agent = useStore(selectedAgent);
const agents = useStore(s => s.agents);
const agentCount = agents.length;
+ const bootingGodName = useResolvedGodName();
const addAgentOpen = useStore(s => s.addAgentOpen);
const setAddAgentOpen = useStore(s => s.setAddAgentOpen);
const clearPendingHires = useStore(s => s.clearPendingHires);
@@ -434,7 +436,7 @@ export function App() {
color: 'var(--cth-ink-500)'
}}>WAKING THE FLOOR</div>
<p style={{ margin: 0, fontSize: 13, textAlign: 'center', color: 'var(--cth-ink-700)' }}>
- Michael is clocking in.<br />
+ {bootingGodName} is clocking in.<br />
The terminal will land here once he's seated.
</p>
</PixelPanel>
diff --git a/src/renderer/src/components/AgentHoldButton.tsx b/src/renderer/src/components/AgentHoldButton.tsx
index 516c271b..fcec34ff 100644
--- a/src/renderer/src/components/AgentHoldButton.tsx
+++ b/src/renderer/src/components/AgentHoldButton.tsx
@@ -23,6 +23,7 @@ import { useStore } from '@/store/store';
*/
export function AgentHoldButton({ agentId }: { agentId: string }) {
const agent = useStore((s) => s.agents.find((a) => a.id === agentId));
+ const godName = useStore((s) => s.agents.find((a) => a.isGod)?.name) ?? 'the orchestrator';
const [busy, setBusy] = useState(false);
/** Last failure, shown on the button itself. A control that silently does
* nothing is worse than one that says why. */
@@ -74,9 +75,9 @@ export function AgentHoldButton({ agentId }: { agentId: string }) {
<span
className="cth-tip cth-tip-wrap"
data-tip={err ? err : on
- ? `End the 1:1. Michael can hand ${agent.name} work again.`
- : `Take ${agent.name} aside. Michael stops sending them work until you end it. Unlike the two buttons here, this does not restrain the agent: they keep running and keep answering you.`}
- aria-label={on ? 'End the 1:1 and release this agent to Michael' : 'Take this agent aside for a 1:1'}
+ ? `End the 1:1. ${godName} can hand ${agent.name} work again.`
+ : `Take ${agent.name} aside. ${godName} stops sending them work until you end it. Unlike the two buttons here, this does not restrain the agent: they keep running and keep answering you.`}
+ aria-label={on ? `End the 1:1 and release this agent to ${godName}` : 'Take this agent aside for a 1:1'}
style={{ display: 'inline-flex', alignItems: 'center', gap: 4 }}
>
<Icon name={on ? 'pause' : 'play'} /> {err ? '1:1 failed' : on ? 'in 1:1' : '1:1'}
diff --git a/src/renderer/src/components/CommandCenterPanel.tsx b/src/renderer/src/components/CommandCenterPanel.tsx
index 8a03ff8b..fd904a52 100644
--- a/src/renderer/src/components/CommandCenterPanel.tsx
+++ b/src/renderer/src/components/CommandCenterPanel.tsx
@@ -310,7 +310,7 @@ export function CommandCenterPanel({ agent, fullscreen = false }: { agent: Agent
<MessageQueueComposer agent={agent} />
</>
) : (
- <Centered>Michael has no live terminal.</Centered>
+ <Centered>{agent.name} has no live terminal.</Centered>
)
)}
{tab === 'floor' && <FloorTab seed={dispatchSeed} />}
@@ -339,6 +339,7 @@ export function CommandCenterPanel({ agent, fullscreen = false }: { agent: Agent
function FloorTab({ seed }: { seed: { text: string; seq: number } }) {
const agents = useStore((s) => s.agents);
+ const godName = agents.find((a) => a.isGod)?.name ?? 'the orchestrator';
const select = useStore((s) => s.select);
const updateAgent = useStore((s) => s.updateAgent);
const toolCounts = useStore((s) => s.toolCounts);
@@ -556,7 +557,7 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {
);
setDispatchText('');
setDispatchMsg(res.ok
- ? `sent to Michael${suggested ? ` (suggesting ${suggested.name})` : ''}`
+ ? `sent to ${godName}${suggested ? ` (suggesting ${suggested.name})` : ''}`
: `failed: ${res.error ?? '?'}`);
setTimeout(() => setDispatchMsg(null), 4000);
};
@@ -627,13 +628,13 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {
return (
<Scroll>
- <Section title="DISPATCH — VIA MICHAEL">
+ <Section title={`DISPATCH — VIA ${godName.toUpperCase()}`}>
<div style={{ display: 'flex', alignItems: 'center', gap: 6, marginBottom: 6 }}>
<span style={{ fontFamily: 'var(--cth-font-display)', fontSize: 8, color: 'var(--cth-ink-500)', flexShrink: 0 }}>
SUGGESTED OWNER
</span>
<Select value={dispatchTo} onChange={setDispatchTo}>
- <option value="">Michael decides</option>
+ <option value="">{godName} decides</option>
{agents.filter((a) => !a.isGod).map((a) => (
<option key={a.id} value={a.id}>{a.name}</option>
))}
@@ -643,7 +644,7 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {
value={dispatchText}
onChange={(e) => setDispatchText(e.target.value)}
rows={2}
- placeholder="Describe the task… (Michael decomposes, writes the card, and assigns)"
+ placeholder={`Describe the task… (${godName} decomposes, writes the card, and assigns)`}
style={textareaStyle}
/>
<div style={{ display: 'flex', alignItems: 'center', gap: 8, marginTop: 6 }}>
@@ -874,7 +875,7 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {
onClick={async () => {
const currentProvider = inferAgentProvider(a.command, a.provider);
if (engineProvider !== currentProvider) {
- if (!window.confirm("This restarts Michael; a conversation on a different engine can't be resumed.")) return;
+ if (!window.confirm(`This restarts ${a.name}; a conversation on a different engine can't be resumed.`)) return;
}
await window.cth.updateConfig({ godProvider: engineProvider, godModel: engineModel });
await restartWithModel(a, engineModel, { provider: engineProvider, resume: false });
@@ -890,7 +891,7 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {
disabled={restarting === a.id}
onClick={() => restartWithModel(a, a.model, { resume: true })}
>
- <span title="Kill and respawn Michael, resuming the current conversation — fixes a corrupted/garbled terminal without losing context">
+ <span title={`Kill and respawn ${a.name}, resuming the current conversation — fixes a corrupted/garbled terminal without losing context`}>
restart &amp; continue
</span>
</PixelButton>
diff --git a/src/renderer/src/components/MichaelBooting.tsx b/src/renderer/src/components/MichaelBooting.tsx
index 5dfa38c7..975347b0 100644
--- a/src/renderer/src/components/MichaelBooting.tsx
+++ b/src/renderer/src/components/MichaelBooting.tsx
@@ -1,11 +1,18 @@
import { PixelPanel } from '@/components/PixelPanel';
+import { useResolvedGodName } from '@/hooks/useResolvedGodName';
/**
- * Loader shown on the empty floor while the god agent ("Michael") is clocking
- * in on launch. Replaces the "add agent" prompt so a returning user doesn't see
- * the empty-floor call-to-action before Michael has booted.
+ * Loader shown on the empty floor while the god agent is clocking in on
+ * launch. Replaces the "add agent" prompt so a returning user doesn't see the
+ * empty-floor call-to-action before god has booted.
+ *
+ * Rendered while `agentCount === 0` — before the store has god's live agent
+ * object (and so before `agent.name` exists anywhere to read) — so this reads
+ * the persisted name directly, the same way useHive.ts's spawn effect does,
+ * rather than assuming the default.
*/
export function MichaelBooting() {
+ const godName = useResolvedGodName();
return (
<div style={{
position: 'absolute', inset: 0,
@@ -37,7 +44,7 @@ export function MichaelBooting() {
margin: 0, fontSize: 13, lineHeight: '20px', textAlign: 'center',
color: 'var(--cth-ink-700)'
}}>
- Michael is settling into the corner office and getting the floor
+ {godName} is settling into the corner office and getting the floor
ready. Hang tight…
</p>
</div>
diff --git a/src/renderer/src/components/SettingsModal.tsx b/src/renderer/src/components/SettingsModal.tsx
index 264a744c..3418e70a 100644
--- a/src/renderer/src/components/SettingsModal.tsx
+++ b/src/renderer/src/components/SettingsModal.tsx
@@ -112,7 +112,7 @@ const SLACK_CONNECT_STEPS = `Connect Munder Difflin to Slack
* shares one server and one tunnel and is told apart by its id in the path, so
* `<tunnel>` is the public base URL and `<webhookId>` picks the endpoint. The
* secret/token go in headers so they stay out of URLs and access logs. */
-const WEBHOOK_API_DOC = `Webhook API
+const webhookApiDoc = (godName: string): string => `Webhook API
Every webhook has its own URL, its own secret and its own mode. They share one
server and one tunnel; the id in the path says which one you are calling.
@@ -139,7 +139,7 @@ token you were handed still reads that task once it is routed. The secret
authorizes new work, the token only reads one task's status. Keep both private.
Each webhook checks bodies against its own JSON schema — edit that in the
-Triggers tab of Michael's Command Center.`;
+Triggers tab of ${godName}'s Command Center.`;
/** Clear every renderer-side persisted key so a relaunch starts truly empty. */
function clearLocalState(): void {
@@ -160,6 +160,7 @@ export type Section = 'General' | 'Prerequisites' | 'Agents & Models' | 'Autonom
const NAV_SECTIONS: Section[] = ['General', 'Prerequisites', 'Agents & Models', 'Autonomy & Budgets', 'Connections', 'Voice', 'Memory & Knowledge'];
export function SettingsModal({ config, onClose, initialSection }: SettingsModalProps) {
+ const godName = useStore((s) => s.agents.find((a) => a.isGod)?.name) ?? 'the orchestrator';
const [confirming, setConfirming] = useState(false);
const [busy, setBusy] = useState(false);
const [activeSection, setActiveSection] = useState<Section>(initialSection ?? 'General');
@@ -811,7 +812,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal
<Icon name="bell" />
</div>
<div style={{ flex: 1, fontSize: 15, lineHeight: '22px', color: 'var(--cth-ink-700)' }}>
- This permanently erases all of Michael's memories and the entire hive,
+ This permanently erases all of {godName}'s memories and the entire hive,
and cannot be undone. Any running sessions will be terminated and the app
will relaunch into onboarding. Are you sure?
</div>
@@ -1069,7 +1070,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal
</div>
<div style={{ display: 'flex', flexDirection: 'column', gap: 6 }}>
<span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>
- Every newly spawned Claude agent (Michael included) starts on this model unless picked per-agent.
+ Every newly spawned Claude agent ({godName} included) starts on this model unless picked per-agent.
Marked “· default” in the model pickers.
</span>
<div style={{ display: 'flex', gap: 6, flexWrap: 'wrap' }}>
@@ -1154,12 +1155,12 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal
</span>
<span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>
{orchSpawnOn
- ? 'Michael can hire on his own. Every agent he starts spends tokens you did not approve.'
- : 'Only you. Michael can still ask, and his request waits in the queue instead of failing.'}
+ ? `${godName} can hire on his own. Every agent he starts spends tokens you did not approve.`
+ : `Only you. ${godName} can still ask, and his request waits in the queue instead of failing.`}
</span>
</div>
<PixelButton variant={orchSpawnOn ? 'primary' : 'secondary'} size="sm" onClick={toggleOrchSpawn}>
- {orchSpawnOn ? 'me and Michael' : 'only me'}
+ {orchSpawnOn ? `me and ${godName}` : 'only me'}
</PixelButton>
</div>
</div>
@@ -1357,7 +1358,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal
>i</button>
</span>
<span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>
- Pipe a Slack channel's messages straight into Michael's queue.
+ Pipe a Slack channel's messages straight into {godName}'s queue.
</span>
</div>
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
@@ -1561,7 +1562,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal
boxShadow: 'inset 0 0 0 1px var(--cth-ink-300)',
fontFamily: 'var(--cth-font-mono)', fontSize: 11, lineHeight: '16px',
color: 'var(--cth-ink-700)'
- }}>{WEBHOOK_API_DOC}</pre>
+ }}>{webhookApiDoc(godName)}</pre>
)}
{/* Public surface warning. Loud, not buried. */}
@@ -1701,7 +1702,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal
<span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>
Callers POST to a webhook's URL with its secret in the{' '}
<code>x-md-webhook-secret</code> header. Each one checks bodies against its own JSON
- schema — edit that in the Triggers tab of Michael's Command Center, where the history
+ schema — edit that in the Triggers tab of {godName}'s Command Center, where the history
of everything that arrived lives too.
</span>
@@ -1894,10 +1895,10 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal
</div>
<div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}>
<span style={{ fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>
- Voice chat with Michael
+ Voice chat with {godName}
</span>
<span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>
- Talk to the orchestrator in real time. Toggle it on from Michael's tab; choose which
+ Talk to the orchestrator in real time. Toggle it on from {godName}'s tab; choose which
microphone and speaker the voice loop uses here.
</span>
</div>
@@ -1922,7 +1923,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal
OpenAI API key · voice
</span>
<span style={{ fontSize: 12, lineHeight: '17px', color: 'var(--cth-ink-700)' }}>
- Talking to Michael runs on OpenAI&rsquo;s Realtime API — speech in, speech out, over a
+ Talking to {godName} runs on OpenAI&rsquo;s Realtime API — speech in, speech out, over a
live connection to <strong style={{ fontFamily: 'var(--cth-font-mono)' }}>{REALTIME_MODEL}</strong>.
That is a different service from the Claude subscription your agents run on, so it needs
its own <strong>OpenAI API key</strong>.
@@ -1962,7 +1963,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal
boxShadow: 'inset 0 0 0 1px var(--cth-ink-300)'
}} />
{openAiVoiceNote || (hasOpenAiKey
- ? 'Key saved — Talk is ready. Start it from Michael’s card.'
+ ? `Key saved — Talk is ready. Start it from ${godName}’s card.`
: 'No key yet — Talk stays disabled until one is saved.')}
</span>
</div>
@@ -2007,7 +2008,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal
color: '#6E1423'
}}>DANGER ZONE</div>
<p style={{ margin: 0, fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-700)' }}>
- Reset wipes Michael's memories, the entire hive (every agent, message,
+ Reset wipes {godName}'s memories, the entire hive (every agent, message,
task, and the board), the semantic-memory palace, and all settings -
then takes you back to onboarding.
</p>
diff --git a/src/renderer/src/components/TasksKanban.tsx b/src/renderer/src/components/TasksKanban.tsx
index f2b7aea6..2f28c77b 100644
--- a/src/renderer/src/components/TasksKanban.tsx
+++ b/src/renderer/src/components/TasksKanban.tsx
@@ -170,7 +170,7 @@ export function TasksKanban() {
{tasks.length} task{tasks.length === 1 ? '' : 's'}
</span>
<span style={{ marginLeft: 'auto', fontSize: 11, color: 'var(--cth-ink-300)' }}>
- new work? dispatch it to Michael (monitor tab)
+ new work? dispatch it to {agents.find((a) => a.isGod)?.name ?? 'the orchestrator'} (monitor tab)
</span>
</div>
diff --git a/src/renderer/src/components/WorkersTab.tsx b/src/renderer/src/components/WorkersTab.tsx
index a841e534..85d3afee 100644
--- a/src/renderer/src/components/WorkersTab.tsx
+++ b/src/renderer/src/components/WorkersTab.tsx
@@ -1,5 +1,6 @@
import { useEffect, useState, useCallback } from 'react';
import { PixelButton } from './PixelButton';
+import { useStore } from '@/store/store';
/**
* WORKERS — live god-triggered ephemeral Slack workers (the Phase-1 spawn loop):
@@ -62,6 +63,7 @@ function StatusBadge({ w }: { w: WorkerSnapshot }) {
}
export function WorkersTab() {
+ const godName = useStore((s) => s.agents.find((a) => a.isGod)?.name) ?? 'the orchestrator';
const [data, setData] = useState<WorkersData | null>(null);
const [stopping, setStopping] = useState<Record<string, boolean>>({});
@@ -96,7 +98,7 @@ export function WorkersTab() {
</span>
</div>
<p style={{ fontFamily: 'var(--cth-font-ui)', fontSize: 11, color: 'var(--cth-ink-700)', margin: '2px 0 8px' }}>
- Isolated workers Michael spins up to handle Slack messages — they run to completion, reply in-thread, then tear down.
+ Isolated workers {godName} spins up to handle Slack messages — they run to completion, reply in-thread, then tear down.
</p>
{live.length === 0 ? (
diff --git a/src/renderer/src/components/triggers/SchedulesSection.tsx b/src/renderer/src/components/triggers/SchedulesSection.tsx
index da750393..0b3d179c 100644
--- a/src/renderer/src/components/triggers/SchedulesSection.tsx
+++ b/src/renderer/src/components/triggers/SchedulesSection.tsx
@@ -100,7 +100,9 @@ export function SchedulesSection({ onSummary }: { onSummary?: (s: string) => voi
const whenIsUsable = !mWeekly || weeklyIsUsable(mWeekly);
const targetName = (to: string) =>
- to === 'broadcast' ? 'everyone' : to === 'god' ? 'Michael' : agents.find((a) => a.id === to)?.name ?? to;
+ to === 'broadcast' ? 'everyone'
+ : to === 'god' ? (agents.find((a) => a.isGod)?.name ?? 'the orchestrator')
+ : agents.find((a) => a.id === to)?.name ?? to;
return (
<>
@@ -135,7 +137,7 @@ export function SchedulesSection({ onSummary }: { onSummary?: (s: string) => voi
<Field label="GOES TO">
<Select value={mTo} onChange={setMTo} style={{ width: '100%' }}>
<option value="broadcast">everyone</option>
- <option value="god">Michael</option>
+ <option value="god">{agents.find((a) => a.isGod)?.name ?? 'the orchestrator'}</option>
{agents.filter((a) => !a.isGod).map((a) => <option key={a.id} value={a.id}>{a.name}</option>)}
</Select>
</Field>
@@ -273,7 +275,7 @@ function MissionRow({ mission, targetName, agents, onPatch, onDelete }: {
<Field label="GOES TO">
<Select value={to} onChange={setTo} style={{ width: '100%' }}>
<option value="broadcast">everyone</option>
- <option value="god">Michael</option>
+ <option value="god">{agents.find((a) => a.isGod)?.name ?? 'the orchestrator'}</option>
{agents.filter((a) => !a.isGod).map((a) => <option key={a.id} value={a.id}>{a.name}</option>)}
</Select>
</Field>
diff --git a/src/renderer/src/components/triggers/TriggerHistoryTab.tsx b/src/renderer/src/components/triggers/TriggerHistoryTab.tsx
index 81c94cce..7e56054d 100644
--- a/src/renderer/src/components/triggers/TriggerHistoryTab.tsx
+++ b/src/renderer/src/components/triggers/TriggerHistoryTab.tsx
@@ -1,5 +1,6 @@
import { useCallback, useEffect, useMemo, useState, type CSSProperties } from 'react';
import { PixelButton } from '../PixelButton';
+import { useStore } from '@/store/store';
import type { TriggerHistoryEntry } from '@shared/triggers';
/**
@@ -238,6 +239,7 @@ function ExchangeCard({
busy: Record<string, boolean>;
onDecide: (id: string, decision: 'approved' | 'rejected') => void;
}) {
+ const godName = useStore((s) => s.agents.find((a) => a.isGod)?.name) ?? 'the orchestrator';
const head = ex.head;
const hasInbound = ex.msgs.some((m) => m.direction === 'inbound');
const decision = head.decision;
@@ -249,7 +251,7 @@ function ExchangeCard({
const tail = (() => {
if (pending || ex.answered) return null;
if (decision === 'rejected') return 'You turned this down. Nothing was sent to the hive.';
- return 'No reply yet. Michael has this one.';
+ return `No reply yet. ${godName} has this one.`;
})();
return (
@@ -299,8 +301,8 @@ function ExchangeCard({
<div style={{ display: 'flex', flexDirection: 'column', gap: 6 }}>
<div style={{ ...uiText, fontSize: 11, lineHeight: '16px', color: 'var(--cth-ink-700)' }}>
{pending.kind === 'directive'
- ? 'Approve and this goes to Michael, who will put the hive to work on it. Reject and it is dropped — nothing runs.'
- : 'Approve and Michael reads this. Reject and it is dropped — nothing runs.'}
+ ? `Approve and this goes to ${godName}, who will put the hive to work on it. Reject and it is dropped — nothing runs.`
+ : `Approve and ${godName} reads this. Reject and it is dropped — nothing runs.`}
</div>
<div style={{ display: 'flex', gap: 6 }}>
<PixelButton
@@ -308,7 +310,7 @@ function ExchangeCard({
size="sm"
disabled={!!busy[pending.id]}
onClick={() => onDecide(pending.id, 'approved')}
- title="Send this message through to Michael"
+ title={`Send this message through to ${godName}`}
>
{busy[pending.id] ? 'one sec…' : 'approve'}
</PixelButton>
@@ -345,22 +347,23 @@ function EmptyState({ title, body }: { title: string; body: string }) {
);
}
-const SECTIONS: { key: Source; label: string; blurb: string }[] = [
+const SECTIONS: { key: Source; label: string; blurb: (godName: string) => string }[] = [
{
key: 'webhook',
label: 'Webhooks',
- blurb: 'Everything posted to your webhook endpoints, next to what Michael sent back.'
+ blurb: (godName) => `Everything posted to your webhook endpoints, next to what ${godName} sent back.`
},
{
key: 'org',
label: 'Organization',
- blurb: 'Messages from your teammates’ clone nodes, next to what Michael sent back.'
+ blurb: (godName) => `Messages from your teammates’ clone nodes, next to what ${godName} sent back.`
}
];
/* ──────────────────────────────── the tab ────────────────────────────────── */
export function TriggerHistoryTab() {
+ const godName = useStore((s) => s.agents.find((a) => a.isGod)?.name) ?? 'the orchestrator';
const [entries, setEntries] = useState<TriggerHistoryEntry[]>([]);
const [source, setSource] = useState<Source>('webhook');
const [expanded, setExpanded] = useState<Record<string, boolean>>({});
@@ -480,7 +483,7 @@ export function TriggerHistoryTab() {
flex: 1, minHeight: 0, overflowY: 'auto', overflowX: 'hidden',
padding: 8, display: 'flex', flexDirection: 'column', gap: 8
}}>
- <div style={{ ...muted, fontSize: 11, lineHeight: '16px' }}>{section.blurb}</div>
+ <div style={{ ...muted, fontSize: 11, lineHeight: '16px' }}>{section.blurb(godName)}</div>
{pendingCount > 0 && (
<div style={{
@@ -511,7 +514,7 @@ export function TriggerHistoryTab() {
) : (
<EmptyState
title="No webhook messages yet."
- body={'When something posts to one of your endpoints, it lands here with Michael’s '
+ body={`When something posts to one of your endpoints, it lands here with ${godName}’s `
+ 'reply underneath. Nothing has called in so far. Add an endpoint under Webhooks to '
+ 'get a URL you can hand out.'}
/>
diff --git a/src/renderer/src/hooks/useResolvedGodName.ts b/src/renderer/src/hooks/useResolvedGodName.ts
new file mode 100644
index 00000000..d29f75ec
--- /dev/null
+++ b/src/renderer/src/hooks/useResolvedGodName.ts
@@ -0,0 +1,23 @@
+import { useEffect, useState } from 'react';
+import { resolveGodName, DEFAULT_GOD_NAME } from '@shared/godIdentity';
+
+const GOD_ID = 'god';
+
+/**
+ * God's persisted display name, for the boot screens shown BEFORE the store
+ * has god's live agent object (so before `agent.name` exists anywhere to
+ * read). Reads the registry directly, the same way useHive.ts's spawn effect
+ * does, rather than assuming the default — otherwise a renamed god's own
+ * "clocking in" screen would flash the wrong name every launch.
+ */
+export function useResolvedGodName(): string {
+ const [godName, setGodName] = useState(DEFAULT_GOD_NAME);
+ useEffect(() => {
+ let cancelled = false;
+ void window.cth.hiveRegistry().then((reg) => {
+ if (!cancelled) setGodName(resolveGodName(reg?.agents?.[GOD_ID]?.name));
+ }).catch(() => { /* keep the default while unknown */ });
+ return () => { cancelled = true; };
+ }, []);
+ return godName;
+}
diff --git a/src/renderer/src/realtime/CompletionToast.tsx b/src/renderer/src/realtime/CompletionToast.tsx
index cef12edf..65b9e169 100644
--- a/src/renderer/src/realtime/CompletionToast.tsx
+++ b/src/renderer/src/realtime/CompletionToast.tsx
@@ -18,6 +18,7 @@
*/
import { useEffect, useRef, useState } from 'react';
import { Icon } from '@/components/Icon';
+import { useStore } from '@/store/store';
/** Mirrors the `window.cth.onRealtimeCompletion` payload (preload). `summary` is the
* human-speakable line Michael relays; the rest is context for this toast. */
@@ -42,6 +43,7 @@ const AUTO_DISMISS_MS = 9000;
const MAX_VISIBLE = 4;
export function CompletionToast(): JSX.Element | null {
+ const godName = useStore((s) => s.agents.find((a) => a.isGod)?.name) ?? 'the orchestrator';
const [toasts, setToasts] = useState<ActiveToast[]>([]);
// Stable across renders so the subscription's closures always see live timers.
const timers = useRef<Map<string, ReturnType<typeof setTimeout>>>(new Map());
@@ -122,7 +124,7 @@ export function CompletionToast(): JSX.Element | null {
textTransform: 'uppercase'
}}
>
- <Icon name="bell" /> Michael · completed
+ <Icon name="bell" /> {godName} · completed
<button
type="button"
onClick={() => dismiss(t.key)}
diff --git a/src/renderer/src/realtime/DevicePicker.tsx b/src/renderer/src/realtime/DevicePicker.tsx
index f86e3bf1..6392b914 100644
--- a/src/renderer/src/realtime/DevicePicker.tsx
+++ b/src/renderer/src/realtime/DevicePicker.tsx
@@ -18,6 +18,7 @@
*/
import { useCallback, useEffect, useState } from 'react';
import { useRealtimeMichael } from './session';
+import { useStore } from '@/store/store';
interface AudioDevice {
deviceId: string;
@@ -59,6 +60,7 @@ const selectStyle: React.CSSProperties = {
export function RealtimeDevicePicker(): React.ReactElement {
const { deviceId, setDeviceId, outputDeviceId, setOutputDeviceId } = useRealtimeMichael();
+ const godName = useStore((s) => s.agents.find((a) => a.isGod)?.name) ?? 'the orchestrator';
const [mics, setMics] = useState<AudioDevice[]>([]);
const [speakers, setSpeakers] = useState<AudioDevice[]>([]);
/** True once at least one device exposes a real label ⇒ mic permission granted. */
@@ -123,7 +125,7 @@ export function RealtimeDevicePicker(): React.ReactElement {
{!labelled && (
<span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>
Device names appear after you first start a voice session and grant mic access.
- The microphone choice applies the next time Michael connects; the speaker switches live.
+ The microphone choice applies the next time {godName} connects; the speaker switches live.
</span>
)}
</div>