an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions
HTML agent-harnessagent-orchestrationagentsai-agentsautonomous-agentsclaude-codecodexcoding-agentsdesktop-appdeveloper-toolselectrongemini-cliharnessharness-engineeringlocal-firstmemorymulti-agentopencodeorchestrationtypescript
feat(providers): selectable engine + hive/provider picker UI
Chaitanya Giri8866538cfb3c
diff --git a/docs/TESTING-since-v0.2.7.md b/docs/TESTING-since-v0.2.7.mdindex ab1efa5d..032df828 100644--- a/docs/TESTING-since-v0.2.7.md+++ b/docs/TESTING-since-v0.2.7.md@@ -117,7 +117,7 @@ browse, toggle by engine, and download a manifest from to import back into the a## C. Selectable agent engines + per-hire capabilities**What it is.** Michael's underlying engine is selectable (Claude Code / Codex / Antigravity, plus-proxy-bridged `claw` and `qwen`), pickable at onboarding and changeable later; and an imported hire+proxy-bridged `qwen`), pickable at onboarding and changeable later; and an imported hirecan declare bundled skills / MCP servers that surface a consent UI before anything is enabled.**Prerequisites:** none to see the pickers. Running a non-Claude engine requires that engine's CLI@@ -143,7 +143,7 @@ installed (see feature G — the installer now runs visibly if the binary is mis**Expected result:**- ✓ Engine options come from `AGENT_PROVIDER_PRESETS` (`src/shared/agentProvider.ts`):- `claude`, `codex`, `antigravity`, `claw` (proxy → Anthropic-shaped API via `ANTHROPIC_BASE_URL`),+ `claude`, `codex`, `antigravity`,`qwen` (proxy → OpenAI-shaped API via `OPENAI_BASE_URL`), `custom`.- ✓ Changing the engine restarts Michael (no cross-engine resume) after the confirm dialog.- ✓ Hire capabilities show a graded consent UI: **safe, read-only** MCP servers are pre-enabled (bluediff --git a/src/main/config.ts b/src/main/config.tsindex 16a3ec25..87390f80 100644--- a/src/main/config.ts+++ b/src/main/config.ts@@ -114,8 +114,17 @@ export interface KnowledgeGraphConfig {export interface HarnessConfig {/** Has the user completed the first-run onboarding? */onboardingComplete: boolean;+ /** Self-identified audience picked on the first onboarding screen. Drives the+ * copy register everywhere onboarding explains itself: 'technical' shows CLI /+ * flag lingo, 'non-technical' explains each concept in plain language. Unset =+ * not yet chosen (treated as technical for any incidental copy). */+ audience?: 'technical' | 'non-technical';/** Folder where the harness keeps its own state (agent metadata, logs). */harnessHome: string | null;+ /** Recently-opened hive home folders (most-recent first), surfaced by the+ * launch-time hive picker. Maintained by writeConfig whenever harnessHome is+ * set (onboarding finish, changeHome). Capped to a handful. */+ recentHives?: string[];/** Folders the user registered during onboarding (used as quick-picks). */registeredRepos: string[];/** When true, new agents are spawned with --permission-mode bypassPermissions. */@@ -126,7 +135,7 @@ export interface HarnessConfig {defaultModel?: string;/** Which provider powers the GOD orchestrator ("Michael"). The persona is* constant; only its engine is selectable. Default 'claude'. Eligible providers- * are those that can receive inbox (claude/codex/antigravity/claw/qwen). */+ * are those that can receive inbox (claude/codex/antigravity/qwen). */godProvider?: AgentProvider;/** The model GOD runs on. Unset falls back to the provider preset's* `recommendedOrchestratorModel`, then MODEL_GOD. Default 'claude-opus-4-8'. */@@ -269,6 +278,7 @@ export interface HarnessConfig {const DEFAULTS: HarnessConfig = {onboardingComplete: false,harnessHome: null,+ recentHives: [],registeredRepos: [],autoMode: true,defaultCommand: 'claude',@@ -332,6 +342,13 @@ export function readConfig(): HarnessConfig {export function writeConfig(patch: Partial<HarnessConfig>): HarnessConfig {const current = readConfig();const next: HarnessConfig = { ...current, ...patch };+ // Track recently-opened hive homes so the launch picker can list them. Any write+ // that SETS harnessHome (onboarding finish, changeHome) promotes it to the front,+ // deduped and capped. Skips empty/null so a clear doesn't pollute the list.+ if (typeof patch.harnessHome === 'string' && patch.harnessHome) {+ const prior = current.recentHives ?? [];+ next.recentHives = [patch.harnessHome, ...prior.filter((h) => h !== patch.harnessHome)].slice(0, 8);+ }const p = configPath();mkdirSync(dirname(p), { recursive: true });writeFileSync(p, JSON.stringify(next, null, 2), 'utf8');diff --git a/src/main/hive.ts b/src/main/hive.tsindex a6de8d77..93dcc2b5 100644--- a/src/main/hive.ts+++ b/src/main/hive.ts@@ -230,7 +230,7 @@ export class HiveManager {const root = this.root();return root ? join(root, 'bin', 'cth-hook.cjs') : null;}- /** The proxy-bridge sidecar (claw/qwen). Pure-Node loopback reverse-proxy that+ /** The proxy-bridge sidecar (qwen). Pure-Node loopback reverse-proxy that* observes a hookless CLI's LLM traffic and synthesizes the same HIVE_SOCK* payloads the hook shims emit. Written in ensureHive alongside cth-hook.cjs. */private proxyShimPath(): string | null {@@ -283,7 +283,7 @@ export class HiveManager {// on every bootstrap so it tracks code changes.mkdirSync(join(root, 'bin'), { recursive: true });writeFileSync(this.shimPath()!, HOOK_SHIM, 'utf8');- // The proxy-bridge sidecar for hookless CLIs (claw/qwen). Same refresh policy.+ // The proxy-bridge sidecar for hookless CLIs (qwen). Same refresh policy.writeFileSync(this.proxyShimPath()!, PROXY_BRIDGE_SHIM, 'utf8');if (!existsSync(join(root, '.git'))) {@@ -396,7 +396,7 @@ export class HiveManager {const preArgs: string[] = [];// Dispatch on the structured bridge descriptor (the foundation's `bridgeOf`// derives {kind:'hooks'} from the legacy `hookBridge` for agy/codex, and- // returns the explicit {kind:'proxy'} for claw/qwen). Two ways a hookless CLI+ // returns the explicit {kind:'proxy'} for qwen). Two ways a hookless CLI// becomes a hive citizen:// - 'hooks' → install a config-file hook shim (agy translator / codex verbatim).// - 'proxy' → spawn a loopback reverse-proxy sidecar that observes the CLI's@@ -630,7 +630,7 @@ export class HiveManager {}/**- * W1 — start a proxy-bridge sidecar for a hookless proxy-tier agent (claw/qwen).+ * W1 — start a proxy-bridge sidecar for a hookless proxy-tier agent (qwen).* Spawns `<root>/bin/hive-proxy.cjs` under Node, which binds a loopback port and* reports it back as a one-line `{"port":N}` on stdout. Resolves the bound port* (or 0 on failure, so the caller degrades gracefully without redirecting the@@ -892,7 +892,7 @@ export class HiveManager {}continue;}- // 1d — proxy-tier providers (claw/qwen) CAN receive inbox, but only via a+ // 1d — proxy-tier providers (qwen) CAN receive inbox, but only via a// SYNTHESIZED Stop, which just advances the cursor — the sidecar observes the// CLI's stream and can't inject a drain reason back into its turn. So the real// mail rides the terminal work-order path verbatim, exactly like a hookless@@ -1491,7 +1491,7 @@ process.stdin.on('end', () => {`;// ─── proxy-bridge sidecar (written to <hive>/bin/hive-proxy.cjs) ─────────────-// One per proxy-tier agent (claw/qwen). A dependency-free, loopback-only reverse+// One per proxy-tier agent (qwen). A dependency-free, loopback-only reverse// proxy: the agent's CLI is pointed at this (via ANTHROPIC_BASE_URL/OPENAI_BASE_URL),// and it forwards every request to the user's real upstream UNCHANGED (headers,// body, streaming). It TEES each response to synthesize the same HIVE_SOCK payloadsdiff --git a/src/main/hooks.ts b/src/main/hooks.tsindex 16373a0f..70b1aef0 100644--- a/src/main/hooks.ts+++ b/src/main/hooks.ts@@ -38,7 +38,7 @@ interface HookPayload {* permission request. Used to tell "needs you" from "just done / lingering". */message?: string;/** CostSample payloads only (synthesized by the proxy-bridge sidecar for- * claw/qwen). Raw token counts for one response, fed to the cost ledger. */+ * qwen). Raw token counts for one response, fed to the cost ledger. */model?: string;input?: number;output?: number;@@ -142,7 +142,7 @@ export class HookServer {// (Lane A #6.6a). Cheap: recordSession writes only when it changes.if (agentId && p.session_id) this.hive.recordSession(agentId, p.session_id);- // CostSample — synthesized by the proxy-bridge sidecar (claw/qwen) on every+ // CostSample — synthesized by the proxy-bridge sidecar (qwen) on every// response with usage. Persist it to the SAME cost ledger as Claude's OTel// path, keyed by the synthesized session_id, then return early so cost stays// OUT of the Claude-only OTel/breaker/drain paths below. `usd` is the fallbackdiff --git a/src/main/index.ts b/src/main/index.tsindex ae5bbee1..3fe86f47 100644--- a/src/main/index.ts+++ b/src/main/index.ts@@ -228,7 +228,7 @@ function teardownPty(id: string): void {ptyToAgent.delete(id);// Drop breaker state so a dead agent can't leak/zombie a tripped level.try { breaker.forget(agentId); } catch { /* best-effort */ }- // W1 — kill this agent's proxy-bridge sidecar (claw/qwen), if any, so a dead+ // W1 — kill this agent's proxy-bridge sidecar (qwen), if any, so a dead// PTY never leaves an orphan loopback listener. No-op for non-proxy agents.try { hive.stopProxyBridge(agentId); } catch (e) { console.error('[hive] stopProxyBridge failed:', e); }if (hive.enabled()) {diff --git a/src/preload/index.ts b/src/preload/index.tsindex 40ba4ea5..56af8a2c 100644--- a/src/preload/index.ts+++ b/src/preload/index.ts@@ -163,7 +163,12 @@ export interface CircuitBreakerConfig {export interface HarnessConfig {onboardingComplete: boolean;+ /** Onboarding audience ('technical' | 'non-technical'); drives onboarding copy.+ * Mirrors src/main/config.ts. */+ audience?: 'technical' | 'non-technical';harnessHome: string | null;+ /** Recently-opened hive home folders (most-recent first). Mirrors src/main/config.ts. */+ recentHives?: string[];registeredRepos: string[];autoMode: boolean;defaultCommand: string;diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsxindex c6c26966..7a00cd2f 100644--- a/src/renderer/src/App.tsx+++ b/src/renderer/src/App.tsx@@ -10,6 +10,7 @@ import { AgentStrip } from '@/components/AgentStrip';import { AddAgentModal } from '@/components/AddAgentModal';import { MichaelBooting } from '@/components/MichaelBooting';import { OnboardingWizard } from '@/components/OnboardingWizard';+import { HivePicker } from '@/components/HivePicker';import { QuitWarningModal, type ClosingTimeState } from '@/components/QuitWarningModal';import { SettingsModal } from '@/components/SettingsModal';import { PixelPanel } from '@/components/PixelPanel';@@ -39,6 +40,19 @@ export function App() {const setSidebarWidth = useStore(s => s.setSidebarWidth);const [config, setConfig] = useState<HarnessConfig | null>(null);+ // Whether the user has passed the launch-time hive picker this session. Starts+ // true (skip the picker) right after a hive SWITCH — changeHome relaunches and+ // leaves a one-shot localStorage flag so we don't bounce back onto the picker for+ // the hive we just chose. Also set true on onboarding completion (below).+ const [hiveOpened, setHiveOpened] = useState<boolean>(() => {+ try {+ if (window.localStorage.getItem('cth.skipHivePickerOnce')) {+ window.localStorage.removeItem('cth.skipHivePickerOnce');+ return true;+ }+ } catch { /* localStorage unavailable — show the picker */ }+ return false;+ });const [settingsOpen, setSettingsOpen] = useState(false);const [quitWarn, setQuitWarn] = useState<{ ptyCount: number } | null>(null);const [closing, setClosing] = useState<ClosingTimeState | null>(null);@@ -112,8 +126,11 @@ export function App() {setClosing(null);};- // The hive: god-agent bootstrap, hook-driven avatars, idle-agent waking.- useHive(config);+ // The hive: god-agent bootstrap, hook-driven avatars, idle-agent waking. Held+ // off until the user opens a hive in the launch picker (passing null no-ops the+ // hook) so Michael doesn't boot against the current home while the user may be+ // about to switch to a different one.+ useHive(hiveOpened ? config : null);// Pre-warm a persistent terminal for every live agent so its output is// buffered from spawn. Switching agents then re-attaches an already-rendered@@ -165,7 +182,15 @@ export function App() {}if (!config.onboardingComplete) {- return <OnboardingWizard onComplete={(next) => setConfig(next)} />;+ // Just-onboarded users go straight into the hive they set up — skip the picker.+ return <OnboardingWizard onComplete={(next) => { setConfig(next); setHiveOpened(true); }} />;+ }++ // Launch-time hive picker: on reopen, let the user open their current hive,+ // switch to a recent one, or open/create another. Skipped right after onboarding+ // and right after a switch-relaunch (see hiveOpened init).+ if (!hiveOpened) {+ return <HivePicker config={config} onOpenCurrent={() => setHiveOpened(true)} />;}return (@@ -308,7 +333,11 @@ export function App() {<AgentStrip config={config} />{addAgentOpen && (- <AddAgentModal onClose={() => setAddAgentOpen(false)} config={config} />+ <AddAgentModal+ onClose={() => setAddAgentOpen(false)}+ config={config}+ onConfigChange={setConfig}+ />)}{settingsOpen && (diff --git a/src/renderer/src/components/AddAgentModal.tsx b/src/renderer/src/components/AddAgentModal.tsxindex c6e23569..ded1cca9 100644--- a/src/renderer/src/components/AddAgentModal.tsx+++ b/src/renderer/src/components/AddAgentModal.tsx@@ -3,6 +3,7 @@ import { PixelPanel } from './PixelPanel';import { PixelButton } from './PixelButton';import { SpritePortrait } from './SpritePortrait';import { Icon } from './Icon';+import { ProviderLogo } from './ProviderLogo';import { useStore, type Agent } from '@/store/store';import { OFFICE_CAST, DEFAULT_CHARACTER, type OfficeCharacterName } from '@/scene/office/cast';import { type AccentColorName } from '@/design/tokens';@@ -22,6 +23,70 @@ import {const ACCENTS: AccentColorName[] = ['coral', 'mint', 'sky', 'lemon', 'lilac', 'peach'];+// One-click briefing templates — fill Description + Goal with a sharp, ready-to-run+// role so a user isn't staring at a blank field (item 7).+const DESCRIPTION_TEMPLATES: { label: string; description: string; goal: string }[] = [+ {+ label: 'Repo janitor',+ description: 'keeps the codebase tidy and healthy',+ goal: 'Continuously hunt for dead code, lint errors, flaky tests, and small safe refactors. Fix the safe ones and leave a note for anything risky. Never change behavior without flagging it.'+ },+ {+ label: 'Docs writer',+ description: 'keeps docs in sync with the code',+ goal: 'Watch for code changes that outdate the README and docs, then update them. Write for newcomers and prefer concrete examples over prose.'+ },+ {+ label: 'Bug triager',+ description: 'investigates and root-causes bugs',+ goal: 'For each reported issue: reproduce it, find the root cause, then propose a minimal fix with evidence. No fixes without a confirmed root cause.'+ },+ {+ label: 'Research assistant',+ description: 'gathers and summarizes information',+ goal: 'Research the questions you are given across multiple sources, verify the key claims, and return a concise, cited summary.'+ },+ {+ label: 'Release manager',+ description: 'prepares and ships releases',+ goal: 'Track what has shipped since the last release, update the changelog and version, and draft clear release notes.'+ }+];++// Copy-paste prompt the user hands to any AI to generate a hire manifest. It pins+// the exact JSON shape the importer accepts and ends with a fill-in section so the+// user adds their own details (item 7). Kept in sync with the HireManifest schema+// (src/shared/hire.ts) — provider allowlist is claude | codex | antigravity.+const HIRE_PROMPT = `You are designing a "hire" — a ready-to-spawn AI agent for Munder Difflin, an app that runs a team of CLI coding agents. Output ONE JSON object (a hire manifest) and nothing else.++Make the agent genuinely useful: give it a sharp role, a concrete standing goal, and a description that makes it behave like an expert operator of its CLI engine (Claude Code, Codex, or Antigravity/Gemini). It should know how to use the terminal, read and edit files, run and inspect commands, lean on available skills and MCP tools, keep notes in memory, and work autonomously toward its goal without hand-holding.++Return EXACTLY this shape (omit optional fields you don't need; keep the spec string verbatim):++{+ "spec": "munder-difflin/hire@1",+ "name": "Jim",+ "description": "one-line role — what this agent is for",+ "goal": "standing directive injected on every prompt — specific and outcome-oriented",+ "provider": "claude",+ "model": "claude-opus-4-8[1m]",+ "capabilities": ["code-review", "docs"],+ "isolate": false,+ "tokenCap": 2000000,+ "author": "your name"+}++Rules:+- "provider" MUST be one of: claude | codex | antigravity. "model" must be a real model id for that provider (e.g. claude-opus-4-8[1m], gpt-5-codex, "Gemini 3.1 Pro (High)").+- Do NOT include shell commands or any flags beyond these fields.+- Make "description" + "goal" concrete enough that the agent knows exactly what to do on its first turn.++--- ADD YOUR DETAILS BELOW (the AI should use these) ---+Role / what I want this agent to do:+Preferred engine (claude / codex / antigravity), if any:+Repos, tools, style, or constraints to respect:+`;+// The Add Agent form has 11+ fields, so it's grouped into sections the user jumps// between via a left sidebar index (one section shown at a time). Engine carries// Command (it's the spawn command assembled from provider+model+flags); Workspace@@ -46,9 +111,12 @@ function uniqueId(name: string): string {export interface AddAgentModalProps {onClose: () => void;config: HarnessConfig;+ /** Lift config changes (e.g. a project registered from this modal) back up to+ * App so the rest of the UI — and the next time this modal opens — sees them. */+ onConfigChange?: (config: HarnessConfig) => void;}-export function AddAgentModal({ onClose, config }: AddAgentModalProps) {+export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModalProps) {const addAgent = useStore(s => s.addAgent);// A validated hire manifest (deep link / file import) seeds the form. Manifests// NEVER auto-spawn — the human reviews every field (esp. the command) first.@@ -76,6 +144,9 @@ export function AddAgentModal({ onClose, config }: AddAgentModalProps) {const [character, setCharacter] = useState<OfficeCharacterName>(knownCharacter(pendingHire?.character));const [accent, setAccent] = useState<AccentColorName>(knownAccent(pendingHire?.accent));const [cwd, setCwd] = useState<string>(config.registeredRepos[0] ?? '');+ // Local mirror of the registered projects so one added from here shows as a+ // quick-pick immediately (the `config` prop is a snapshot taken at open time).+ const [repos, setRepos] = useState<string[]>(config.registeredRepos);const [provider, setProvider] = useState<AgentProvider>(pendingHire?.provider ?? initialProvider);const [model, setModel] = useState<string | undefined>(pendingHire ? pendingHire.model : initialModel@@ -119,6 +190,16 @@ export function AddAgentModal({ onClose, config }: AddAgentModalProps) {const [busy, setBusy] = useState(false);// Which config section the left sidebar index is showing.const [section, setSection] = useState<SectionKey>('identity');+ // "Generate a hire with AI" helper — reveals a copy-paste prompt (item 7).+ const [showHirePrompt, setShowHirePrompt] = useState(false);+ const [copiedPrompt, setCopiedPrompt] = useState(false);+ const copyHirePrompt = async () => {+ try {+ await navigator.clipboard.writeText(HIRE_PROMPT);+ setCopiedPrompt(true);+ setTimeout(() => setCopiedPrompt(false), 1500);+ } catch { /* clipboard blocked — the textarea below is selectable as a fallback */ }+ };// Zero-step resume: when a session id is entered, look up the cwd it originally// ran in (from the transcript) and pre-fill the Folder so the user doesn't have@@ -139,6 +220,28 @@ export function AddAgentModal({ onClose, config }: AddAgentModalProps) {else if (res.error !== 'cancelled') setError(res.error);};+ /** Register `path` as a project (folder quick-pick) right now: dedupe-prepend,+ * select it, persist to config, and lift the change up so it sticks. */+ const registerProject = async (path: string) => {+ const p = path.trim();+ if (!p) return;+ const next = [p, ...repos.filter((r) => r !== p)];+ setRepos(next);+ setCwd(p);+ try {+ const updated = await window.cth.updateConfig({ registeredRepos: next });+ onConfigChange?.(updated);+ } catch { /* best-effort persist */ }+ };++ /** Pick a brand-new folder and register it as a project in one step. */+ const addProject = async () => {+ setError(undefined);+ const res = await window.cth.chooseFolder();+ if (res.ok) await registerProject(res.path);+ else if (res.error !== 'cancelled') setError(res.error);+ };+/** Apply an imported manifest to every form field (file import path). The* command is rebuilt locally from the provider preset + validated flags — a* manifest can never inject the spawn binary. Import never spawns. */@@ -240,9 +343,11 @@ export function AddAgentModal({ onClose, config }: AddAgentModalProps) {// Remember the folder for the next hire: promote it to the front of the// registeredRepos quick-picks (the modal's default cwd) so back-to-back// hires land in the same project without re-picking.- if (cwd && config.registeredRepos[0] !== cwd) {- const repos = [cwd, ...config.registeredRepos.filter((r) => r !== cwd)];- void window.cth.updateConfig({ registeredRepos: repos }).catch(() => { /* best-effort */ });+ if (cwd && repos[0] !== cwd) {+ const nextRepos = [cwd, ...repos.filter((r) => r !== cwd)];+ void window.cth.updateConfig({ registeredRepos: nextRepos })+ .then((updated) => onConfigChange?.(updated))+ .catch(() => { /* best-effort */ });}// A hire manifest may carry a per-agent token budget — apply it to the// same agentTokenCaps map the Command Center card writes.@@ -478,10 +583,27 @@ export function AddAgentModal({ onClose, config }: AddAgentModalProps) {{section === 'workspace' && (<>- <Row label="Folder">- {config.registeredRepos.length > 0 && (+ <Row label="Project">+ <div style={{ display: 'flex', alignItems: 'baseline', justifyContent: 'space-between', gap: 8, marginBottom: 6 }}>+ <span style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>+ {repos.length > 0 ? 'Pick a project, or add a new one:' : 'No projects yet — add one to get started:'}+ </span>+ <button+ onClick={addProject}+ title="Pick a folder and register it as a project"+ style={{+ flexShrink: 0, padding: '2px 8px 1px', 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)',+ display: 'inline-flex', alignItems: 'center', gap: 4+ }}+ >+ <Icon name="plus" /> add project+ </button>+ </div>+ {repos.length > 0 && (<div style={{ display: 'flex', gap: 6, flexWrap: 'wrap', marginBottom: 6 }}>- {config.registeredRepos.map((r) => (+ {repos.map((r) => (<buttonkey={r}onClick={() => setCwd(r)}@@ -516,6 +638,21 @@ export function AddAgentModal({ onClose, config }: AddAgentModalProps) {</span></PixelButton></div>+ {cwd.trim() && !repos.includes(cwd.trim()) && (+ <button+ onClick={() => registerProject(cwd)}+ title="Save this folder to your projects so it's a one-click pick next time"+ style={{+ alignSelf: 'flex-start', marginTop: 2,+ padding: '2px 8px 1px', border: 'none', cursor: 'pointer',+ background: 'var(--cth-mint-light)', boxShadow: 'inset 0 0 0 1px var(--cth-ink-700)',+ fontFamily: 'var(--cth-font-ui)', fontSize: 12, color: 'var(--cth-ink-900)',+ display: 'inline-flex', alignItems: 'center', gap: 4+ }}+ >+ <Icon name="plus" /> save as project+ </button>+ )}</Row><label style={{ display: 'flex', gap: 8, alignItems: 'center', cursor: resuming ? 'not-allowed' : 'pointer', opacity: resuming ? 0.5 : 1 }}>@@ -579,9 +716,11 @@ export function AddAgentModal({ onClose, config }: AddAgentModalProps) {? 'inset 0 0 0 2px var(--cth-ink-900)': 'inset 0 0 0 1px var(--cth-ink-700)',fontFamily: 'var(--cth-font-ui)', fontSize: 13,- color: 'var(--cth-ink-900)', cursor: 'pointer', border: 'none'+ color: 'var(--cth-ink-900)', cursor: 'pointer', border: 'none',+ display: 'inline-flex', alignItems: 'center', gap: 6}}>+ <ProviderLogo provider={p.id} size={14} />{p.label}</button>);@@ -645,6 +784,27 @@ export function AddAgentModal({ onClose, config }: AddAgentModalProps) {{section === 'briefing' && (<>+ <Row label="Templates">+ <div style={{ display: 'flex', gap: 6, flexWrap: 'wrap' }}>+ {DESCRIPTION_TEMPLATES.map((t) => (+ <button+ key={t.label}+ onClick={() => { setDescription(t.description); setGoal(t.goal); }}+ title={t.goal}+ style={{+ padding: '3px 8px 1px',+ background: 'var(--cth-cream-100)',+ boxShadow: 'inset 0 0 0 1px var(--cth-ink-700)',+ fontFamily: 'var(--cth-font-ui)', fontSize: 13,+ color: 'var(--cth-ink-900)', cursor: 'pointer', border: 'none'+ }}+ >+ {t.label}+ </button>+ ))}+ </div>+ </Row>+<Row label="Description"><inputvalue={description}@@ -680,6 +840,58 @@ export function AddAgentModal({ onClose, config }: AddAgentModalProps) {</div>)}+ {/* Import-hire explainer + AI prompt generator (item 7) */}+ <div style={{+ padding: '8px 10px',+ background: 'var(--cth-cream-100)',+ boxShadow: 'inset 0 0 0 1px var(--cth-ink-300)',+ display: 'flex', flexDirection: 'column', gap: 6+ }}>+ <div style={{ display: 'flex', alignItems: 'baseline', justifyContent: 'space-between', gap: 8, flexWrap: 'wrap' }}>+ <span style={{ fontSize: 12, color: 'var(--cth-ink-700)', lineHeight: '17px' }}>+ <strong>Import hire</strong> loads a ready-made agent from a <code style={{ fontFamily: 'var(--cth-font-mono)' }}>.json</code> manifest —+ it fills in every field below for you to review. Nothing spawns until you hit <em>spawn</em>.+ </span>+ <button+ onClick={() => setShowHirePrompt((v) => !v)}+ style={{+ flexShrink: 0,+ padding: '2px 8px 1px', border: 'none', cursor: 'pointer',+ background: showHirePrompt ? 'var(--cth-lemon-light)' : '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)'+ }}+ >+ {showHirePrompt ? 'hide AI prompt' : 'generate one with AI…'}+ </button>+ </div>+ {showHirePrompt && (+ <div style={{ display: 'flex', flexDirection: 'column', gap: 6 }}>+ <span style={{ fontSize: 12, color: 'var(--cth-ink-500)', lineHeight: '16px' }}>+ Copy this into Claude/ChatGPT/Gemini, fill in the details at the bottom, then save+ its JSON reply as a <code style={{ fontFamily: 'var(--cth-font-mono)' }}>.json</code> file and import it here.+ </span>+ <textarea+ readOnly+ value={HIRE_PROMPT}+ onFocus={(e) => e.currentTarget.select()}+ rows={10}+ style={{+ ...inputStyle,+ width: '100%',+ fontFamily: 'var(--cth-font-mono)', fontSize: 12, lineHeight: '16px',+ resize: 'vertical', background: 'var(--cth-paper-100)'+ }}+ />+ <div>+ <PixelButton variant="secondary" size="sm" onClick={copyHirePrompt}>+ {copiedPrompt ? 'copied ✓' : 'copy prompt'}+ </PixelButton>+ </div>+ </div>+ )}+ </div>+<div style={{ display: 'flex', gap: 8, justifyContent: 'flex-end', marginTop: 4 }}><PixelButton variant="secondary" size="md" onClick={importHire} disabled={busy} title="Import a hire manifest (.json)">import hire…diff --git a/src/renderer/src/components/CommandCenterPanel.tsx b/src/renderer/src/components/CommandCenterPanel.tsxindex 846b4465..1574c533 100644--- a/src/renderer/src/components/CommandCenterPanel.tsx+++ b/src/renderer/src/components/CommandCenterPanel.tsx@@ -498,7 +498,10 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {</span>)}</div>- {isClaudeProvider(inferAgentProvider(a.command, a.provider)) ? <div style={{ display: 'flex', alignItems: 'center', gap: 6 }}>+ {/* Non-god agents get the per-agent model picker + restart controls here.+ The GOD agent's model lives in the engine row below (provider+model+apply),+ so we DON'T render this second selector for it — one model picker, not two. */}+ {!a.isGod && (isClaudeProvider(inferAgentProvider(a.command, a.provider)) ? <div style={{ display: 'flex', alignItems: 'center', gap: 6, flexWrap: 'wrap' }}><Selectvalue={a.model ?? ''}disabled={restarting === a.id}@@ -509,11 +512,7 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {))}</Select><span style={{ fontSize: 11, color: 'var(--cth-ink-500)' }}>- {restarting === a.id- ? 'restarting…'- : isClaudeProvider(inferAgentProvider(a.command, a.provider))- ? 'model (restarts agent)'- : `${inferAgentProvider(a.command, a.provider)} · model (restarts agent)`}+ {restarting === a.id ? 'restarting…' : 'model (restarts agent)'}</span>{/* Restart & Continue — kill + respawn keeping the SAME model andresuming the prior conversation (--resume). Use this to redraw a@@ -534,7 +533,7 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {<div style={{ fontSize: 11, color: 'var(--cth-ink-500)' }}>provider: {inferAgentProvider(a.command, a.provider)}</div>- )}+ ))}{a.isGod && (<div style={{ display: 'flex', alignItems: 'center', gap: 6, flexWrap: 'wrap' }}><span style={{ fontSize: 11, color: 'var(--cth-ink-500)', flexShrink: 0 }}>engine:</span>@@ -578,6 +577,18 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {>{restarting === a.id ? 'restarting…' : 'apply'}</PixelButton>+ {/* Redraw a garbled terminal without losing the thread (resume the+ SAME engine+model). Kept here since the god has no per-agent row above. */}+ <PixelButton+ variant="secondary"+ size="sm"+ 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">+ restart & continue+ </span>+ </PixelButton></div>)}</div>@@ -1004,7 +1015,10 @@ function HandbookTab() {// ─── small shared bits ───────────────────────────────────────────────────────function Scroll({ children }: { children: React.ReactNode }) {- return <div style={{ flex: 1, minHeight: 0, overflowY: 'auto', padding: 10, background: 'var(--cth-paper-200)' }}>{children}</div>;+ // minWidth:0 + overflowX:hidden keep wide children (native selects, long paths,+ // budget rows) from forcing a horizontal scrollbar in the narrow sidebar — they+ // wrap/shrink instead. Vertical scroll stays.+ return <div style={{ flex: 1, minWidth: 0, minHeight: 0, overflowY: 'auto', overflowX: 'hidden', padding: 10, background: 'var(--cth-paper-200)' }}>{children}</div>;}function Section({ title, children }: { title: string; children: React.ReactNode }) {@@ -1058,7 +1072,9 @@ function Select({ value, onChange, disabled, children }: {style={{padding: '3px 6px', background: 'var(--cth-paper-100)',border: 'none', boxShadow: 'inset 0 0 0 1px var(--cth-ink-700)',- fontFamily: 'var(--cth-font-ui)', fontSize: 12, color: 'var(--cth-ink-900)', cursor: 'pointer'+ fontFamily: 'var(--cth-font-ui)', fontSize: 12, color: 'var(--cth-ink-900)', cursor: 'pointer',+ // Never let a long option name push the sidebar wider than it is.+ minWidth: 0, maxWidth: '100%'}}>{children}</select>);diff --git a/src/renderer/src/components/HivePicker.tsx b/src/renderer/src/components/HivePicker.tsxnew file mode 100644index 00000000..1b24f49b--- /dev/null+++ b/src/renderer/src/components/HivePicker.tsx@@ -0,0 +1,184 @@+import { useState } from 'react';+import { PixelPanel } from './PixelPanel';+import { PixelButton } from './PixelButton';+import { Icon } from './Icon';+import type { HarnessConfig } from '@/store/config';++export interface HivePickerProps {+ config: HarnessConfig;+ /** Open the CURRENT harness home in-place (no relaunch). */+ onOpenCurrent: () => void;+}++// Set right before a hive SWITCH so App skips this picker once after the relaunch+// changeHome triggers — otherwise the user would land back on the picker for the+// hive they just chose. App.tsx reads + clears it on mount.+const SKIP_KEY = 'cth.skipHivePickerOnce';++function folderName(path: string): string {+ return path.split('/').filter(Boolean).pop() ?? path;+}++/**+ * HivePicker — the launch-time workspace selector. A "hive" is a harness home+ * folder: its own agents, memory, tasks, and history. On reopen the user can open+ * the hive they were in (fast, in-place), jump to a recent one, browse to an+ * existing folder, or start a new one. Switching to a DIFFERENT home goes through+ * changeHome('fresh'), which tears down services and relaunches against it — so+ * every switch is a clean process restart (cheap here, before any work is live).+ */+export function HivePicker({ config, onOpenCurrent }: HivePickerProps) {+ const current = config.harnessHome;+ const recents = (config.recentHives ?? []).filter((h) => h && h !== current);+ const [busy, setBusy] = useState<string | undefined>();+ const [error, setError] = useState<string | undefined>();++ // Open a hive. Same folder as the current one → just enter it (no relaunch).+ // A different folder → changeHome('fresh') re-points + relaunches the process.+ const openHive = async (path: string) => {+ if (!path) return;+ if (current && path === current) { onOpenCurrent(); return; }+ setError(undefined);+ setBusy(path);+ try {+ window.localStorage.setItem(SKIP_KEY, '1');+ const res = await window.cth.changeHome(path, 'fresh');+ // Success never returns (the process relaunches). A return means an error.+ if (!res.ok) {+ window.localStorage.removeItem(SKIP_KEY);+ setError(res.error ?? 'Could not open that folder.');+ setBusy(undefined);+ }+ } catch (e) {+ window.localStorage.removeItem(SKIP_KEY);+ setError(e instanceof Error ? e.message : String(e));+ setBusy(undefined);+ }+ };++ const browse = async () => {+ setError(undefined);+ const res = await window.cth.chooseFolder();+ if (res.ok) void openHive(res.path);+ else if (res.error !== 'cancelled') setError(res.error);+ };++ return (+ <div style={{+ position: 'fixed', inset: 0,+ background: 'var(--cth-cream-200)',+ backgroundImage:+ `repeating-linear-gradient(45deg, rgba(232, 217, 160, 0.4) 0 1px, transparent 1px 8px)`,+ display: 'flex', alignItems: 'center', justifyContent: 'center',+ zIndex: 200,+ padding: 32+ }}>+ <div style={{ width: 560, maxWidth: '94vw' }}>+ <PixelPanel variant="dialog" title="SELECT A HARNESS CONFIG" noPadding>+ <div style={{ padding: 20, display: 'flex', flexDirection: 'column', gap: 14 }}>+ <p style={{ margin: 0, fontSize: 13, lineHeight: '19px', color: 'var(--cth-ink-700)' }}>+ A <strong>harness config</strong> is the folder where the app keeps everything for one+ workspace — its settings, your agents and their memory, tasks, schedules, and history.+ Each config is separate and self-contained, so you can run different setups side by side.+ Open the one you were working in, switch to another, or start a new one.+ </p>++ {/* CURRENT — the last-used home, the one-click default. */}+ {current && (+ <div>+ <div style={{ fontFamily: 'var(--cth-font-display)', fontSize: 9, color: 'var(--cth-ink-500)', marginBottom: 4 }}>+ CURRENT+ </div>+ <div style={{+ display: 'flex', alignItems: 'center', gap: 10, padding: '10px 12px',+ background: 'var(--cth-mint-light)', boxShadow: 'inset 0 0 0 2px var(--cth-mint)'+ }}>+ <Icon name="folder" />+ <div style={{ flex: 1, minWidth: 0 }}>+ <div style={{ fontFamily: 'var(--cth-font-display)', fontSize: 11, lineHeight: '15px' }}>+ {folderName(current)}+ </div>+ <div style={{+ fontFamily: 'var(--cth-font-mono)', fontSize: 11, color: 'var(--cth-ink-500)',+ whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', direction: 'rtl', textAlign: 'left'+ }}>{current}</div>+ </div>+ <PixelButton variant="primary" size="md" onClick={onOpenCurrent} disabled={!!busy}>+ open+ </PixelButton>+ </div>+ </div>+ )}++ {/* RECENTS — other homes this install has opened before. */}+ {recents.length > 0 && (+ <div>+ <div style={{ fontFamily: 'var(--cth-font-display)', fontSize: 9, color: 'var(--cth-ink-500)', marginBottom: 4 }}>+ RECENT+ </div>+ <div style={{ display: 'flex', flexDirection: 'column', gap: 6, maxHeight: 220, overflowY: 'auto' }}>+ {recents.map((h) => (+ <button+ key={h}+ onClick={() => openHive(h)}+ disabled={!!busy}+ title={`Switch to ${h} (reloads the app)`}+ style={{+ display: 'flex', alignItems: 'center', gap: 10, padding: '8px 12px',+ background: 'var(--cth-paper-100)', boxShadow: 'inset 0 0 0 1px var(--cth-ink-300)',+ border: 'none', cursor: busy ? 'default' : 'pointer', textAlign: 'left',+ opacity: busy && busy !== h ? 0.5 : 1+ }}+ >+ <Icon name="folder" />+ <div style={{ flex: 1, minWidth: 0 }}>+ <div style={{ fontFamily: 'var(--cth-font-ui)', fontSize: 13, fontWeight: 600, color: 'var(--cth-ink-900)' }}>+ {folderName(h)}+ </div>+ <div style={{+ fontFamily: 'var(--cth-font-mono)', fontSize: 11, color: 'var(--cth-ink-500)',+ whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', direction: 'rtl', textAlign: 'left'+ }}>{h}</div>+ </div>+ <span style={{ fontSize: 11, color: 'var(--cth-ink-500)', flexShrink: 0 }}>+ {busy === h ? 'opening…' : 'switch →'}+ </span>+ </button>+ ))}+ </div>+ </div>+ )}++ {error && (+ <div style={{+ padding: '6px 10px', background: 'var(--cth-coral-light)',+ boxShadow: 'inset 0 0 0 1px var(--cth-coral)', fontSize: 13, color: 'var(--cth-ink-900)'+ }}>{error}</div>+ )}++ {busy && (+ <div style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>+ Opening {folderName(busy)} — the app will reload…+ </div>+ )}++ {/* OPEN / CREATE — both browse to a folder; "fresh" mode re-points at it+ (bootstrapping an empty one, or reusing existing hive data in place). */}+ <div style={{ display: 'flex', gap: 8, justifyContent: 'flex-end', flexWrap: 'wrap' }}>+ <PixelButton variant="secondary" size="md" onClick={browse} disabled={!!busy}>+ <span style={{ display: 'inline-flex', gap: 6, alignItems: 'center' }}>+ <Icon name="folder" /> open existing config…+ </span>+ </PixelButton>+ <PixelButton variant="secondary" size="md" onClick={browse} disabled={!!busy}>+ <span style={{ display: 'inline-flex', gap: 6, alignItems: 'center' }}>+ <Icon name="plus" /> create new config…+ </span>+ </PixelButton>+ </div>+ </div>+ </PixelPanel>+ </div>+ </div>+ );+}diff --git a/src/renderer/src/components/IntegrationsRegistry.tsx b/src/renderer/src/components/IntegrationsRegistry.tsxindex 932464ca..52c9ce31 100644--- a/src/renderer/src/components/IntegrationsRegistry.tsx+++ b/src/renderer/src/components/IntegrationsRegistry.tsx@@ -210,7 +210,7 @@ export function IntegrationsRegistry() {<div style={{ ...dispLabel, marginBottom: 4 }}>Pick a template</div><span style={subText}>Choose what you’re connecting. The template sets the defaults. Pick <b>Custom REST</b> for anything not listed.</span></div>- <div style={{ display: 'grid', gridTemplateColumns: 'repeat(3, 1fr)', gap: 8 }}>+ <div style={{ display: 'grid', gridTemplateColumns: 'repeat(3, minmax(0, 1fr))', gap: 8 }}>{templates.map((t) => {const on = picked === t.idSuggestion;const g = glyphFor(t.kind, t.label);@@ -221,7 +221,7 @@ export function IntegrationsRegistry() {boxShadow: `inset 0 0 0 ${on ? 2 : 1}px ${on ? 'var(--cth-ink-900)' : 'var(--cth-ink-300)'}`}}><Glyph mono={g.mono} bg={g.bg} />- <div style={{ display: 'flex', flexDirection: 'column', gap: 2, minWidth: 0 }}>+ <div style={{ display: 'flex', flexDirection: 'column', gap: 2, minWidth: 0, overflowWrap: 'anywhere' }}><span style={{ fontSize: 13, lineHeight: '17px', color: 'var(--cth-ink-900)', fontWeight: 600 }}>{t.label}</span><span style={hint}>{t.secretHelp || (t.kind === 'custom-rest' ? 'Any HTTP API' : '')}</span></div>diff --git a/src/renderer/src/components/OnboardingWizard.tsx b/src/renderer/src/components/OnboardingWizard.tsxindex 137147b1..1faeffcf 100644--- a/src/renderer/src/components/OnboardingWizard.tsx+++ b/src/renderer/src/components/OnboardingWizard.tsx@@ -3,6 +3,7 @@ import { PixelPanel } from './PixelPanel';import { PixelButton } from './PixelButton';import { Icon, type IconName } from './Icon';import { SpritePortrait } from './SpritePortrait';+import { ProviderLogo } from './ProviderLogo';import { AGENT_PROVIDER_PRESETS, modelsForProvider, type AgentProvider, type HarnessConfig } from '@/store/config';import { canReceiveInbox, providerPreset } from '@shared/agentProvider';@@ -10,58 +11,81 @@ export interface OnboardingWizardProps {onComplete: (config: HarnessConfig) => void;}-type Step = 'welcome' | 'home' | 'orchestrator' | 'repos' | 'auto' | 'permissions' | 'done';+type Audience = 'technical' | 'non-technical';+type Step = 'persona' | 'welcome' | 'home' | 'orchestrator' | 'repos' | 'permissions' | 'done';-// First-run showcase — the 4-6 highest-value features a brand-new user should-// understand before any setup. Kept to one scannable grid (not a manual).+// First-run showcase — the highest-value features a brand-new user should grasp+// before any setup. Each carries a developer-register `desc` and a plain-language+// `descPlain` so the same grid speaks to both audiences (item 1).interface Feature {icon: IconName;label: string;- desc: string;- tint: string; // tile background token- edge: string; // tile border token+ desc: string; // technical register+ descPlain: string; // non-technical register+ tint: string; // tile background token+ edge: string; // tile border token}const FEATURES: Feature[] = [{icon: 'mcp',label: 'MULTI-PROVIDER HIVE',desc: 'Claude Code, Antigravity & Codex run as live agents in one shared office.',+ descPlain: 'Use different AI assistants (Claude, Gemini, Codex) side by side in one shared office.',tint: 'var(--cth-lilac-light)', edge: 'var(--cth-lilac)'},{icon: 'gear',label: 'MICHAEL ORCHESTRATES',desc: 'An always-on GOD agent triages requests, routes tasks, and escalates only what needs you.',+ descPlain: 'A manager agent, Michael, takes your requests, hands work to the right agent, and only interrupts you when it matters.',tint: 'var(--cth-sky-light)', edge: 'var(--cth-sky)'},{icon: 'web',label: 'LONG-TERM MEMORY',desc: 'Each agent keeps notes, mined into a shared, searchable MemPalace.',+ descPlain: "Agents remember what they've done, so they don't start from scratch every time.",tint: 'var(--cth-mint-light)', edge: 'var(--cth-mint)'},{icon: 'terminal',label: 'COMMAND CENTER',desc: 'Terminal · Floor · Memory · Activity · Tasks · Schedules in one control surface.',+ descPlain: "One dashboard to watch the work, the agents' memory, tasks, and schedules.",tint: 'var(--cth-lemon-light)', edge: 'var(--cth-lemon)'},{icon: 'pause',label: 'GUARDRAILS',desc: 'Per-agent token budgets, a steer→constrain→stop circuit breaker, and human approvals.',+ descPlain: 'Spending limits and safety stops keep agents in check — and they can ask you before big actions.',tint: 'var(--cth-coral-light)', edge: 'var(--cth-coral)'},{icon: 'sparkle',label: 'READY-MADE HIRES',desc: 'Grab a pre-configured agent from the Agent Gallery and spawn it in one click.',+ descPlain: 'Hire a ready-made agent from the gallery in one click — no setup needed.',tint: 'var(--cth-peach-light)', edge: 'var(--cth-peach)'}];+// One-liner of what each engine is, shown under its row on the orchestrator step+// so a non-technical user knows what they're picking (item 3).+const PROVIDER_BLURB: Partial<Record<AgentProvider, string>> = {+ claude: 'Claude Code — Anthropic',+ codex: 'Codex — OpenAI',+ antigravity: 'Antigravity — Google Gemini',+ qwen: 'Qwen — runs a local Qwen model on your machine'+};+export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {- const [step, setStep] = useState<Step>('welcome');+ const [step, setStep] = useState<Step>('persona');+ // Self-identified audience (item 1). Undefined until chosen on the first screen;+ // the rest of the wizard reads `plain` to swap copy registers.+ const [audience, setAudience] = useState<Audience | undefined>();+ const plain = audience === 'non-technical';+const [home, setHome] = useState<string>('');const [repos, setRepos] = useState<string[]>([]);const [autoMode, setAutoMode] = useState<boolean>(true);@@ -136,6 +160,7 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {}const next = await window.cth.updateConfig({onboardingComplete: true,+ audience: audience ?? 'technical',harnessHome: home,registeredRepos: repos,autoMode,@@ -160,18 +185,65 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {<PixelPanelvariant="dialog"title={- step === 'welcome' ? 'MEET YOUR OFFICE'- : step === 'home' ? 'STEP 1 OF 5 · HARNESS HOME'- : step === 'orchestrator' ? "STEP 2 OF 5 · MICHAEL'S ENGINE"- : step === 'repos' ? 'STEP 3 OF 5 · YOUR REPOS'- : step === 'auto' ? 'STEP 4 OF 5 · AUTO MODE'- : step === 'permissions' ? 'STEP 5 OF 5 · PERMISSIONS & RELIABILITY'+ step === 'persona' ? 'WELCOME TO MUNDER DIFFLIN'+ : step === 'welcome' ? 'MEET YOUR OFFICE'+ : step === 'home' ? (plain ? 'STEP 1 OF 4 · A HOME FOR THE APP' : 'STEP 1 OF 4 · HARNESS HOME')+ : step === 'orchestrator' ? (plain ? 'STEP 2 OF 4 · YOUR MANAGER AGENT' : "STEP 2 OF 4 · MICHAEL'S ENGINE")+ : step === 'repos' ? (plain ? 'STEP 3 OF 4 · YOUR PROJECTS' : 'STEP 3 OF 4 · YOUR REPOS')+ : step === 'permissions' ? 'STEP 4 OF 4 · PERMISSIONS & RELIABILITY': 'ALL SET'}noPadding><div style={{ padding: 20, display: 'flex', flexDirection: 'column', gap: 16 }}>+ {step === 'persona' && (+ <>+ <div style={{ display: 'flex', gap: 12, alignItems: 'flex-start' }}>+ <div style={{+ width: 56, height: 56, flexShrink: 0,+ background: 'var(--cth-sky-light)',+ boxShadow: 'inset 0 0 0 2px var(--cth-ink-900)',+ display: 'flex', alignItems: 'flex-end', justifyContent: 'center', overflow: 'hidden'+ }}>+ <SpritePortrait character="michael" scale={2} />+ </div>+ <div>+ <div style={{ fontFamily: 'var(--cth-font-display)', fontSize: 12, lineHeight: '18px' }}>+ RUN AN OFFICE OF AI AGENTS+ </div>+ <div style={{ fontSize: 13, color: 'var(--cth-ink-700)', lineHeight: '19px' }}>+ Munder Difflin lets you run an office of long-running, highly capable AI+ agents that can take on almost any task. It uses the CLI agents you already+ have and manages everything around them — their context, memory, tasks,+ schedules, webhooks, environment, files, and integrations.+ <span style={{ color: 'var(--cth-ink-500)' }}> (We call this harnessing your agents.)</span>+ </div>+ </div>+ </div>++ <div style={{ fontFamily: 'var(--cth-font-display)', fontSize: 10, color: 'var(--cth-ink-700)' }}>+ FIRST — WHO ARE YOU? (we'll tailor the setup)+ </div>+ <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 10 }}>+ <PersonaCard+ icon="code"+ title="I'M TECHNICAL"+ desc="I write code or work in a terminal. Show me CLI commands, flags, and model ids."+ selected={audience === 'technical'}+ onClick={() => { setAudience('technical'); setError(undefined); }}+ />+ <PersonaCard+ icon="sparkle"+ title="I'M NON-TECHNICAL"+ desc="I'm in marketing, sales, ops, or just starting out. Explain things in plain language."+ selected={audience === 'non-technical'}+ onClick={() => { setAudience('non-technical'); setError(undefined); }}+ />+ </div>+ </>+ )}+{step === 'welcome' && (<><div style={{ display: 'flex', gap: 12, alignItems: 'center' }}>@@ -189,8 +261,9 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {fontSize: 12, lineHeight: '18px'}}>A CONTROL ROOM FOR A TEAM OF AGENTS</div><div style={{ fontSize: 13, color: 'var(--cth-ink-700)', lineHeight: '18px' }}>- You run a hive of AI coding agents — coordinated, persistent, and watchable.- Here's what's inside:+ {plain+ ? "Think of it as a small office of AI workers you manage from one screen. Here's what's inside:"+ : "You run a hive of AI coding agents — coordinated, persistent, and watchable. Here's what's inside:"}</div></div></div>@@ -217,7 +290,7 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {fontSize: 10, lineHeight: '14px', marginBottom: 3}}>{f.label}</div><div style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-700)' }}>- {f.desc}+ {plain ? f.descPlain : f.desc}</div></div></div>@@ -228,14 +301,26 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {{step === 'home' && (<>- <p style={{ margin: 0, lineHeight: '22px' }}>- Pick a folder where the harness will keep its own files — agent metadata,- logs, and any new repos you create from here. Something like{' '}- <code style={{ fontFamily: 'var(--cth-font-mono)', background: 'var(--cth-paper-100)', padding: '0 4px' }}>- ~/HarnessAgents- </code>{' '}- is a fine default. We'll create it if it doesn't exist.- </p>+ {plain ? (+ <p style={{ margin: 0, lineHeight: '22px' }}>+ Create a new, empty folder for the app to call home. Everything the app+ remembers — its own settings and your agents' memory — is stored here.+ Something like{' '}+ <code style={{ fontFamily: 'var(--cth-font-mono)', background: 'var(--cth-paper-100)', padding: '0 4px' }}>+ ~/HarnessAgents+ </code>{' '}+ works well. We'll create it for you if it doesn't exist.+ </p>+ ) : (+ <p style={{ margin: 0, lineHeight: '22px' }}>+ Pick a folder where the harness will keep its own files — agent metadata,+ logs, and any new repos you create from here. Something like{' '}+ <code style={{ fontFamily: 'var(--cth-font-mono)', background: 'var(--cth-paper-100)', padding: '0 4px' }}>+ ~/HarnessAgents+ </code>{' '}+ is a fine default. We'll create it if it doesn't exist.+ </p>+ )}<div style={{ display: 'flex', gap: 8 }}><inputvalue={home}@@ -245,13 +330,14 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {/><PixelButton variant="secondary" size="md" onClick={pickHome}><span style={{ display: 'inline-flex', gap: 4, alignItems: 'center' }}>- <Icon name="folder" /> pick+ <Icon name="folder" /> {plain ? 'create / pick' : 'pick'}</span></PixelButton></div><div style={{ fontSize: 13, color: 'var(--cth-ink-500)' }}>- Think of this as the "town hall." The harness pins agent state there so- sessions can be picked back up after a restart.+ {plain+ ? "You won't need to open this folder day-to-day — it's just where the app keeps its notes so nothing is lost when you restart."+ : 'Think of this as the "town hall." The harness pins agent state there so sessions can be picked back up after a restart.'}</div></>)}@@ -259,43 +345,93 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {{step === 'orchestrator' && (<><p style={{ margin: 0, lineHeight: '22px' }}>- <strong>Michael</strong>, the orchestrator you just met, coordinates the whole floor —- he triages your requests, assigns tasks, and manages the team. Give him a- longer-context, higher-capability model.+ {plain ? (+ <><strong>Michael</strong> is the manager of your office — he reads your+ requests, breaks them into tasks, and hands them to the right agent. Choose+ which AI engine powers him.</>+ ) : (+ <><strong>Michael</strong>, the orchestrator you just met, coordinates the+ whole floor — he triages your requests, assigns tasks, and manages the team.+ Pick the engine and model that power him; give him a longer-context,+ higher-capability model.</>+ )}</p>++ {/* What is a CLI agent / GOD agent — item 3 */}+ <div style={{+ display: 'flex', gap: 8, alignItems: 'flex-start', padding: 10,+ background: 'var(--cth-lemon-light)', boxShadow: 'inset 0 0 0 1px var(--cth-ink-300)',+ fontSize: 12, lineHeight: '17px', color: 'var(--cth-ink-700)'+ }}>+ <span style={{ flexShrink: 0, marginTop: 1 }}><Icon name="sparkle" /></span>+ <span>+ {plain ? (+ <>A <strong>CLI agent</strong> is an AI coding assistant that runs on your+ computer — popular ones are Claude Code (Anthropic), Codex (OpenAI) and+ Antigravity (Google Gemini). The <strong>GOD agent</strong> is the always-on+ manager that runs your whole office. We recommend Claude Code on Opus 4.8 (1M).+ You can add or switch the others later.</>+ ) : (+ <>Each option is a <strong>CLI engine</strong> you have installed (Claude Code,+ Codex, Antigravity/Gemini, or a local proxy like Qwen). The+ <strong> GOD agent</strong> (Michael) is the orchestrator engine for the whole+ hive. Recommended: Claude Code · Opus 4.8 · 1M — other providers can be wired+ per agent later.</>+ )}+ </span>+ </div>+<div style={{ display: 'flex', flexDirection: 'column', gap: 6 }}>- {AGENT_PROVIDER_PRESETS.filter((p) => canReceiveInbox(p.id)).map((p) => (- <label key={p.id} style={{- display: 'flex', alignItems: 'center', gap: 10,- padding: '8px 10px',- background: godProvider === p.id ? 'var(--cth-mint-light)' : 'var(--cth-paper-100)',- boxShadow: `inset 0 0 0 ${godProvider === p.id ? 2 : 1}px ${godProvider === p.id ? 'var(--cth-mint)' : 'var(--cth-ink-300)'}`,- cursor: 'pointer'- }}>- <input- type="radio"- name="godProvider"- value={p.id}- checked={godProvider === p.id}- onChange={() => {- setGodProvider(p.id);- setGodModel(p.recommendedOrchestratorModel);- }}- style={{ width: 16, height: 16, flexShrink: 0 }}- />- <span style={{ flex: 1, fontFamily: 'var(--cth-font-display)', fontSize: 11 }}>- {p.label.toUpperCase()}- </span>- {p.id === 'claude' && (+ {AGENT_PROVIDER_PRESETS.filter((p) => canReceiveInbox(p.id)).map((p) => {+ const sel = godProvider === p.id;+ return (+ <label key={p.id} style={{+ display: 'flex', alignItems: 'center', gap: 10,+ padding: '8px 10px',+ background: sel ? 'var(--cth-mint-light)' : 'var(--cth-paper-100)',+ boxShadow: `inset 0 0 0 ${sel ? 2 : 1}px ${sel ? 'var(--cth-mint)' : 'var(--cth-ink-300)'}`,+ cursor: 'pointer'+ }}>+ <input+ type="radio"+ name="godProvider"+ value={p.id}+ checked={sel}+ onChange={() => {+ setGodProvider(p.id);+ // Reset the model to the new provider's recommended pick so the+ // dropdown below always shows a valid model for the chosen engine.+ setGodModel(p.recommendedOrchestratorModel);+ }}+ style={{ width: 16, height: 16, flexShrink: 0 }}+ /><span style={{- fontSize: 10, padding: '1px 5px', lineHeight: '16px',- background: 'var(--cth-lemon)',- boxShadow: 'inset 0 0 0 1px var(--cth-ink-900)',- fontFamily: 'var(--cth-font-display)'- }}>RECOMMENDED</span>- )}- </label>- ))}+ width: 22, height: 22, flexShrink: 0, display: 'flex',+ alignItems: 'center', justifyContent: 'center', color: 'var(--cth-ink-900)'+ }}>+ <ProviderLogo provider={p.id} size={18} />+ </span>+ <span style={{ flex: 1, minWidth: 0 }}>+ <span style={{ display: 'block', fontFamily: 'var(--cth-font-display)', fontSize: 11 }}>+ {p.label.toUpperCase()}+ </span>+ {PROVIDER_BLURB[p.id] && (+ <span style={{ display: 'block', fontSize: 11, color: 'var(--cth-ink-500)' }}>+ {PROVIDER_BLURB[p.id]}+ </span>+ )}+ </span>+ {p.id === 'claude' && (+ <span style={{+ fontSize: 10, padding: '1px 5px', lineHeight: '16px',+ background: 'var(--cth-lemon)',+ boxShadow: 'inset 0 0 0 1px var(--cth-ink-900)',+ fontFamily: 'var(--cth-font-display)', flexShrink: 0+ }}>RECOMMENDED</span>+ )}+ </label>+ );+ })}</div><div style={{ display: 'flex', flexDirection: 'column', gap: 4 }}><div style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>Model</div>@@ -308,6 +444,9 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {<option key={m.label} value={m.id ?? ''}>{m.label}</option>))}</select>+ <div style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>+ This only sets Michael's engine. You can run other providers per agent later.+ </div></div></>)}@@ -315,9 +454,15 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {{step === 'repos' && (<><p style={{ margin: 0, lineHeight: '22px' }}>- Add the existing repos you want claude agents to run on. Each one becomes- a room on the floor — multiple agents can live in the same repo. You can- add more later.+ {plain ? (+ <>Add your <strong>projects</strong>. A project is simply a folder — it can hold+ code, documents, notes, or any files you want your agents to work with. You can+ create a brand-new folder or pick an existing one, and add more anytime.</>+ ) : (+ <>Add the repos you want your agents to work in. Each folder becomes a+ <strong> project</strong> (a room on the floor) — multiple agents can share one.+ You can add more later.</>+ )}</p><div style={{display: 'flex', flexDirection: 'column', gap: 6,@@ -331,7 +476,9 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {background: 'var(--cth-paper-200)',textAlign: 'center'}}>- No repos added yet. Optional, but recommended.+ {plain+ ? 'No projects added yet. Optional — you can add one later.'+ : 'No repos added yet. Optional, but recommended.'}</div>)}{repos.map((r) => (@@ -355,25 +502,21 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {</div><PixelButton variant="secondary" size="md" onClick={pickRepo}><span style={{ display: 'inline-flex', gap: 6, alignItems: 'center' }}>- <Icon name="plus" /> add a repo+ <Icon name="plus" /> {plain ? 'add a project' : 'add a repo'}</span></PixelButton></>)}- {step === 'auto' && (+ {step === 'permissions' && (<>- <p style={{ margin: 0, lineHeight: '22px' }}>- Agents in the harness run <strong>unattended</strong>. By default, every- agent is spawned with{' '}- <code style={{ fontFamily: 'var(--cth-font-mono)', background: 'var(--cth-paper-100)', padding: '0 4px' }}>- --permission-mode bypassPermissions- </code>{' '}- — meaning claude won't pause to ask you before file edits or shell commands.- This is the right default for the "control room" experience; it's also a- loaded foot-gun on production repos. Keep this on unless you have a reason- to babysit a specific agent.- </p>+ {/* AUTONOMY — merged from the old "auto mode" step (item 5). One choice+ that maps to each engine's flag (item 6): autoMode → claude+ bypassPermissions / codex -a never, etc.; off → each engine's+ ask-first default. */}+ <div style={{ fontFamily: 'var(--cth-font-display)', fontSize: 10, color: 'var(--cth-ink-700)' }}>+ HOW MUCH CAN AGENTS DO ON THEIR OWN?+ </div><label style={{display: 'flex', alignItems: 'center', gap: 10,padding: 12,@@ -385,33 +528,39 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {type="checkbox"checked={autoMode}onChange={(e) => setAutoMode(e.target.checked)}- style={{ width: 18, height: 18 }}+ style={{ width: 18, height: 18, flexShrink: 0 }}/><div><div style={{ fontFamily: 'var(--cth-font-display)', fontSize: 10, lineHeight: '14px' }}>- AUTO MODE+ {plain ? 'LET AGENTS WORK ON THEIR OWN' : 'WORK AUTONOMOUSLY (AUTO MODE)'}</div><div style={{ fontSize: 14, color: 'var(--cth-ink-700)' }}>- {autoMode ? 'Always on. Agents never pause for permission.' : 'Off. Each agent will prompt before running tools.'}+ {plain+ ? (autoMode+ ? 'On. Agents carry out tasks without stopping to ask — the smoothest experience.'+ : 'Off. Agents pause and ask you before changing files or running commands.')+ : (autoMode+ ? 'On. Agents never pause — Claude runs bypassPermissions, Codex -a never, etc.'+ : 'Off. Each agent asks before edits / shell commands (Claude default, codex -a untrusted, …).')}</div></div></label><div style={{ fontSize: 13, color: 'var(--cth-ink-500)' }}>- You can override this per agent in the Add Agent dialog — change the- command string to drop the flag.+ {plain+ ? 'Best when agents work in their own projects. You can change this later, including for individual agents.'+ : 'The right default for the "control room" experience; a foot-gun on production repos. Override per agent in the Add Agent dialog.'}</div>- </>- )}- {step === 'permissions' && (- <>- <p style={{ margin: 0, lineHeight: '22px' }}>- Your agents keep working on a schedule and in live terminals. The- harness already holds a light power blocker, but if your Mac fully- sleeps — lid closed or idle — those timers pause and{' '}- <strong>catch up the moment you're back</strong>. Nothing is lost; it- may just run late. These keep you in the loop and, optionally, keep- missions firing on time while you're away.+ <div style={{ height: 1, background: 'var(--cth-ink-300)', margin: '2px 0' }} />++ {/* RELIABILITY — keeping work firing while you're away. */}+ <div style={{ fontFamily: 'var(--cth-font-display)', fontSize: 10, color: 'var(--cth-ink-700)' }}>+ KEEP THINGS RUNNING WHILE YOU'RE AWAY+ </div>+ <p style={{ margin: 0, lineHeight: '20px', fontSize: 13, color: 'var(--cth-ink-700)' }}>+ {plain+ ? 'Your agents keep working on a schedule and in live terminals, even when you step away. These settings keep you in the loop and keep things running.'+ : 'Your agents keep working on a schedule and in live terminals. If your Mac fully sleeps those timers pause and catch up the moment you\'re back — nothing is lost, it may just run late.'}</p><ToggleRow@@ -495,13 +644,23 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginTop: 4 }}><Dots step={step} /><div style={{ display: 'flex', gap: 8 }}>- {step !== 'welcome' && (+ {step !== 'persona' && step !== 'welcome' && (<PixelButton variant="ghost" size="md" onClick={() => setStep(prevStep(step))} disabled={busy}>back</PixelButton>)}+ {step === 'welcome' && (+ <PixelButton variant="ghost" size="md" onClick={() => setStep('persona')} disabled={busy}>+ back+ </PixelButton>+ )}{step !== 'permissions' && (- <PixelButton variant="primary" size="md" onClick={() => setStep(nextStep(step))}>+ <PixelButton+ variant="primary"+ size="md"+ onClick={() => setStep(nextStep(step))}+ disabled={step === 'persona' && !audience}+ >{step === 'welcome' ? 'set it up' : 'next'}</PixelButton>)}@@ -519,6 +678,39 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {);}+function PersonaCard({ icon, title, desc, selected, onClick }: {+ icon: IconName;+ title: string;+ desc: string;+ selected: boolean;+ onClick: () => void;+}) {+ return (+ <button+ onClick={onClick}+ style={{+ textAlign: 'left', cursor: 'pointer', border: 'none',+ padding: 12, display: 'flex', flexDirection: 'column', gap: 6,+ background: selected ? 'var(--cth-mint-light)' : 'var(--cth-paper-100)',+ boxShadow: `inset 0 0 0 ${selected ? 2 : 1}px ${selected ? 'var(--cth-mint)' : 'var(--cth-ink-300)'}`+ }}+ >+ <span style={{+ width: 28, height: 28, display: 'flex', alignItems: 'center', justifyContent: 'center',+ background: 'var(--cth-paper-100)', boxShadow: 'inset 0 0 0 1px var(--cth-ink-900)'+ }}>+ <Icon name={icon} />+ </span>+ <span style={{ fontFamily: 'var(--cth-font-display)', fontSize: 11, lineHeight: '15px', color: 'var(--cth-ink-900)' }}>+ {title}+ </span>+ <span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-700)' }}>+ {desc}+ </span>+ </button>+ );+}+function ToggleRow({ icon, label, desc, on, tint, edge, onChange }: {icon: IconName;label: string;@@ -561,7 +753,7 @@ function ToggleRow({ icon, label, desc, on, tint, edge, onChange }: {}function Dots({ step }: { step: Step }) {- const order: Step[] = ['welcome', 'home', 'orchestrator', 'repos', 'auto', 'permissions'];+ const order: Step[] = ['persona', 'welcome', 'home', 'orchestrator', 'repos', 'permissions'];return (<div style={{ display: 'flex', gap: 4 }}>{order.map((s) => (@@ -576,10 +768,20 @@ function Dots({ step }: { step: Step }) {}function nextStep(s: Step): Step {- return s === 'welcome' ? 'home' : s === 'home' ? 'orchestrator' : s === 'orchestrator' ? 'repos' : s === 'repos' ? 'auto' : s === 'auto' ? 'permissions' : 'done';+ return s === 'persona' ? 'welcome'+ : s === 'welcome' ? 'home'+ : s === 'home' ? 'orchestrator'+ : s === 'orchestrator' ? 'repos'+ : s === 'repos' ? 'permissions'+ : 'done';}function prevStep(s: Step): Step {- return s === 'permissions' ? 'auto' : s === 'auto' ? 'repos' : s === 'repos' ? 'orchestrator' : s === 'orchestrator' ? 'home' : s === 'home' ? 'welcome' : 'welcome';+ return s === 'permissions' ? 'repos'+ : s === 'repos' ? 'orchestrator'+ : s === 'orchestrator' ? 'home'+ : s === 'home' ? 'welcome'+ : s === 'welcome' ? 'persona'+ : 'persona';}const inputStyle: React.CSSProperties = {diff --git a/src/renderer/src/components/ProviderLogo.tsx b/src/renderer/src/components/ProviderLogo.tsxnew file mode 100644index 00000000..112e3fc5--- /dev/null+++ b/src/renderer/src/components/ProviderLogo.tsx@@ -0,0 +1,74 @@+import type { AgentProvider } from '@/store/config';++/**+ * ProviderLogo — the official brand mark for each CLI-agent provider, rendered+ * inline as a single-path SVG so it stays crisp at any size and inherits the+ * surrounding ink color (monochrome, to sit cleanly inside the neo-brutalist UI).+ *+ * Brand marks (Anthropic / OpenAI / Google Gemini / Qwen) are the canonical+ * single-color glyphs from the Simple Icons set. `custom` is a bring-your-own+ * engine with no brand, so it gets a hand-drawn terminal-prompt stroke glyph in+ * the same weight.+ */++// Single-path fills (24×24 viewBox), official brand marks.+const BRAND_PATHS: Partial<Record<AgentProvider, string>> = {+ // Anthropic — powers Claude Code.+ claude:+ 'M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z',+ // OpenAI — powers the Codex CLI.+ codex:+ 'M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z',+ // Google Gemini — Antigravity runs Gemini models.+ antigravity:+ 'M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81',+ // Qwen (Alibaba) — the local qwen-code CLI.+ qwen:+ 'M23.919 14.545 20.817 9.17l1.47-2.544a.56.56 0 0 0 0-.566l-1.633-2.83a.57.57 0 0 0-.49-.283h-6.207L12.487.402a.57.57 0 0 0-.49-.284H8.732a.56.56 0 0 0-.49.284L5.139 5.775h-2.94a.56.56 0 0 0-.49.284L.077 8.887a.56.56 0 0 0 0 .567L3.18 14.83l-1.47 2.545a.56.56 0 0 0 0 .566l1.634 2.83a.57.57 0 0 0 .49.283h6.205l1.47 2.545a.57.57 0 0 0 .49.284h3.266a.57.57 0 0 0 .49-.284l3.104-5.375h2.94a.57.57 0 0 0 .49-.283l1.634-2.828a.55.55 0 0 0-.004-.568M8.733.686l1.634 2.828-1.634 2.828H21.8L20.164 9.17H7.425L5.63 6.06Zm1.306 19.801-6.205-.002 1.634-2.83h3.265L2.201 6.344h3.267q3.182 5.517 6.367 11.032zm10.124-5.66L18.53 12l-6.532 11.315-1.634-2.83c2.129-3.673 4.25-7.351 6.373-11.028h3.592l3.102 5.374z'+};++export interface ProviderLogoProps {+ provider: AgentProvider;+ /** Edge length in px (square). Default 18. */+ size?: number;+ /** Overrides the fill/stroke color; defaults to currentColor (inherits ink). */+ color?: string;+}++export function ProviderLogo({ provider, size = 18, color = 'currentColor' }: ProviderLogoProps) {+ const brand = BRAND_PATHS[provider];+ if (brand) {+ return (+ <svg+ width={size}+ height={size}+ viewBox="0 0 24 24"+ role="img"+ aria-hidden="true"+ style={{ display: 'block', flexShrink: 0 }}+ >+ <path d={brand} fill={color} />+ </svg>+ );+ }++ // custom / fallback — bring-your-own CLI: a terminal prompt glyph (">_").+ return (+ <svg+ width={size}+ height={size}+ viewBox="0 0 24 24"+ role="img"+ aria-hidden="true"+ fill="none"+ stroke={color}+ strokeWidth={2.2}+ strokeLinecap="square"+ strokeLinejoin="miter"+ style={{ display: 'block', flexShrink: 0 }}+ >+ <path d="M4 6 L10 12 L4 18" />+ <path d="M12 18 H20" />+ </svg>+ );+}diff --git a/src/renderer/src/components/SettingsModal.tsx b/src/renderer/src/components/SettingsModal.tsxindex 0b6d8c7d..5688f085 100644--- a/src/renderer/src/components/SettingsModal.tsx+++ b/src/renderer/src/components/SettingsModal.tsx@@ -624,9 +624,11 @@ export function SettingsModal({ config, onClose }: SettingsModalProps) {})}</div>- {/* Right scrollable content pane */}+ {/* Right scrollable content pane. minWidth:0 lets this flex child+ shrink to the row's width instead of growing to its content's+ min-content (which would push a horizontal scrollbar). */}<div style={{- flex: 1, overflowY: 'auto',+ flex: 1, minWidth: 0, overflowY: 'auto', overflowX: 'hidden',padding: '20px 24px',display: 'flex', flexDirection: 'column', gap: 20}}>diff --git a/src/renderer/src/components/WorkersTab.tsx b/src/renderer/src/components/WorkersTab.tsxindex f2dbd157..96d72563 100644--- a/src/renderer/src/components/WorkersTab.tsx+++ b/src/renderer/src/components/WorkersTab.tsx@@ -87,7 +87,7 @@ export function WorkersTab() {const max = data?.maxWorkers ?? 4;return (- <div style={{ display: 'flex', flexDirection: 'column', gap: 14, padding: '4px 2px', overflow: 'auto' }}>+ <div style={{ display: 'flex', flexDirection: 'column', gap: 14, padding: '12px 14px 16px', overflow: 'auto' }}><div><div style={{ display: 'flex', alignItems: 'baseline', justifyContent: 'space-between' }}><span style={sectionHead}>Live workers</span>diff --git a/src/renderer/src/store/config.ts b/src/renderer/src/store/config.tsindex f5b65b90..02a1391d 100644--- a/src/renderer/src/store/config.ts+++ b/src/renderer/src/store/config.ts@@ -47,7 +47,14 @@ export interface KnowledgeGraphConfig {export interface HarnessConfig {onboardingComplete: boolean;+ /** Self-identified audience from the first onboarding screen ('technical' vs+ * 'non-technical') — drives the copy register across onboarding. Mirrors+ * src/main/config.ts. */+ audience?: 'technical' | 'non-technical';harnessHome: string | null;+ /** Recently-opened hive home folders (most-recent first) for the launch picker.+ * Mirrors src/main/config.ts. */+ recentHives?: string[];registeredRepos: string[];autoMode: boolean;defaultCommand: string;@@ -118,6 +125,20 @@ export const AGENT_MODELS: ModelOption[] = [{ id: 'claude-haiku-4-5-20251001', label: 'Haiku 4.5' }];+/** Models offered when an agent runs on the OpenAI Codex CLI (`codex`). Codex's+ * `--model` takes a model slug (e.g. `codex --model o4-mini`). These are the+ * curated suggestions surfaced in the picker — the command field stays editable,+ * and `codex --model <id>` is the source of truth. // TODO-verify the exact live+ * slug list once the codex CLI can be installed to confirm. */+export const CODEX_MODELS: ModelOption[] = [+ { id: undefined, label: 'default' },+ { id: 'gpt-5-codex', label: 'GPT-5 Codex' },+ { id: 'gpt-5', label: 'GPT-5' },+ { id: 'gpt-5-mini', label: 'GPT-5 Mini' },+ { id: 'o4-mini', label: 'o4-mini' },+ { id: 'o3', label: 'o3' }+];+/** Models offered when an agent runs on the Antigravity CLI (`agy`). agy's* `--model` takes the DISPLAY-NAME LABEL exactly as `agy models` prints it* (verified: agy logs `Propagating selected model override … label="…"`), not a@@ -136,17 +157,6 @@ export const ANTIGRAVITY_MODELS: ModelOption[] = [{ id: 'GPT-OSS 120B (Medium)', label: 'GPT-OSS 120B' }];-/** Models offered when an agent runs on claw-code (`claw`), the proxy-bridge CLI- * driving a local/any LLM over the Anthropic Messages API. These are starting- * suggestions only — the command field stays editable, and the user's local- * router maps the chosen id to whatever model is configured. // TODO-verify the- * real model-id list once claw-code can be installed. */-export const CLAW_MODELS: ModelOption[] = [- { id: undefined, label: 'default' },- { id: 'claude-opus-4-8[1m]', label: 'Opus 4.8 · 1M' },- { id: 'claude-sonnet-4-6', label: 'Sonnet 4.6' }-];-/** Models offered when an agent runs on qwen-code (`qwen`), the proxy-bridge CLI* driving an OpenAI-compatible endpoint. Starting suggestions only (editable* command field). // TODO-verify the live list (`qwen` model ids). */@@ -170,8 +180,8 @@ export function tokenizeCommand(command: string): string[] {/** The model preset list for a given provider's picker. */export function modelsForProvider(provider: AgentProvider): ModelOption[] {+ if (provider === 'codex') return CODEX_MODELS;if (provider === 'antigravity') return ANTIGRAVITY_MODELS;- if (provider === 'claw') return CLAW_MODELS;if (provider === 'qwen') return QWEN_MODELS;return AGENT_MODELS;}diff --git a/src/shared/agentProvider.ts b/src/shared/agentProvider.tsindex 7a93b8d9..f6987f23 100644--- a/src/shared/agentProvider.ts+++ b/src/shared/agentProvider.ts@@ -15,7 +15,11 @@ import type { CmdGroup } from './claudeCommands';import { COMMAND_GROUPS as CLAUDE_COMMAND_GROUPS } from './claudeCommands';import { CODEX_COMMAND_GROUPS } from './codexCommands';-export type AgentProvider = 'claude' | 'codex' | 'antigravity' | 'claw' | 'qwen' | 'custom';+// NOTE: 'claw' (claw-code) was removed as a selectable provider — its upstream is+// an unmaintained "museum exhibit" repo, not a production CLI. Re-add a supported+// fork here (plus its preset/models/logo) after review. The proxy-bridge tier it+// shared with qwen stays in place for qwen.+export type AgentProvider = 'claude' | 'codex' | 'antigravity' | 'qwen' | 'custom';/** Structured descriptor for how a NON-hiveAware provider gets hive lifecycle* events (live status + Stop→inbox-drain + cost), introduced alongside the legacy@@ -24,7 +28,7 @@ export type AgentProvider = 'claude' | 'codex' | 'antigravity' | 'claw' | 'qwen'* - 'hooks' → a config-file hook shim is installed (agy/codex). Derived from the* legacy `hookBridge` by `bridgeOf`, so agy/codex keep working with no* preset change.- * - 'proxy' → the CLI has NO hook surface (claw/qwen), so a loopback reverse-proxy+ * - 'proxy' → the CLI has NO hook surface (qwen), so a loopback reverse-proxy* sidecar observes its LLM traffic and SYNTHESIZES the same HIVE_SOCK* payloads the shims emit. `api` selects the usage/tool-call shape* (OpenAI vs Anthropic), `baseUrlEnv` is the env var the CLI reads for@@ -79,7 +83,7 @@ export interface AgentProviderPreset {* single switch hive.ensureAgent dispatches on to wire the bridge. */hookBridge?: 'agy' | 'codex';/** Structured bridge descriptor (the forward-looking replacement for the legacy- * `hookBridge`). Set explicitly only for PROXY-tier providers (claw/qwen) that+ * `hookBridge`). Set explicitly only for PROXY-tier providers (qwen) that* have no hook file to install; agy/codex leave it undefined and `bridgeOf`* derives `{kind:'hooks'}` from their `hookBridge`. claude/custom leave it* undefined (no bridge). Prefer `bridgeOf(provider)` over reading this directly. */@@ -193,42 +197,12 @@ export const AGENT_PROVIDER_PRESETS: AgentProviderPreset[] = [recommendedOrchestratorModel: 'Gemini 3.1 Pro (High)', // agy takes the display-name labelresumeFlag: '--conversation' // agy: resume a previous conversation by ID},- {- // claw-code — runs the user's already-configured local/any LLM that speaks the- // Anthropic Messages API (Ollama/LM Studio/router via ANTHROPIC_BASE_URL). It- // has NO native hook surface, so hive lifecycle events come from a traffic-- // observing PROXY sidecar (bridge.kind==='proxy') instead of an installed hook- // file. Mirrors the antigravity preset, swapping hookBridge → bridge.- id: 'claw',- label: 'Claw · local',- defaultCommand: 'claw',- commandGroups: [],- // TODO-verify claw-code's skip-permissions flag (couldn't install the CLI);- // defaulting to the Claude-style flag since claw rides the Anthropic API.- autoModeFlag: '--dangerously-skip-permissions',- supportsModel: true,- modelFlag: '--model',- autoFlag: '--dangerously-skip-permissions',- hiveAware: false,- // SPIKE/TODO-verify: confirm claw-code's real upstream base-URL env var (assumed- // ANTHROPIC_BASE_URL) and that it speaks Anthropic Messages (vs OpenAI). Adjust- // api/baseUrlEnv here if the spike says otherwise.- bridge: { kind: 'proxy', api: 'anthropic', baseUrlEnv: 'ANTHROPIC_BASE_URL', inboxDelivery: 'terminal' },- canReceiveInbox: true, // via the proxy bridge's synthesized Stop→drain- // claw takes its initial prompt POSITIONALLY (Claude-style); hive.ts appends it- // as a trailing quoted arg. // TODO-verify- initialPromptFlag: undefined,- // Anthropic-format long-context id for the orchestrator; the local router maps- // it to whatever model is configured. Advisory + editable. // TODO-verify- recommendedOrchestratorModel: 'claude-opus-4-8[1m]',- resumeFlag: undefined // no stable resume flag → spawn fresh- },{// qwen-code — the Qwen CLI (a gemini-cli fork) driving any OpenAI-compatible- // endpoint (OPENAI_BASE_URL). Like claw it has no hook surface, so it rides the- // same PROXY bridge, with the OpenAI usage/tool-call shape.+ // endpoint (OPENAI_BASE_URL). It has no hook surface, so it rides a PROXY+ // bridge (bridge.kind==='proxy'), with the OpenAI usage/tool-call shape.id: 'qwen',- label: 'Qwen · local',+ label: 'Qwen (local available)',defaultCommand: 'qwen',commandGroups: [],// gemini-cli heritage: --yolo auto-approves all actions. // TODO-verify@@ -265,7 +239,6 @@ export function isAgentProvider(value: unknown): value is AgentProvider {value === 'claude' ||value === 'codex' ||value === 'antigravity' ||- value === 'claw' ||value === 'qwen' ||value === 'custom');@@ -311,7 +284,6 @@ export function inferAgentProvider(command: string | undefined, explicit?: unknoconst bin = commandBinary(command);if (bin === 'codex') return 'codex';if (bin === 'agy' || bin === 'antigravity') return 'antigravity';- if (bin === 'claw') return 'claw';if (bin === 'qwen') return 'qwen';if (bin === 'claude' || !bin) return 'claude';return 'custom';@@ -319,7 +291,7 @@ export function inferAgentProvider(command: string | undefined, explicit?: unkno/** The structured bridge descriptor for how a non-hiveAware provider receives hive* lifecycle events. Returns the preset's explicit `bridge` when set (proxy tier:- * claw/qwen); else derives `{kind:'hooks', shim}` from the legacy `hookBridge`+ * qwen); else derives `{kind:'hooks', shim}` from the legacy `hookBridge`* (agy/codex), so those keep working untouched; else undefined (claude uses its* native `--settings` path, custom has no bridge). The single accessor call sites* switch on (`bridge.kind`). */