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
fix(models): tell the two "defaults" apart in both model pickers
Vyapak Goyala39b5b446849
diff --git a/src/renderer/src/components/AddAgentModal.tsx b/src/renderer/src/components/AddAgentModal.tsxindex 7886bc00..ec508637 100644--- a/src/renderer/src/components/AddAgentModal.tsx+++ b/src/renderer/src/components/AddAgentModal.tsx@@ -305,11 +305,18 @@ export function AddAgentModal({ onClose, config }: AddAgentModalProps) {<div style={{ display: 'flex', gap: 6, flexWrap: 'wrap' }}>{modelsForProvider(provider).map((m) => {const active = (model ?? '') === (m.id ?? '');+ // Which one the harness would pick on its own (Settings →+ // default model). Only meaningful for Claude — defaultModel is+ // a Claude model id, and the other providers ignore it.+ const isHarnessDefault = isClaudeProvider(provider)+ && !!config.defaultModel && m.id === config.defaultModel;return (<buttonkey={m.label}onClick={() => pickModel(m.id)}- title={m.id ?? 'CLI default model'}+ title={isHarnessDefault+ ? `${m.id} — the harness default (Settings → default model)`+ : (m.id ?? 'whatever the CLI defaults to')}style={{padding: '3px 8px 1px',background: active ? `var(--cth-${accent}-light)` : 'var(--cth-cream-100)',@@ -320,7 +327,7 @@ export function AddAgentModal({ onClose, config }: AddAgentModalProps) {color: 'var(--cth-ink-900)', cursor: 'pointer', border: 'none'}}>- {m.label}+ {m.label}{isHarnessDefault ? ' · default' : ''}</button>);})}diff --git a/src/renderer/src/components/CommandCenterPanel.tsx b/src/renderer/src/components/CommandCenterPanel.tsxindex 60a48d75..5ed83cf7 100644--- a/src/renderer/src/components/CommandCenterPanel.tsx+++ b/src/renderer/src/components/CommandCenterPanel.tsx@@ -223,6 +223,10 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {const [agentTokenCaps, setAgentTokenCaps] = useState<Record<string, number>>({});const [restarting, setRestarting] = useState<string | null>(null);const [restartErrors, setRestartErrors] = useState<Record<string, string>>({});+ // The harness's own default model (Settings → default model). Michael and every+ // new agent spawn on this, so the picker marks it — otherwise the only entry+ // reading "default" was the CLI's, which is a different thing entirely.+ const [defaultModel, setDefaultModel] = useState<string | undefined>(undefined);const [dispatchTo, setDispatchTo] = useState<string>(''); // '' = Michael decidesconst [dispatchText, setDispatchText] = useState('');const [dispatchMsg, setDispatchMsg] = useState<string | null>(null);@@ -237,6 +241,7 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {setRepos(c.registeredRepos ?? []);setTokenCap(c.costCapTokens);setAgentTokenCaps(c.agentTokenCaps ?? {});+ setDefaultModel(c.defaultModel);}).catch(() => { /* noop */ });}, []);@@ -623,14 +628,20 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {)}{modelProvidersForAgent(a.isGod).map((preset) => (<optgroup key={preset.id} label={preset.label}>- {modelsForProvider(preset.id).map((model) => (- <option- key={`${preset.id}:${model.id ?? 'default'}`}- value={encodeProviderModel(preset.id, model.id)}- >- {model.label}- </option>- ))}+ {modelsForProvider(preset.id).map((model) => {+ // `defaultModel` is a Claude model id, so it can only mark+ // an entry in the Claude group.+ const isHarnessDefault = preset.id === 'claude'+ && !!defaultModel && model.id === defaultModel;+ return (+ <option+ key={`${preset.id}:${model.id ?? 'cli-default'}`}+ value={encodeProviderModel(preset.id, model.id)}+ >+ {model.label}{isHarnessDefault ? ' · default' : ''}+ </option>+ );+ })}</optgroup>))}</Select>diff --git a/src/renderer/src/store/config.ts b/src/renderer/src/store/config.tsindex d48ef230..acb0ffb3 100644--- a/src/renderer/src/store/config.ts+++ b/src/renderer/src/store/config.ts@@ -99,7 +99,10 @@ export interface ModelOption {/** The models offered in the "add agent" picker and the per-agent selector.* `[1m]` selects the 1M-token context window variant. */export const AGENT_MODELS: ModelOption[] = [- { id: undefined, label: 'default' },+ // No `--model` flag at all — whatever the CLI itself defaults to. NOT the+ // harness's `config.defaultModel`; the pickers mark that one separately, and+ // labelling both "default" is what made the two impossible to tell apart.+ { id: undefined, label: 'CLI default' },{ id: 'claude-fable-5', label: 'Fable 5' },{ id: 'claude-opus-5', label: 'Opus 5 · 1M' },{ id: 'claude-opus-4-8', label: 'Opus 4.8' },@@ -117,7 +120,10 @@ export const AGENT_MODELS: ModelOption[] = [* quotes them and the command tokenizer keeps them whole). The command field* stays editable; `agy models` is the source of truth for the live list. */export const ANTIGRAVITY_MODELS: ModelOption[] = [- { id: undefined, label: 'default' },+ // No `--model` flag at all — whatever the CLI itself defaults to. NOT the+ // harness's `config.defaultModel`; the pickers mark that one separately, and+ // labelling both "default" is what made the two impossible to tell apart.+ { id: undefined, label: 'CLI default' },{ id: 'Gemini 3.1 Pro (High)', label: 'Gemini 3.1 Pro · High' },{ id: 'Gemini 3.1 Pro (Low)', label: 'Gemini 3.1 Pro · Low' },{ id: 'Gemini 3.5 Flash (High)', label: 'Gemini 3.5 Flash · High' },@@ -130,7 +136,10 @@ export const ANTIGRAVITY_MODELS: ModelOption[] = [/** Current OpenAI models offered by Codex for coding agents. */export const CODEX_MODELS: ModelOption[] = [- { id: undefined, label: 'default' },+ // No `--model` flag at all — whatever the CLI itself defaults to. NOT the+ // harness's `config.defaultModel`; the pickers mark that one separately, and+ // labelling both "default" is what made the two impossible to tell apart.+ { id: undefined, label: 'CLI default' },{ id: 'gpt-5.6-sol', label: 'GPT-5.6 Sol' },{ id: 'gpt-5.6-terra', label: 'GPT-5.6 Terra' },{ id: 'gpt-5.6-luna', label: 'GPT-5.6 Luna' }@@ -138,13 +147,19 @@ export const CODEX_MODELS: ModelOption[] = [/** Models reported by the installed Grok CLI (`grok models`). */export const GROK_MODELS: ModelOption[] = [- { id: undefined, label: 'default' },+ // No `--model` flag at all — whatever the CLI itself defaults to. NOT the+ // harness's `config.defaultModel`; the pickers mark that one separately, and+ // labelling both "default" is what made the two impossible to tell apart.+ { id: undefined, label: 'CLI default' },{ id: 'grok-4.5', label: 'Grok 4.5' }];/** Managed Kimi Code aliases accepted by `kimi --model <alias>`. */export const KIMI_MODELS: ModelOption[] = [- { id: undefined, label: 'default' },+ // No `--model` flag at all — whatever the CLI itself defaults to. NOT the+ // harness's `config.defaultModel`; the pickers mark that one separately, and+ // labelling both "default" is what made the two impossible to tell apart.+ { id: undefined, label: 'CLI default' },{ id: 'kimi-code/k3', label: 'Kimi K3' },{ id: 'kimi-code/kimi-for-coding', label: 'Kimi K2.7 Code' },{ id: 'kimi-code/kimi-for-coding-highspeed', label: 'Kimi K2.7 · HighSpeed' }