Switch crew dispatch to free DeepSeek V4.1 Flash #7

Merged
hermes merged 2 commits from fm/dotfiles-crew-dispatch-free-model into main 2026-10-21 10:03:14 -04:00
2 changed files with 14 additions and 4 deletions

No files matched your search

+1 -1
View File
@@ -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): every crewmate and scout uses `opencode` + `opencode-go/deepseek-v4.1-flash` on the OpenCode Go subscription, documented by OpenCode as zero-retention with no model training. The free `opencode/deepseek-v4.1-flash-free` tier is not used for crew work because it is metered and exhausting it stalls a task for hours mid-run. 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-go` login through the spawn-owned symlink (the isolated worker data root links the primary `<XDG_DATA_HOME>/opencode/auth.json`; no `~/.pi/agent/auth.json` reliance). Launch with shell alias `fm` (`cd` + OpenCode 2 via `~/.local/bin/oc2`); the primary stays OpenCode 2, only crews run on the opencode harness. 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-20, every coding crewmate and scout uses `opencode` + `opencode/deepseek-v4.1-flash-free` through the OpenCode CLI, because the paid Go subscription was close to emptying its monthly window. The validation pipeline stays on Pi with `opencode-go/deepseek-v4.1-flash` steps and the `opencode-go/glm-5.3-flash` reviewer. The free tier rate-limits under heavy parallel work, so a stalled worker falls back to the paid Go model only on the captain's word. 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 `<XDG_DATA_HOME>/opencode/auth.json`; no `~/.pi/agent/auth.json` reliance). Launch with shell alias `fm` (`cd` + OpenCode 2 via `~/.local/bin/oc2`); the primary stays OpenCode 2, only crews run on the opencode harness. Self-update via `/updatefirstmate`, not rebuild.
- OpenCode 2 is 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 OpenCode 2), `oc2` (OpenCode 2, isolated). They are intentional high-agency shortcuts.
+13 -3
View File
@@ -2,11 +2,21 @@
"rules": [
{
"when": "UI work where supplied screenshots or other image context materially affect the implementation or verification.",
"use": [{ "harness": "opencode", "model": "opencode-go/deepseek-v4.1-flash", "provider": "opencode-go" }],
"why": "Captain's order 2026-10-16: every crewmate and scout runs DeepSeek V4.1 Flash on the OpenCode Go subscription. The free tier was exhausted mid-task and stalled work for hours, so crews now run the paid Go model, which OpenCode documents as zero-retention and not used for training."
"use": [
{
"harness": "opencode",
"model": "opencode/deepseek-v4.1-flash-free",
"provider": "opencode"
}
],
"why": "Captain's order 2026-10-20: every coding crewmate and scout runs DeepSeek V4.1 Flash Free through the OpenCode CLI, which answers this model (verified with a one-shot probe the same day). The paid Go subscription was at 6 percent of its monthly window and projected to empty the next evening. The validation pipeline stays on Pi with paid deepseek-v4.1-flash and the glm-5.3-flash reviewer. Known risk: the free tier rate-limits under heavy parallel work, so a stalled worker falls back to the paid Go model on the captain's word."
}
],
"default": [
{ "harness": "opencode", "model": "opencode-go/deepseek-v4.1-flash", "provider": "opencode-go" }
{
"harness": "opencode",
"model": "opencode/deepseek-v4.1-flash-free",
"provider": "opencode"
}
]
}