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(remove-enrich): rip out headless-Haiku enrich feature entirely

Chaitanya Giri6d0e09231e71
diff --git a/src/main/assistant.ts b/src/main/assistant.ts
deleted file mode 100644
index a3f07fe9..00000000
--- a/src/main/assistant.ts
+++ /dev/null
@@ -1,96 +0,0 @@
-import { existsSync } from 'node:fs';
-import { runHiddenClaude } from './hiddenClaude';
-
-/**
- * Michael's silent prep assistant.
- *
- * Runs a HIDDEN interactive claude session (Haiku) that NEVER appears on the
- * office floor, agent list, or registry. Given a short, possibly vague
- * instruction the user parked for Michael, it explores read-only and rewrites
- * it into a self-contained context-rich prompt Michael can execute immediately.
- *
- * See hiddenClaude.ts for the session lifecycle.
- */
-
-/** Haiku 4.5 — fast, draws from interactive plan quota (not Agent SDK credit). */
-const ASSISTANT_MODEL = 'claude-haiku-4-5';
-
-export interface EnrichRequest {
- /** The raw instruction the user wants enriched. */
- message: string;
- /** Michael's working directory — the assistant's default cwd. */
- cwd: string;
- /** Registered project repos the assistant may read to gather context. */
- repos?: string[];
- /** Base claude command from config (only its binary name is used). */
- command?: string;
- /** Model override; defaults to Haiku 4.5. */
- model?: string;
- /** Hard cap so a runaway run can't wedge the queue. */
- timeoutMs?: number;
- /** Extra env merged over the resolved shell env (e.g. the shared MemPalace). */
- env?: Record<string, string>;
-}
-
-export interface EnrichResult {
- ok: boolean;
- /** The enriched, self-contained prompt for Michael. */
- prompt?: string;
- error?: string;
-}
-
-function buildTaskPrompt(message: string, cwd: string, repos: string[]): string {
- const repoList = repos.length
- ? repos.map((r) => ` - ${r}`).join('\n')
- : ' (none registered — work from the home directory above)';
- return [
- "You are Michael's silent prep assistant inside the Munder Difflin agent harness.",
- 'Michael is the orchestrator who will act on the prompt you produce — autonomously, with no human in the loop.',
- 'You are NOT visible to the user and you do NOT perform the task yourself. Your only job is to turn a short,',
- 'possibly vague instruction into a single, self-contained, context-rich prompt that Michael can execute immediately.',
- '',
- `Your working directory is Michael's home: ${cwd}`,
- 'Project repositories you may read to gather context (cd into the relevant one):',
- repoList,
- '',
- 'Do this:',
- '1. Decide which project/directory this instruction concerns and cd into the most relevant repo',
- ' (or stay in the home directory if it is a hive/coordination task).',
- '2. Explore READ-ONLY to gather the concrete context Michael needs: exact file paths, current state,',
- ' relevant code, conventions, the active branch, and any constraints or gotchas. NEVER modify, create,',
- ' or delete files, and never run destructive or write commands.',
- "3. Rewrite the instruction into ONE clear prompt for Michael. Preserve the user's original intent exactly —",
- ' do not invent new scope. State the target directory, the specific files/symbols involved, the concrete',
- ' goal, and anything you discovered that Michael should know before starting.',
- '',
- 'Output ONLY the final prompt text for Michael. No preamble, no explanation, no markdown code fences,',
- 'no "Here is the prompt". Just the prompt itself.',
- '',
- '--- ORIGINAL INSTRUCTION FROM THE USER ---',
- message
- ].join('\n');
-}
-
-export async function enrichMessage(req: EnrichRequest): Promise<EnrichResult> {
- const message = (req.message ?? '').trim();
- if (!message) return { ok: false, error: 'empty message' };
- if (!req.cwd || !existsSync(req.cwd)) {
- return { ok: false, error: `working directory does not exist: ${req.cwd}` };
- }
-
- const repos = (req.repos ?? []).filter((r) => r && existsSync(r) && r !== req.cwd);
- const taskPrompt = buildTaskPrompt(message, req.cwd, repos);
-
- const result = await runHiddenClaude(taskPrompt, {
- model: req.model || ASSISTANT_MODEL,
- cwd: req.cwd,
- command: req.command,
- disallowedTools: ['Edit', 'Write', 'NotebookEdit'],
- addDirs: repos,
- timeoutMs: req.timeoutMs,
- env: req.env,
- });
-
- if (result.ok && result.text) return { ok: true, prompt: result.text };
- return { ok: false, error: result.error };
-}
diff --git a/src/main/closingTime.ts b/src/main/closingTime.ts
index e18b192a..98b42231 100644
--- a/src/main/closingTime.ts
+++ b/src/main/closingTime.ts
@@ -99,7 +99,7 @@ export class ClosingTimeController {
this.workers = new Set(
[...live].filter((id) => {
const a = reg.agents[id];
- return id !== this.godId && !!a && !a.isGod && !a.isAssistant;
+ return id !== this.godId && !!a && !a.isGod;
})
);
this.acked = new Set();
diff --git a/src/main/config.ts b/src/main/config.ts
index 8a75a680..8b11c83e 100644
--- a/src/main/config.ts
+++ b/src/main/config.ts
@@ -242,30 +242,27 @@ export function resetConfig(): HarnessConfig {
return { ...DEFAULTS };
}
-/** Model ids by tier (Lane A #6.4). Kept in sync with AGENT_MODELS / ASSISTANT_MODEL
- * in src/renderer/src/store/config.ts and ASSISTANT_MODEL in src/main/assistant.ts. */
+/** Model ids by tier (Lane A #6.4). Kept in sync with AGENT_MODELS in
+ * src/renderer/src/store/config.ts. */
const MODEL_GOD = 'claude-opus-4-8'; // orchestration — highest capability
const MODEL_WORKER = 'claude-sonnet-4-6'; // general execution
-const MODEL_ASSISTANT = 'claude-sonnet-4-6[1m]'; // large-context prep assistant
const MODEL_HELPER = 'claude-haiku-4-5-20251001'; // narrow, cheap helpers
/** Minimal structural shape for tiering — a subset of AgentMeta so config.ts
* stays free of a hive.ts import. */
export interface RoleHint {
isGod?: boolean;
- isAssistant?: boolean;
role?: string;
capabilities?: string[];
}
/** Default model for an agent given its role (Lane A #6.4): Opus for the god,
- * Sonnet·1M for the prep assistant, Haiku for narrow helpers (triage / routing /
- * verification / formatting), Sonnet for general workers. Returns a model id
- * (matching AGENT_MODELS) or undefined to fall back to the CLI default. This is
- * only a DEFAULT — an explicit per-agent model selection always wins. */
+ * Haiku for narrow helpers (triage / routing / verification / formatting),
+ * Sonnet for general workers. Returns a model id (matching AGENT_MODELS) or
+ * undefined to fall back to the CLI default. This is only a DEFAULT — an
+ * explicit per-agent model selection always wins. */
export function modelForRole(meta: RoleHint): string | undefined {
if (meta.isGod) return MODEL_GOD;
- if (meta.isAssistant) return MODEL_ASSISTANT;
const hay = `${meta.role ?? ''} ${(meta.capabilities ?? []).join(' ')}`.toLowerCase();
if (/\b(triage|rout|verif|lint|format|summar|classif|label)/.test(hay)) return MODEL_HELPER;
return MODEL_WORKER;
diff --git a/src/main/hive.ts b/src/main/hive.ts
index eb91941d..74aaa5cb 100644
--- a/src/main/hive.ts
+++ b/src/main/hive.ts
@@ -91,9 +91,6 @@ export interface AgentMeta {
capabilities?: string[];
cwd: string;
isGod?: boolean;
- /** Michael's prep assistant — enriches prompts and forwards them to Michael.
- * Send-only: excluded from broadcast fan-out so it never drains an inbox. */
- isAssistant?: boolean;
}
export interface RegistryAgent extends AgentMeta {
@@ -490,8 +487,6 @@ export class HiveManager {
const godLine = meta.isGod
? '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. (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 ${root}/fleet.json (live per-agent tokens, cost, status, last tool, breaker level, inbox backlog) and ${root}/registry.json — note that running 'claude agents' will NOT list your hive's sibling agents. A full Claude Code command reference is at ${root}/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.'
: '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).';
return [
@@ -560,14 +555,12 @@ export class HiveManager {
// at "human" is handled by the god/orchestrator, the human's proxy here.
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, non-Claude providers without hook/protocol support, and any
- // archived agent (closed tab) so mail never piles into a dead inbox no one
- // will read.
+ // The roster for fan-out is the ACTIVE registry: skip non-Claude providers
+ // without hook/protocol support, and any archived agent (closed tab) so mail
+ // never piles into a dead inbox no one will read.
? Object.keys(reg.agents).filter((a) => {
const agent = reg.agents[a];
return a !== msg.from
- && !agent?.isAssistant
&& !agent?.archived
&& isClaudeProvider(agent?.provider ?? 'claude');
})
diff --git a/src/main/index.ts b/src/main/index.ts
index ce74a01a..1e9e85e2 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -20,7 +20,6 @@ import type { UsageProvider } from './usage';
import { MemoryManager } from './memory';
import { MemoryReflector, type ReflectSettings } from './reflect';
import { PersistStore } from './db';
-import { enrichMessage } from './assistant';
import { readAgentUsage, readContextTokens } from './transcript';
import { listIssues, listCIRuns } from './github';
import { SlackWebhookServer, SlackReplyServer, postSlackReply } from './slack';
@@ -330,7 +329,7 @@ function looksStuck(windowMs: number): boolean {
const reg = hive.registry();
const now = Date.now();
for (const [id, a] of Object.entries(reg.agents)) {
- if (a.archived || a.isAssistant || id === reg.godId) continue;
+ if (a.archived || id === reg.godId) continue;
const ptyId = ptyForAgent(id);
if (!ptyId) continue;
const idle = ptyManager.idleFor(ptyId) ?? Infinity;
@@ -343,7 +342,7 @@ function looksStuck(windowMs: number): boolean {
* #6.2). A few hundred tokens at most. */
function buildHeartbeatDigest(quietMs: number): string {
const reg = hive.registry();
- const active = Object.entries(reg.agents).filter(([id, a]) => !a.archived && !a.isAssistant && id !== reg.godId);
+ const active = Object.entries(reg.agents).filter(([id, a]) => !a.archived && id !== reg.godId);
const names = active.map(([, a]) => a.name).join(', ') || '—';
const boardHead = hive.board().split('\n').slice(0, 10).join('\n').trim();
const log = hive.logTail(8).map((e) => { try { return JSON.stringify(e); } catch { return ''; } }).filter(Boolean).join('\n');
@@ -391,7 +390,7 @@ function runBreakerBeat(progressWindowMs: number): void {
const now = Date.now();
const inputs: BreakerInput[] = [];
for (const [id, a] of Object.entries(reg.agents)) {
- if (a.archived || a.isAssistant) continue;
+ if (a.archived) continue;
const sample = usageProvider.getAgentUsage(id);
if (sample) hive.appendCostLedger(sample); // ledger covers everyone incl. god
if (id === reg.godId) continue; // breaker skips god
@@ -436,10 +435,9 @@ function writeFleetSnapshot(): void {
return {
id,
name: a.name,
- role: a.role ?? (a.isGod ? 'orchestrator' : a.isAssistant ? 'assistant' : 'agent'),
+ role: a.role ?? (a.isGod ? 'orchestrator' : 'agent'),
cwd: a.cwd,
isGod: !!a.isGod,
- isAssistant: !!a.isAssistant,
breaker: breaker.levelFor(id),
tokens,
usd: u ? Number(u.usd.toFixed(4)) : 0,
@@ -1221,28 +1219,6 @@ ipcMain.handle('hive:setArchived', (_evt, id: unknown, archived: unknown) => {
return { ok: true };
});
-// ─── IPC: enrichment assistant (headless Sonnet 1M prompt prep) ─────────────
-ipcMain.handle('assistant:enrich', async (_evt, payload: unknown) => {
- const p = (payload ?? {}) as { message?: unknown; cwd?: unknown };
- if (typeof p.message !== 'string' || !p.message.trim()) {
- return { ok: false, error: 'empty message' };
- }
- const cfg = readConfig();
- const cwd = typeof p.cwd === 'string' && p.cwd ? p.cwd : cfg.harnessHome;
- if (!cwd) return { ok: false, error: 'no working directory available' };
- try {
- return await enrichMessage({
- message: p.message,
- cwd,
- repos: cfg.registeredRepos ?? [],
- command: cfg.defaultCommand,
- env: memory.env()
- });
- } catch (e) {
- return { ok: false, error: e instanceof Error ? e.message : String(e) };
- }
-});
-
// ─── IPC: semantic memory (MemPalace CLI) ───────────────────────────────────
ipcMain.handle('hive:memoryStatus', () => { memory.resetBinCache(); return memory.status(); });
ipcMain.handle('hive:searchMemory', (_evt, query: unknown, wing: unknown) => {
diff --git a/src/main/shellEnv.ts b/src/main/shellEnv.ts
index 646c0bb7..4ac39ed4 100644
--- a/src/main/shellEnv.ts
+++ b/src/main/shellEnv.ts
@@ -2,9 +2,9 @@ import { existsSync } from 'node:fs';
import { spawnSync } from 'node:child_process';
// These helpers mirror the resolution logic in pty.ts. They exist separately so
-// headless child processes (e.g. the enrichment assistant) can launch `claude`
-// with the same PATH the user's interactive shell sees — Electron on macOS
-// starts without the login-shell PATH, so a bare `claude` would otherwise fail
+// headless child processes can launch `claude` with the same PATH the user's
+// interactive shell sees — Electron on macOS starts without the login-shell PATH,
+// so a bare `claude` would otherwise fail
// with ENOENT in a packaged build.
let cachedPath: string | null = null;
diff --git a/src/preload/index.ts b/src/preload/index.ts
index 37b00eff..de28ddb3 100644
--- a/src/preload/index.ts
+++ b/src/preload/index.ts
@@ -12,7 +12,6 @@ export interface HiveAgentMeta {
capabilities?: string[];
cwd: string;
isGod?: boolean;
- isAssistant?: boolean;
}
export interface HiveMessage {
@@ -397,12 +396,6 @@ const api = {
hiveSend: (msg: Partial<HiveMessage>, from?: string): Promise<{ ok: boolean; error?: string; message?: HiveMessage }> =>
ipcRenderer.invoke('hive:send', msg, from),
- // ─── Enrichment assistant (headless Sonnet 1M prompt prep for Michael) ─────
- /** Run Michael's silent assistant on a raw message and return an enriched,
- * context-rich prompt. `cwd` is the agent's working directory (its default
- * context); the assistant may read every registered repo to gather more. */
- enrichMessage: (req: { message: string; cwd: string }): Promise<{ ok: boolean; prompt?: string; error?: string }> =>
- ipcRenderer.invoke('assistant:enrich', req),
onHiveHookEvent: (
cb: (e: { agentId?: string; event: string; tool?: string; notificationType?: string; source?: string; message?: string; blocked?: boolean }) => void
): (() => void) => {
diff --git a/src/renderer/src/components/AgentCard.tsx b/src/renderer/src/components/AgentCard.tsx
index 19473831..8a7dc701 100644
--- a/src/renderer/src/components/AgentCard.tsx
+++ b/src/renderer/src/components/AgentCard.tsx
@@ -20,8 +20,6 @@ export interface AgentCardProps {
selected?: boolean;
/** The orchestrator — gets a persistent accent frame + GOD tag so it stands out. */
isGod?: boolean;
- /** The prep assistant. Same size as every other card (no special sizing). */
- isAssistant?: boolean;
onClick?: () => void;
/** Number of ledger tasks this agent is actively DOING — rendered as a blue
* sticky note stuck to the card. Clicking it opens the first task's detail. */
diff --git a/src/renderer/src/components/AgentDetailPanel.tsx b/src/renderer/src/components/AgentDetailPanel.tsx
index 1ec224bb..8f59450c 100644
--- a/src/renderer/src/components/AgentDetailPanel.tsx
+++ b/src/renderer/src/components/AgentDetailPanel.tsx
@@ -5,7 +5,6 @@ import { PixelButton } from './PixelButton';
import { SpritePortrait } from './SpritePortrait';
import { PtyTerminalView } from './PtyTerminalView';
import { MessageQueueComposer } from './MessageQueueComposer';
-import { AssistantRoleNote } from './AssistantRoleNote';
import { CommandCenterPanel } from './CommandCenterPanel';
import { disposeTerminal } from './terminalPool';
import { SidebarTabs } from './SidebarTabs';
@@ -172,7 +171,7 @@ export function AgentDetailPanel({ agent }: AgentDetailPanelProps) {
embedded
/>
</div>
- {agent.isAssistant ? <AssistantRoleNote /> : <MessageQueueComposer agent={agent} />}
+ <MessageQueueComposer agent={agent} />
</div>
)
) : (
diff --git a/src/renderer/src/components/AgentStrip.tsx b/src/renderer/src/components/AgentStrip.tsx
index e5e54e8e..df17eb96 100644
--- a/src/renderer/src/components/AgentStrip.tsx
+++ b/src/renderer/src/components/AgentStrip.tsx
@@ -121,7 +121,6 @@ export function AgentStrip({ config }: AgentStripProps) {
contextLimit={a.contextLimit}
selected={a.id === selectedId}
isGod={a.isGod}
- isAssistant={a.isAssistant}
onClick={() => select(a.id)}
doingCount={doingByAgent[a.id]?.length ?? 0}
onTaskNoteClick={() => {
diff --git a/src/renderer/src/components/AssistantRoleNote.tsx b/src/renderer/src/components/AssistantRoleNote.tsx
deleted file mode 100644
index 135c8d5b..00000000
--- a/src/renderer/src/components/AssistantRoleNote.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-import { Icon } from './Icon';
-import { useStore } from '@/store/store';
-
-/** Footer shown under the assistant's terminal in place of a message composer.
- * The assistant isn't messaged directly — it's fed by Michael's enrich queue —
- * so this explains its role and points to the toggle in Michael's panel. */
-export function AssistantRoleNote() {
- const enrichEnabled = useStore((s) => s.enrichEnabled);
- const select = useStore((s) => s.select);
-
- return (
- <div style={{
- flexShrink: 0,
- borderTop: '1px solid var(--cth-ink-700)',
- background: 'var(--cth-cream-100)',
- padding: 8,
- display: 'flex', alignItems: 'center', gap: 8
- }}>
- <Icon name="sparkle" />
- <div style={{ flex: 1, minWidth: 0, fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-700)' }}>
- Dwight is Michael's assistant, he helps him enrich context before he executes a task.<strong>{enrichEnabled ? 'on' : 'off'}</strong>.
- </div>
- <button
- onClick={() => select('god')}
- style={{
- flexShrink: 0,
- padding: '3px 8px 2px', border: 'none', cursor: 'pointer',
- background: 'var(--cth-cream-200)', boxShadow: 'inset 0 0 0 1px var(--cth-ink-700)',
- fontFamily: 'var(--cth-font-ui)', fontSize: 12, color: 'var(--cth-ink-900)'
- }}
- >open Michael</button>
- </div>
- );
-}
diff --git a/src/renderer/src/components/CommandCenterPanel.tsx b/src/renderer/src/components/CommandCenterPanel.tsx
index 5ee7bea6..5e33a759 100644
--- a/src/renderer/src/components/CommandCenterPanel.tsx
+++ b/src/renderer/src/components/CommandCenterPanel.tsx
@@ -223,8 +223,6 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {
const agents = useStore((s) => s.agents);
const select = useStore((s) => s.select);
const updateAgent = useStore((s) => s.updateAgent);
- const enrichEnabled = useStore((s) => s.enrichEnabled);
- const setEnrichEnabled = useStore((s) => s.setEnrichEnabled);
const toolCounts = useStore((s) => s.toolCounts);
// Live OpenTelemetry per agent — merged into each agent card below (the old
// standalone Fleet tab folded in here so the roster shows identity + controls
@@ -311,8 +309,6 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {
const [exe, ...args] = command.trim().split(/\s+/);
const hive = a.isGod
? { id: a.id, name: a.name, provider, cwd: a.cwd, isGod: true, role: 'orchestrator (god)' }
- : a.isAssistant
- ? { id: a.id, name: a.name, provider, cwd: a.cwd, isAssistant: true, role: "Michael's prep assistant" }
: { id: a.id, name: a.name, provider, cwd: a.cwd, role: a.description };
const res = await window.cth.spawnPty({ id: a.ptyId, cwd: a.cwd, command: exe, provider, args, cols: 100, rows: 30, hive });
if (res.ok) updateAgent(a.id, { command: command.trim(), provider, model, status: 'idle', action: 'restarting…' });
@@ -407,7 +403,7 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {
</span>
<Select value={dispatchTo} onChange={setDispatchTo}>
<option value="">Michael decides</option>
- {agents.filter((a) => !a.isGod && !a.isAssistant).map((a) => (
+ {agents.filter((a) => !a.isGod).map((a) => (
<option key={a.id} value={a.id}>{a.name}</option>
))}
</Select>
@@ -463,7 +459,7 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {
border: 'none', background: 'transparent', cursor: 'pointer', padding: 0,
fontFamily: 'var(--cth-font-ui)', fontSize: 13, color: 'var(--cth-ink-900)'
}}
- >{a.name}{a.isGod ? ' (god)' : a.isAssistant ? ' (assistant)' : ''}</button>
+ >{a.name}{a.isGod ? ' (god)' : ''}</button>
<PixelBadge status={armed ? 'looping' : a.status} />
{armed && <span title={breaker?.reason} style={{ color: 'var(--cth-coral)', fontSize: 12 }}>⚠</span>}
<span style={{ marginLeft: 'auto', fontSize: 11, color: 'var(--cth-ink-500)' }}>
@@ -571,22 +567,6 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {
<ArchivedSection />
- <Section title="ENRICH">
- <div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
- <span style={{ fontSize: 13, color: 'var(--cth-ink-700)' }}>Enrich prompts with Haiku before Michael</span>
- <button
- onClick={() => setEnrichEnabled(!enrichEnabled)}
- style={{
- marginLeft: 'auto', display: 'inline-flex', alignItems: 'center', gap: 4,
- padding: '2px 8px 1px', border: 'none', cursor: 'pointer',
- background: enrichEnabled ? 'var(--cth-lemon)' : 'var(--cth-cream-200)',
- boxShadow: `inset 0 0 0 1px ${enrichEnabled ? 'var(--cth-ink-900)' : 'var(--cth-ink-700)'}`,
- fontFamily: 'var(--cth-font-ui)', fontSize: 12, color: 'var(--cth-ink-900)'
- }}
- ><Icon name="sparkle" /> enrich {enrichEnabled ? 'on' : 'off'}</button>
- </div>
- </Section>
-
<Section title="SCHEDULES">
{missions.length === 0 && <Muted>No scheduled missions.</Muted>}
{missions.map((m) => {
diff --git a/src/renderer/src/components/FullscreenTerminal.tsx b/src/renderer/src/components/FullscreenTerminal.tsx
index 735af524..368fea94 100644
--- a/src/renderer/src/components/FullscreenTerminal.tsx
+++ b/src/renderer/src/components/FullscreenTerminal.tsx
@@ -3,7 +3,6 @@ import { PixelBadge } from './PixelBadge';
import { PixelButton } from './PixelButton';
import { PtyTerminalView } from './PtyTerminalView';
import { MessageQueueComposer } from './MessageQueueComposer';
-import { AssistantRoleNote } from './AssistantRoleNote';
import { disposeTerminal } from './terminalPool';
import { Icon } from './Icon';
import { SpritePortrait } from './SpritePortrait';
@@ -147,7 +146,7 @@ export function FullscreenTerminal() {
fullscreen
/>
</div>
- {agent.isAssistant ? <AssistantRoleNote /> : <MessageQueueComposer agent={agent} />}
+ <MessageQueueComposer agent={agent} />
</div>
</div>
</div>
diff --git a/src/renderer/src/components/MessageQueueComposer.tsx b/src/renderer/src/components/MessageQueueComposer.tsx
index f5c95d1a..cfb118e1 100644
--- a/src/renderer/src/components/MessageQueueComposer.tsx
+++ b/src/renderer/src/components/MessageQueueComposer.tsx
@@ -13,19 +13,12 @@ export interface MessageQueueComposerProps {
* Lets the user keep messaging an agent whose terminal is mid-run. Typed
* messages park in a per-agent queue and are submitted to the agent's Claude
* TUI one-by-one as soon as it goes idle (see useHive's flush loop).
- *
- * For Michael, a global "enrich" toggle decides routing: OFF → messages type
- * straight into Michael; ON → a headless Haiku call enriches the prompt with
- * repo context before it reaches Michael. Messages show 'enriching…' in the
- * queue while the Haiku call is in flight.
*/
export function MessageQueueComposer({ agent }: MessageQueueComposerProps) {
const queue = useStore((s) => s.messageQueues[agent.id]) ?? EMPTY_QUEUE;
const enqueueMessage = useStore((s) => s.enqueueMessage);
const removeQueuedMessage = useStore((s) => s.removeQueuedMessage);
const clearQueue = useStore((s) => s.clearQueue);
- const enrichEnabled = useStore((s) => s.enrichEnabled);
- const setEnrichEnabled = useStore((s) => s.setEnrichEnabled);
// Draft lives in the store, keyed by agent — switching agents remounts this
// component, and component-local state would silently eat the typed text.
@@ -33,9 +26,6 @@ export function MessageQueueComposer({ agent }: MessageQueueComposerProps) {
const setDraft = useStore((s) => s.setDraft);
const setText = (t: string) => setDraft(agent.id, t);
- // The enrich toggle governs Michael's queue (headless Haiku enrichment).
- const showEnrichToggle = !!agent.isGod;
-
const idle = agent.status === 'idle';
const queueIt = () => {
@@ -53,8 +43,6 @@ export function MessageQueueComposer({ agent }: MessageQueueComposerProps) {
const statusHint = queue.length === 0
? null
- : showEnrichToggle && enrichEnabled
- ? `Haiku enriching → Michael · ${queue.length} queued`
: idle
? `sending to ${agent.name} one-by-one…`
: `${agent.name} is busy — ${queue.length} queued`;
@@ -69,7 +57,7 @@ export function MessageQueueComposer({ agent }: MessageQueueComposerProps) {
gap: 6,
padding: 8
}}>
- {/* Header: label, count, status, enrich toggle (Michael only), clear-all */}
+ {/* Header: label, count, status, clear-all */}
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
<span style={{
fontFamily: 'var(--cth-font-display)',
@@ -87,7 +75,7 @@ export function MessageQueueComposer({ agent }: MessageQueueComposerProps) {
{statusHint && (
<span style={{
fontSize: 12,
- color: showEnrichToggle && enrichEnabled ? 'var(--cth-ink-900)' : idle ? 'var(--cth-ink-700)' : 'var(--cth-ink-500)',
+ color: idle ? 'var(--cth-ink-700)' : 'var(--cth-ink-500)',
whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis'
}}>{statusHint}</span>
)}
@@ -115,32 +103,30 @@ export function MessageQueueComposer({ agent }: MessageQueueComposerProps) {
<div key={m.id} style={{
display: 'flex', alignItems: 'flex-start', gap: 6,
padding: '4px 6px',
- background: m.enriching ? 'var(--cth-lemon-light)' : 'var(--cth-paper-100)',
- boxShadow: `inset 0 0 0 1px ${m.enriching ? 'var(--cth-lemon)' : 'var(--cth-ink-300)'}`
+ background: 'var(--cth-paper-100)',
+ boxShadow: 'inset 0 0 0 1px var(--cth-ink-300)'
}}>
<span style={{
fontFamily: 'var(--cth-font-mono)', fontSize: 12,
color: 'var(--cth-ink-500)', lineHeight: '18px', flexShrink: 0
- }}>{m.enriching ? <Icon name="sparkle" /> : `${i + 1}.`}</span>
+ }}>{`${i + 1}.`}</span>
<div
title={m.text}
style={{
flex: 1, minWidth: 0,
fontSize: 13, lineHeight: '18px',
- color: m.enriching ? 'var(--cth-ink-700)' : 'var(--cth-ink-900)',
- fontStyle: m.enriching ? 'italic' : 'normal',
+ color: 'var(--cth-ink-900)',
display: '-webkit-box', WebkitLineClamp: 2, WebkitBoxOrient: 'vertical',
overflow: 'hidden', whiteSpace: 'pre-wrap', wordBreak: 'break-word'
}}
- >{m.enriching ? 'enriching prompt…' : m.text}</div>
+ >{m.text}</div>
<button
onClick={() => removeQueuedMessage(agent.id, m.id)}
title="Remove from queue"
- disabled={m.enriching}
style={{
flexShrink: 0, border: 'none', background: 'transparent',
- cursor: m.enriching ? 'default' : 'pointer',
- color: m.enriching ? 'var(--cth-ink-300)' : 'var(--cth-ink-500)', padding: 0,
+ cursor: 'pointer',
+ color: 'var(--cth-ink-500)', padding: 0,
display: 'inline-flex', alignItems: 'center'
}}
>
@@ -151,9 +137,8 @@ export function MessageQueueComposer({ agent }: MessageQueueComposerProps) {
</div>
)}
- {/* Composer. Michael gets a right-hand control column with the enrich
- toggle stacked directly above send; other agents get a plain send. */}
- <div style={{ display: 'flex', gap: 6, alignItems: showEnrichToggle ? 'stretch' : 'flex-end' }}>
+ {/* Composer */}
+ <div style={{ display: 'flex', gap: 6, alignItems: 'flex-end' }}>
<textarea
value={text}
onChange={(e) => setText(e.target.value)}
@@ -173,40 +158,11 @@ export function MessageQueueComposer({ agent }: MessageQueueComposerProps) {
outline: 'none'
}}
/>
- {showEnrichToggle ? (
- <div style={{ display: 'flex', flexDirection: 'column', gap: 5, width: 120, flexShrink: 0 }}>
- <button
- onClick={() => setEnrichEnabled(!enrichEnabled)}
- title={enrichEnabled
- ? 'Enrich ON — messages route through Dwight (adds repo context) before Michael'
- : 'Enrich OFF — messages go straight to Michael'}
- style={{
- height: 30, width: '100%',
- display: 'inline-flex', alignItems: 'center', justifyContent: 'center', gap: 5,
- border: 'none', cursor: 'pointer',
- background: enrichEnabled ? 'var(--cth-lemon)' : 'var(--cth-cream-100)',
- color: 'var(--cth-ink-900)',
- boxShadow: enrichEnabled
- ? 'inset 0 0 0 2px var(--cth-ink-900), 0 2px 0 var(--cth-ink-900)'
- : 'inset 0 0 0 2px var(--cth-ink-700), 0 2px 0 var(--cth-ink-700)',
- fontFamily: 'var(--cth-font-ui)', fontSize: 13
- }}
- >
- <Icon name="sparkle" /> enrich {enrichEnabled ? 'on' : 'off'}
- </button>
- <PixelButton variant="primary" size="md" fullWidth onClick={queueIt} disabled={!text.trim()}>
- <span style={{ display: 'inline-flex', gap: 6, alignItems: 'center', justifyContent: 'center' }}>
- send <Icon name="arrow-right" />
- </span>
- </PixelButton>
- </div>
- ) : (
- <PixelButton variant="primary" size="md" onClick={queueIt} disabled={!text.trim()}>
- <span style={{ display: 'inline-flex', gap: 6, alignItems: 'center' }}>
- send <Icon name="arrow-right" />
- </span>
- </PixelButton>
- )}
+ <PixelButton variant="primary" size="md" onClick={queueIt} disabled={!text.trim()}>
+ <span style={{ display: 'inline-flex', gap: 6, alignItems: 'center' }}>
+ send <Icon name="arrow-right" />
+ </span>
+ </PixelButton>
</div>
</div>
);
diff --git a/src/renderer/src/hooks/useHive.ts b/src/renderer/src/hooks/useHive.ts
index b4150d3f..f371899e 100644
--- a/src/renderer/src/hooks/useHive.ts
+++ b/src/renderer/src/hooks/useHive.ts
@@ -334,7 +334,7 @@ export function useHive(config: HarnessConfig | null): void {
const iv = setInterval(async () => {
const now = Date.now();
const agents = useStore.getState().agents.filter(
- (a) => a.ptyId && !a.isAssistant && (a.status === 'idle' || a.status === 'waiting')
+ (a) => a.ptyId && (a.status === 'idle' || a.status === 'waiting')
// Don't type into an agent still running its boot sequence — the nudge
// would collide with /remote-control + the orientation prompt.
&& (bootGraceUntil.current[a.id] ?? 0) < now
@@ -428,37 +428,14 @@ export function useHive(config: HarnessConfig | null): void {
};
const flush = () => {
- const { agents, messageQueues, enrichEnabled, markMessageEnriching, removeQueuedMessage, enqueueMessage } = useStore.getState();
+ const { agents, messageQueues } = useStore.getState();
const byId = (id: string) => agents.find((a) => a.id === id);
- // Sub-agents: flush verbatim into their own terminal. Michael's queue is
- // handled separately below.
for (const a of agents) {
- if (a.id === GOD_ID) continue;
if (!a.ptyId || a.status !== 'idle') continue;
if (!messageQueues[a.id]?.length) continue;
- dispatch(a.id, a);
- }
-
- // Michael's queue: slash commands go verbatim (no card). Slack-origin or
- // enrich-enabled non-commands go through headless Haiku. Slack card is
- // stamped BEFORE enrichment — enriched re-queue loses .slack/.enrich.
- if (messageQueues[GOD_ID]?.length) {
- const head = messageQueues[GOD_ID][0];
- if (!head.enriching) {
- const isCmd = head.text.startsWith('/');
- if (isCmd) { dispatch(GOD_ID, byId(GOD_ID)); }
- else if (head.enrich || enrichEnabled) {
- if (head.slack) void ensureSlackCard(head);
- markMessageEnriching(GOD_ID, head.id);
- const god = byId(GOD_ID);
- window.cth.enrichMessage({ message: head.text, cwd: god?.cwd ?? '' })
- .then((res) => { removeQueuedMessage(GOD_ID, head.id); enqueueMessage(GOD_ID, res.ok && res.prompt ? res.prompt : head.text); })
- .catch(() => { removeQueuedMessage(GOD_ID, head.id); enqueueMessage(GOD_ID, head.text); });
- } else {
- if (dispatch(GOD_ID, byId(GOD_ID)) && head.slack) void ensureSlackCard(head);
- }
- }
+ const head = messageQueues[a.id][0];
+ if (dispatch(a.id, a) && head.slack) void ensureSlackCard(head);
}
};
@@ -479,21 +456,16 @@ export function useHive(config: HarnessConfig | null): void {
// webhook server pushes each verified message here via IPC; enqueueing to
// GOD_ID lands it in Michael's queue exactly as if the user had typed it
// into the composer — effect #4 above then drains it to his PTY.
- //
- // For Slack-originated messages, a `#enrich` tag (case-insensitive) routes
- // to the enrich queue regardless of the global toggle; the tag is stripped
- // before dispatch. We also immediately ack in the triggering thread, and
- // stash the thread coords so the office can post its summary back later.
+ // We immediately ack in the triggering thread and stash the thread coords
+ // so the office can post its summary back later.
useEffect(() => {
if (!config?.onboardingComplete) return;
return window.cth.onSlackMessage((msg) => {
if (!msg?.text?.trim()) return;
- const raw = msg.text.trim();
- const enrich = /(^|\s)#enrich(\s|$)/i.test(raw);
- const text = raw.replace(/(^|\s)#enrich(\s|$)/i, ' ').trim(); // strip the tag
+ const text = msg.text.trim();
if (!text) return;
const slack = { channel: msg.channel, thread_ts: msg.thread_ts };
- useStore.getState().enqueueMessage(GOD_ID, text, { enrich, slack });
+ useStore.getState().enqueueMessage(GOD_ID, text, { slack });
// Immediate "queued" acknowledgement in the originating Slack thread.
void window.cth.slackReply({
channel: msg.channel,
diff --git a/src/renderer/src/scene/office/OfficeFloor.tsx b/src/renderer/src/scene/office/OfficeFloor.tsx
index 1e3a1917..45f66ad2 100644
--- a/src/renderer/src/scene/office/OfficeFloor.tsx
+++ b/src/renderer/src/scene/office/OfficeFloor.tsx
@@ -919,7 +919,7 @@ export function OfficeFloor() {
for (const [id, rt] of runtimes) {
if (id === god!.id) continue;
const a = agentById(id);
- if (!a || a.isAssistant) continue;
+ if (!a) continue;
// only relaxed workers perform — not someone mid-thought of real work
if (a.status !== 'idle' && a.status !== 'success') continue;
if (rt.brk?.chat || rt.brk?.chattingWith) continue;
diff --git a/src/renderer/src/store/store.ts b/src/renderer/src/store/store.ts
index bf206be3..d44f7d35 100644
--- a/src/renderer/src/store/store.ts
+++ b/src/renderer/src/store/store.ts
@@ -61,9 +61,6 @@ export interface Agent {
lastPrompt?: string;
/** the orchestrator ("god") agent — seated in Michael's room, runs the floor */
isGod?: boolean;
- /** Michael's prep assistant ("Dwight") — enriches prompts and forwards them to
- * Michael via the hive. Send-only: never receives inbox/broadcast mail. */
- isAssistant?: boolean;
/** When git isolation is enabled, the dedicated worktree path the agent runs
* in (its own `agent/<id>` branch); undefined for shared-cwd agents. */
worktreePath?: string;
@@ -86,18 +83,12 @@ export interface FeedEntry {
/** A message the user has parked for an agent while its terminal was busy.
* Queued messages are drained one at a time when the agent next goes idle (see
- * useHive's flush loop). For Michael's queue the enrich toggle decides whether
- * each one is sent through headless Haiku enrichment or typed in directly. */
+ * useHive's flush loop). */
export interface QueuedMessage {
id: string;
text: string;
/** epoch ms the message was queued — drives ordering and the "queued 2m ago" hint */
ts: number;
- /** True while headless Haiku enrichment is in flight. Prevents double-dispatch;
- * the message stays visible in the queue with an 'enriching…' indicator. */
- enriching?: boolean;
- /** Slack-originated: route to the enrich queue regardless of the global toggle. */
- enrich?: boolean;
/** Slack-originated: thread coordinates so the office can reply in-thread. */
slack?: { channel: string; thread_ts: string };
}
@@ -134,11 +125,6 @@ interface State {
* Lets the user keep "talking" to a busy agent: messages park here and are
* drained to the terminal one-by-one once the agent is free. */
messageQueues: Record<string, QueuedMessage[]>;
- /** Global toggle: when on, messages queued for Michael are routed through the
- * assistant ("Dwight") to be enriched with context before reaching Michael;
- * when off, they're typed straight into Michael. */
- enrichEnabled: boolean;
- setEnrichEnabled: (on: boolean) => void;
/** Per-agent tool-call count this session — a lightweight activity/usage proxy
* shown in the command center (interactive sessions don't expose billed $). */
toolCounts: Record<string, number>;
@@ -178,14 +164,10 @@ interface State {
* composer) doesn't eat what the user was typing. */
drafts: Record<string, string>;
setDraft: (agentId: string, text: string) => void;
- /** Park a message for an agent. Returns nothing; the flush loop delivers it.
- * `meta` carries optional Slack routing context (enrich flag + reply thread). */
- enqueueMessage: (agentId: string, text: string, meta?: { enrich?: boolean; slack?: { channel: string; thread_ts: string } }) => void;
+ /** Park a message for an agent. Returns nothing; the flush loop delivers it. */
+ enqueueMessage: (agentId: string, text: string, meta?: { slack?: { channel: string; thread_ts: string } }) => void;
/** Drop a single queued message (user removed it, or it was just delivered). */
removeQueuedMessage: (agentId: string, messageId: string) => void;
- /** Mark a queued message as enriching (in-flight Haiku call). Prevents the
- * drain from double-dispatching it while enrichment is in progress. */
- markMessageEnriching: (agentId: string, messageId: string) => void;
/** Clear an agent's entire pending queue. */
clearQueue: (agentId: string) => void;
setAddAgentOpen: (open: boolean) => void;
@@ -206,7 +188,6 @@ const LS_ARCHIVED = 'cth.archivedAgents';
const LS_RESTORABLE = 'cth.restorableAgents';
const LS_SELECTED = 'cth.selectedId';
const LS_QUEUES = 'cth.messageQueues';
-const LS_ENRICH = 'cth.enrichEnabled';
// Fields that are large or transient — not worth persisting across reloads.
// contextTokens/contextLimit describe a LIVE session; persisting them showed a
@@ -360,9 +341,6 @@ const initialArchivedAgents = loadPersistedArchived();
const initialRestorableAgents = loadPersistedRestorable();
const initialSelectedId = loadPersistedSelectedId(initialAgents);
const initialQueues = loadPersistedQueues();
-const initialEnrichEnabled: boolean = (() => {
- try { return window.localStorage.getItem(LS_ENRICH) === '1'; } catch { return false; }
-})();
let queuedSeq = 0;
/** Process-unique id for a queued message (timestamp + counter avoids collisions
@@ -385,11 +363,6 @@ export const useStore = create<State>((set) => ({
sidebarTab: initialSidebarTab,
godStatus: 'booting',
messageQueues: initialQueues,
- enrichEnabled: initialEnrichEnabled,
- setEnrichEnabled: (on) => {
- try { window.localStorage.setItem(LS_ENRICH, on ? '1' : '0'); } catch { /* noop */ }
- set({ enrichEnabled: on });
- },
toolCounts: {},
bumpToolCount: (id) =>
set((s) => ({ toolCounts: { ...s.toolCounts, [id]: (s.toolCounts[id] ?? 0) + 1 } })),
@@ -486,7 +459,6 @@ export const useStore = create<State>((set) => ({
if (!trimmed) return s;
const msg: QueuedMessage = {
id: newQueuedId(), text: trimmed, ts: Date.now(),
- ...(meta?.enrich ? { enrich: true } : {}),
...(meta?.slack ? { slack: meta.slack } : {})
};
const messageQueues = { ...s.messageQueues, [agentId]: [...(s.messageQueues[agentId] ?? []), msg] };
@@ -502,16 +474,6 @@ export const useStore = create<State>((set) => ({
persistQueues(messageQueues);
return { messageQueues };
}),
- markMessageEnriching: (agentId, messageId) =>
- set((s) => {
- const q = s.messageQueues[agentId];
- if (!q) return s;
- const idx = q.findIndex((m) => m.id === messageId);
- if (idx === -1) return s;
- const updated = [...q];
- updated[idx] = { ...updated[idx], enriching: true };
- return { messageQueues: { ...s.messageQueues, [agentId]: updated } };
- }),
clearQueue: (agentId) =>
set((s) => {
if (!s.messageQueues[agentId]?.length) return s;
@@ -526,10 +488,10 @@ export const useStore = create<State>((set) => ({
const agents = s.agents.filter((a) => !a.ptyId || live.has(a.ptyId));
if (agents.length === s.agents.length) return s;
// Workers whose terminal died with the previous session become restorable
- // (full spawn recipe retained) instead of silently vanishing. God and the
- // assistant are excluded — they auto-respawn at boot.
+ // (full spawn recipe retained) instead of silently vanishing. God is excluded
+ // — auto-respawns at boot.
const dead = s.agents.filter(
- (a) => a.ptyId && !live.has(a.ptyId) && !a.isGod && !a.isAssistant
+ (a) => a.ptyId && !live.has(a.ptyId) && !a.isGod
);
const restorableAgents = [
...s.restorableAgents.filter((r) => !dead.some((d) => d.id === r.id)),
diff --git a/src/shared/claudeCommands.ts b/src/shared/claudeCommands.ts
index 6cff8afa..336dbcab 100644
--- a/src/shared/claudeCommands.ts
+++ b/src/shared/claudeCommands.ts
@@ -126,7 +126,7 @@ export const COMMAND_GROUPS: CmdGroup[] = [
title: 'AUTOMATION (HEADLESS)',
items: [
{ cmd: 'claude -p "your prompt"', kind: 'cli', desc: 'Print mode: run one prompt non-interactively and exit.', usage: 'cat log | claude -p "summarize"' },
- { cmd: 'claude -p "..." --output-format json', kind: 'cli', desc: 'Headless with structured JSON (result, usage, cost) — powers enrichment.' },
+ { cmd: 'claude -p "..." --output-format json', kind: 'cli', desc: 'Headless with structured JSON (result, usage, cost).' },
{ cmd: 'claude -p "..." --output-format stream-json', kind: 'cli', desc: 'Streaming JSON events for live consumption.' },
{ cmd: 'claude -p "..." --json-schema <schema>', kind: 'cli', desc: 'Force the headless result to match a JSON Schema.' },
{ cmd: 'claude --append-system-prompt "..."', kind: 'cli', desc: 'Append extra instructions to the default system prompt.' }