From b31fadd85a70f64808b037c27fa4545d252dc88a Mon Sep 17 00:00:00 2001 From: Lap Tran Date: Thu, 8 Oct 2026 18:25:29 -0400 Subject: [PATCH] config: OpenCode Go deepseek routing, no-mistakes review split, settings Route firstmate crews and both OpenCode sessions to opencode-go/deepseek-v4.1-flash. Split the no-mistakes pipeline so the implementer and fixer run deepseek-v4.1-flash and the reviewer runs opencode-go/glm-5.3-flash. Add Pi context-window overrides for the deepseek models, Pi package updates, a lavish-axi Claude SessionStart hook, and the AGENTS.md response-style rules. --- home.nix | 9 +++++++ home/.claude/settings.json | 14 ++++++++++ home/.config/firstmate/crew-dispatch.json | 4 +-- home/.config/opencode/opencode.json | 2 +- home/.config/opencode2/opencode.json | 2 +- home/.pi/agent/models.json | 32 +++++++++++++++++++++++ home/.pi/agent/settings.json | 6 ++--- home/AGENTS.md | 16 ++++++++++++ 8 files changed, 78 insertions(+), 7 deletions(-) diff --git a/home.nix b/home.nix index f14036f..289da8f 100644 --- a/home.nix +++ b/home.nix @@ -389,6 +389,15 @@ in mkdir -p "$(dirname "$cfg")" printf 'agent: [pi]\n' > "$cfg" fi + # Ensure the captain's model split (idempotent and additive, so hand edits survive). + # Implementer, pipeline default, and pipeline fixer run deepseek-v4.1-flash; + # the review role runs glm-5.3-flash, so review never uses the implementing model. + if ! grep -qE '^[[:space:]]*agent_config:' "$cfg"; then + printf 'agent_config:\n pi:\n model: opencode-go/deepseek-v4.1-flash\n' >> "$cfg" + fi + if ! grep -qE '^[[:space:]]*review_agents:' "$cfg"; then + printf 'review_agents:\n reviewer:\n agent: pi\n model: opencode-go/glm-5.3-flash\n' >> "$cfg" + fi # Ensure daemon running (launchd on macOS) "$bin" daemon restart >/dev/null 2>&1 || "$bin" daemon start >/dev/null 2>&1 || true ''; diff --git a/home/.claude/settings.json b/home/.claude/settings.json index e3ab775..17bed2e 100644 --- a/home/.claude/settings.json +++ b/home/.claude/settings.json @@ -3,5 +3,19 @@ "statusLine": { "type": "command", "command": "input=$(cat); model=$(echo \"$input\" | jq -r '.model.display_name'); used=$(echo \"$input\" | jq -r '.context_window.used_percentage // empty'); if [ -n \"$used\" ]; then printf \"%s | ctx: %.0f%% used\" \"$model\" \"$used\"; else printf \"%s\" \"$model\"; fi" + }, + "hooks": { + "SessionStart": [ + { + "matcher": "", + "hooks": [ + { + "type": "command", + "command": "lavish-axi", + "timeout": 10 + } + ] + } + ] } } diff --git a/home/.config/firstmate/crew-dispatch.json b/home/.config/firstmate/crew-dispatch.json index d69cfa8..236a547 100644 --- a/home/.config/firstmate/crew-dispatch.json +++ b/home/.config/firstmate/crew-dispatch.json @@ -2,8 +2,8 @@ "rules": [ { "when": "UI work where supplied screenshots or other image context materially affect the implementation or verification.", - "use": [{ "harness": "opencode", "model": "opencode-go/muse-spark-1.3-contributor", "provider": "opencode-go" }], - "why": "Muse Spark 1.3 Contributor is the vision-capable Go model for work where supplied screenshots or image context matter." + "use": [{ "harness": "opencode", "model": "opencode-go/deepseek-v4.1-flash", "provider": "opencode-go" }], + "why": "Captain's order 2026-10-08: every firstmate session and subagent runs the new OpenCode Go account with deepseek-v4.1-flash." } ], "default": [ diff --git a/home/.config/opencode/opencode.json b/home/.config/opencode/opencode.json index ed185d5..8edbb63 100644 --- a/home/.config/opencode/opencode.json +++ b/home/.config/opencode/opencode.json @@ -1,6 +1,6 @@ { "$schema": "https://opencode.ai/config.json", - "model": "opencode-go/gpt-6-luna", + "model": "opencode-go/deepseek-v4.1-flash", "instructions": ["AGENTS.md"], "provider": { "omlx": { diff --git a/home/.config/opencode2/opencode.json b/home/.config/opencode2/opencode.json index 8aa1787..61d8d49 100644 --- a/home/.config/opencode2/opencode.json +++ b/home/.config/opencode2/opencode.json @@ -1,6 +1,6 @@ { "$schema": "https://opencode.ai/config.json", - "model": "opencode-go/gpt-6-luna", + "model": "opencode-go/deepseek-v4.1-flash", "autoupdate": false, "providers": { "omlx": { diff --git a/home/.pi/agent/models.json b/home/.pi/agent/models.json index 23e4a08..cb808f7 100644 --- a/home/.pi/agent/models.json +++ b/home/.pi/agent/models.json @@ -38,6 +38,38 @@ "contextWindow": 272000 } } + }, + "opencode-go": { + "modelOverrides": { + "deepseek-v4-flash": { + "contextWindow": 256000 + }, + "deepseek-v4-flash-vision-exp": { + "contextWindow": 256000 + }, + "deepseek-v4-pro": { + "contextWindow": 256000 + }, + "deepseek-v4.1-flash": { + "contextWindow": 256000 + } + } + }, + "opencode": { + "modelOverrides": { + "deepseek-v4-flash": { + "contextWindow": 256000 + }, + "deepseek-v4-flash-vision-exp": { + "contextWindow": 256000 + }, + "deepseek-v4-pro": { + "contextWindow": 256000 + }, + "deepseek-v4.1-flash": { + "contextWindow": 256000 + } + } } } } diff --git a/home/.pi/agent/settings.json b/home/.pi/agent/settings.json index 2641ec4..6314c46 100644 --- a/home/.pi/agent/settings.json +++ b/home/.pi/agent/settings.json @@ -1,5 +1,5 @@ { - "lastChangelogVersion": "0.87.1", + "lastChangelogVersion": "1.0.0", "theme": "rose-pine-moon", "defaultProvider": "opencode-go", "defaultModel": "deepseek-v4.1-flash", @@ -17,8 +17,8 @@ }, "packages": [ "npm:pi-context", - "npm:pi-web-access@0.14.0", - "npm:@ryan_nookpi/pi-extension-codex-fast-mode@0.2.6", + "npm:pi-web-access@0.36.0", + "npm:@ryan_nookpi/pi-extension-codex-fast-mode@0.2.8", "git:github.com/algal/pi-openai-server-compaction@c6d593087709e9481223dc6c6c2269b371b5e055", "../../.automaton/plugins/pi-read-tweet" ], diff --git a/home/AGENTS.md b/home/AGENTS.md index 794bb9d..79eaadf 100644 --- a/home/AGENTS.md +++ b/home/AGENTS.md @@ -12,3 +12,19 @@ - Apply that same high standard to engineering excellence: lint, test failures, and test flakiness. If you see one, even if it is not caused by what you are working on right now, still get it fixed. - Before using "dynamic workflows", "ultra code" or any harness feature that immediately spawns a large swarm of subagents, always explain the tradeoffs and ask the user for explicit approval. + +## Response style (ASD-STE100, evidence-backed 2026-10-06) + +Source: 10 randomly sampled interactive transcripts from the past week (seed 20261006; population was 11: 8 Codex sessions Oct 3-4, 3 opencode backpass sessions Oct 5). The sampled assistant texts repeatedly violated the same STE rules at the exact points where the conversation stalled or confused. Follow these rules in every assistant response: +- Short sentences: max 20 words per instruction, 25 per explanation (STE 5.1/6.3). Observed worst case was a 57-word status sentence; split it instead. +- One instruction per sentence; use a vertical list for multi-step directions (STE 5.2/4.3). +- Instructions in the imperative; status in simple present or past. Report results, do not narrate intentions ("Let me X" appeared ~20 times in one session) (STE 5.3/3.2). +- Active voice with a named agent. "Commands are being rejected" hid who rejects them (STE 3.6). +- Condition before command: "If X, do Y" (STE 5.4). A buried proxy precondition sent the user to a dead URL first. +- One name per thing for the whole response (STE 1.11/9.4). Observed rotation: proxy/server/relay and page/app/calculator for single objects. +- Plain verbs, no phrasal verbs or jargon verbs: fall back, fill in, queued, wiring, smoke-test (STE 9.3). +- No -ing forms as verbs or subjects, no contractions, no dropped objects ("Confirming:" with no object; "isn't running") (STE 3.5/4.2). +- Only can/will/must as modals. The would/could/should sentences were exactly the untested claims that later confused (STE 3.2). +- Max three words per noun stack; define thread slang on first use (STE 2.1/1.10). +- No semicolons, including inside JSON rationale strings; write two sentences (STE 8.1). +- American spelling ("colour-coded" slipped through) and keep the articles a/the (STE 1.14/4.5).