From 2005db22e69bff964f5c112f6220faef52671acb Mon Sep 17 00:00:00 2001 From: Lap Tran Date: Sun, 8 Nov 2026 10:31:34 -0500 Subject: [PATCH 1/3] feat(home): route design tasks to Pi GPT-6.1 Sol and set herdr dracula theme --- home/.config/firstmate/crew-dispatch.json | 10 ++++++++++ home/.config/herdr/config.toml | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/home/.config/firstmate/crew-dispatch.json b/home/.config/firstmate/crew-dispatch.json index 535ff1e..e9af8a5 100644 --- a/home/.config/firstmate/crew-dispatch.json +++ b/home/.config/firstmate/crew-dispatch.json @@ -1,5 +1,15 @@ { "rules": [ + { + "when": "Design, architecture, architectural review, or design review tasks. This includes product design, UI/UX design, system design, and design investigations. For design tasks with screenshots or other image context, this rule takes precedence over the UI implementation rule. Ordinary implementation and routine code validation do not match this rule. When a task moves from design to implementation, resolve the implementation profile again rather than retaining this model for continuity.", + "use": { + "harness": "pi", + "model": "openai-codex/gpt-6.1-sol", + "effort": "xhigh", + "provider": "pi" + }, + "why": "Captain's order: use GPT-6.1 Sol through openai-codex in Pi for design and architectural review tasks. Other task types retain their existing profiles." + }, { "when": "UI work where supplied screenshots or other image context materially affect the implementation or verification.", "use": [ diff --git a/home/.config/herdr/config.toml b/home/.config/herdr/config.toml index 5e79fbc..1aba2d9 100644 --- a/home/.config/herdr/config.toml +++ b/home/.config/herdr/config.toml @@ -16,3 +16,7 @@ copy_mode = "prefix+y" # herdr's copy-mode entry key; copy-mode's own internal [ui] # Agents panel order: explicit choice of "spaces" (grouped by space, the default) over "priority". agent_panel_sort = "spaces" + +[theme] +name = "dracula" +auto_switch = false From c84f536c76743c7ab3c17dbf9456e0682b3c39d3 Mon Sep 17 00:00:00 2001 From: Lap Tran Date: Sun, 8 Nov 2026 10:46:13 -0500 Subject: [PATCH 2/3] no-mistakes(review): Declare codex provider for the Pi design dispatch rule --- home/.config/firstmate/crew-dispatch.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.config/firstmate/crew-dispatch.json b/home/.config/firstmate/crew-dispatch.json index e9af8a5..2cad9a2 100644 --- a/home/.config/firstmate/crew-dispatch.json +++ b/home/.config/firstmate/crew-dispatch.json @@ -6,7 +6,7 @@ "harness": "pi", "model": "openai-codex/gpt-6.1-sol", "effort": "xhigh", - "provider": "pi" + "provider": "codex" }, "why": "Captain's order: use GPT-6.1 Sol through openai-codex in Pi for design and architectural review tasks. Other task types retain their existing profiles." }, From f49ba2a84b5ac6ca177e61cd17d34b31e35fb694 Mon Sep 17 00:00:00 2001 From: Lap Tran Date: Sun, 8 Nov 2026 10:55:37 -0500 Subject: [PATCH 3/3] no-mistakes(document): Document design dispatch rule in agent notes --- AGENTS.md | 2 +- home.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index f801c47..3251244 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -8,7 +8,7 @@ Deliberate decisions in this repo - do NOT silently revert them: - Pi is managed the same way: `home/.pi/agent/{settings,models}.json`, `themes/`, and custom extensions (`terminal-status-title`, `calm`). Do not symlink the whole `~/.pi/agent` tree - sessions, auth, npm cache, and herdr's `extensions/herdr-agent-state.ts` stay live. - herdr stores runtime state beside its config, so `~/.config/herdr` stays a real directory and only `config.toml` is symlinked; `home.activation.herdrConfigDir` migrates the old whole-directory symlink and clears leaked artifacts. Do not symlink the whole directory - rationale and artifact list are in `home.nix`. - Codex runs on the OpenCode Go subscription. The ChatGPT app owns and rewrites the live `~/.codex/config.toml`, so it is NOT symlinked; `home.activation.codexOpenCodeGo` merges the repo fragment `home/.codex/config.toml` into it on every rebuild, and the app's own sections (`[desktop]`, `[plugins]`, `[mcp_servers]`, ...) survive. Auth is command-backed via `~/.local/bin/opencode-go-token` (prints the key from the opencode store), so `~/.codex/auth.json` stays in ChatGPT mode and ChatGPT sign-in coexists with Go. Only Go models that speak the Responses API work (`deepseek-v4.1-flash`, `gpt-6-luna`, `gpt-5.6-luna`, `grok-4.7/4.6`); GLM/Kimi/MiMo/LongCat are chat-completions-only and need a proxy. Desktop Codex is now the `chatgpt` cask - do not use the deprecated `codex-app` cask. -- firstmate lives at `~/Documents/firstmate` as a mutable git clone (not in the Nix store). `home.activation.firstmate` clones it if missing and seeds `config/backend=herdr` + `config/crew-harness=opencode` only when those files are absent. Crew routing is `home/.config/firstmate/crew-dispatch.json` (symlinked in): per the captain's order 2026-10-21, every coding crewmate and scout uses `opencode` + `opencode-go/deepseek-v4.1-flash` through the OpenCode CLI. The free `deepseek-v4.1-flash-free` order of 2026-10-20 resumes when that lane resets. The validation pipeline stays on Pi with `opencode-go/deepseek-v4.1-flash` steps and the `opencode-go/glm-5.3-flash` reviewer. Avoid the `muse-spark-*-contributor` models, which train on prompts, and the `exo-free`, `mimo-*-free`, and `nemotron-*-free` models, whose data may be used to improve the model. `cat-jam-free` retains for 30 days. Crews inherit the primary's OpenCode login through the spawn-owned symlink (the isolated worker data root links the primary `/opencode/auth.json`; no `~/.pi/agent/auth.json` reliance). Launch with shell alias `fm` (`cd` + `pi` with the two firstmate primary extensions); the primary runs Pi on the OpenCode Go subscription, while crews run on the opencode harness. `oc2` remains the isolated OpenCode 2 fallback. Self-update via `/updatefirstmate`, not rebuild. +- firstmate lives at `~/Documents/firstmate` as a mutable git clone (not in the Nix store). `home.activation.firstmate` clones it if missing and seeds `config/backend=herdr` + `config/crew-harness=opencode` only when those files are absent. Crew routing is `home/.config/firstmate/crew-dispatch.json` (symlinked in): per the captain's order 2026-10-21, coding crewmates and scouts use `opencode` + `opencode-go/deepseek-v4.1-flash` through the OpenCode CLI. Design, architecture, and design-review tasks are the exception: the file's first rule sends them to Pi with `openai-codex/gpt-6.1-sol` at `xhigh`, and implementation tasks re-resolve their profile instead of keeping that model. The free `deepseek-v4.1-flash-free` order of 2026-10-20 resumes when that lane resets. The validation pipeline stays on Pi with `opencode-go/deepseek-v4.1-flash` steps and the `opencode-go/glm-5.3-flash` reviewer. Avoid the `muse-spark-*-contributor` models, which train on prompts, and the `exo-free`, `mimo-*-free`, and `nemotron-*-free` models, whose data may be used to improve the model. `cat-jam-free` retains for 30 days. Crews inherit the primary's OpenCode login through the spawn-owned symlink (the isolated worker data root links the primary `/opencode/auth.json`; no `~/.pi/agent/auth.json` reliance). Launch with shell alias `fm` (`cd` + `pi` with the two firstmate primary extensions); the primary runs Pi on the OpenCode Go subscription, while crews run on the opencode harness unless a dispatch rule selects another harness. `oc2` remains the isolated OpenCode 2 fallback. Self-update via `/updatefirstmate`, not rebuild. - OpenCode 2 is the isolated OpenCode harness behind `oc2`, not the firstmate primary. It is not a Homebrew formula: install `@opencode-ai/cli@beta` with Homebrew's npm (`home.activation.opencode2`). Launch through `home/bin/oc2` so `OPENCODE_CONFIG` stays at `home/.config/opencode2/opencode.json` and cannot rewrite OpenCode 1.x's `~/.config/opencode`. Do not add a brew `opencode` / `opencode2` formula; `zap` would fight the npm install. firstmate harness detection matches `*opencode*`, so the `opencode2` process name still classifies as OpenCode. - Shell aliases: `cc` (Claude skip-permissions), `co` (Codex full-auto), `gb` (Grok --yolo), `fm` (firstmate via Pi), `oc2` (OpenCode 2, isolated). They are intentional high-agency shortcuts. - OpenSuperWhisper is installed by the `opensuperwhisper` cask, and `home.activation.openSuperWhisper` downloads its Whisper model (`ggml-large-v3-turbo.bin` under the app's Application Support directory, never the Nix store) and seeds the model selection only when it is missing or dangling. All other app settings (trigger, language, paste behavior) belong to the app and must not be rewritten by a rebuild, so `modifierOnlyHotkey = rightOption` on this machine stays the effective trigger. Microphone/Accessibility/Input Monitoring grants stay manual because macOS TCC cannot be declarative; do not kill a running app to apply defaults. The model is local-only. diff --git a/home.nix b/home.nix index cf4878f..ab5ce60 100644 --- a/home.nix +++ b/home.nix @@ -80,7 +80,7 @@ in cc = "claude --dangerously-skip-permissions"; co = "codex --full-auto"; gb = "grok --yolo"; - # firstmate primary session via Pi on the OpenCode Go subscription; crewmates = OpenCode + # firstmate primary session via Pi on the OpenCode Go subscription; crewmates = OpenCode by default fm = "cd ${firstmateHome} && exec pi"; oc2 = "${home}/.local/bin/oc2"; # Sync ~/Music into the beets library on Unraid (requires NAS mounted).