Compare commits
15
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
86844a3646 | ||
|
|
16677278ba | ||
|
|
4a4ce6c585 | ||
|
|
7603df3666 | ||
|
|
7f5bf7b111 | ||
|
|
738c1de3f9 | ||
|
|
ee43a5cd8f | ||
|
|
b2081fa14f | ||
|
|
efe174ba64 | ||
|
|
b31fadd85a | ||
|
|
acbad2d954 | ||
|
|
26790706c8 | ||
|
|
96e8d4ce51 | ||
|
|
9eaba6aae6 | ||
|
|
e8447c3c28 |
No files matched your search
@@ -6,5 +6,7 @@ home/.config/beets/state.pickle
|
||||
home/.config/herdr/.plugins.lock
|
||||
home/.config/herdr/*.log
|
||||
home/.config/herdr/*.sock
|
||||
home/.config/herdr/herdr.sock.agent
|
||||
home/.config/herdr/session.json
|
||||
home/.config/herdr/release-notes.json
|
||||
home/.config/herdr/session-snapshots/
|
||||
@@ -8,9 +8,10 @@ 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): default `opencode` + `opencode-go/deepseek-v4.1-flash`; UI/image work uses `opencode` + `opencode-go/muse-spark-1.3-contributor`, which needs the OpenCode Go "Allow models that train on request data" workspace opt-in. 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.
|
||||
- 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.
|
||||
|
||||
## Maintaining this file
|
||||
|
||||
|
||||
@@ -66,6 +66,7 @@
|
||||
"codex" # Codex CLI; shares ~/.codex/config.toml with the desktop app
|
||||
"docker-desktop"
|
||||
"grok-build"
|
||||
"opensuperwhisper" # local Whisper dictation; model seed in home.nix
|
||||
"puremac"
|
||||
"utm"
|
||||
"wezterm"
|
||||
|
||||
@@ -389,7 +389,55 @@ 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
|
||||
'';
|
||||
|
||||
# OpenSuperWhisper - local voice-first prompting (cask in configuration.nix).
|
||||
# The app reads its model from its own Application Support directory, so the
|
||||
# 1.6 GB Whisper model is downloaded here once and kept outside the Nix store.
|
||||
# A failed download must not fail the switch: warn, drop the partial file, and
|
||||
# let the app's Settings download it later. Only a missing or unusable model
|
||||
# selection is seeded; every other setting belongs to the app and survives the
|
||||
# rebuild. Never write hasCompletedOnboarding - onboarding must still run so the
|
||||
# captain can grant Microphone/Accessibility (macOS TCC grants are manual by
|
||||
# design). A running app picks up new defaults on its next launch; do not kill
|
||||
# it here.
|
||||
home.activation.openSuperWhisper = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
set -euo pipefail
|
||||
supportDir="$HOME/Library/Application Support/ru.starmel.OpenSuperWhisper"
|
||||
modelDir="$supportDir/whisper-models"
|
||||
modelPath="$modelDir/ggml-large-v3-turbo.bin"
|
||||
modelUrl="https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-large-v3-turbo.bin?download=true"
|
||||
modelSha="1fc70f774d38eb169993ac391eea357ef47c88757ef72ee5943879b7e8e2bc69"
|
||||
curl="${pkgs.curl}/bin/curl"
|
||||
|
||||
mkdir -p "$modelDir"
|
||||
if [ ! -f "$modelPath" ]; then
|
||||
tmp="$(${pkgs.coreutils}/bin/mktemp "$modelDir/.ggml-large-v3-turbo.XXXXXX")"
|
||||
if "$curl" -fL --retry 3 --connect-timeout 30 -o "$tmp" "$modelUrl" \
|
||||
&& printf '%s %s\n' "$modelSha" "$tmp" | ${pkgs.coreutils}/bin/sha256sum -c - >/dev/null 2>&1; then
|
||||
mv "$tmp" "$modelPath"
|
||||
else
|
||||
echo "openSuperWhisper: WARNING: could not download or verify the Whisper model." >&2
|
||||
echo "openSuperWhisper: the app still works; download \"Whisper V3 Large\" in Settings later." >&2
|
||||
${pkgs.coreutils}/bin/rm -f "$tmp"
|
||||
fi
|
||||
fi
|
||||
|
||||
defaults=/usr/bin/defaults
|
||||
selectedModel="$("$defaults" read ru.starmel.OpenSuperWhisper selectedWhisperModelPath 2>/dev/null || true)"
|
||||
if [ -f "$modelPath" ] && { [ -z "$selectedModel" ] || [ ! -f "$selectedModel" ]; }; then
|
||||
"$defaults" write ru.starmel.OpenSuperWhisper selectedWhisperModelPath -string "$modelPath"
|
||||
fi
|
||||
'';
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -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/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/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"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "31d6fb2d618bca1482b9f274751ead5f03461408" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
|
||||
"neogit": { "branch": "master", "commit": "f8674ec894315c02449b61c9de9a116c5aafeb90" },
|
||||
"oil.nvim": { "branch": "master", "commit": "b73018b75affd13fa38e2fc94ef753b465f770d7" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
|
||||
|
||||
@@ -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": {
|
||||
@@ -22,6 +22,31 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"opencode": {
|
||||
"models": {
|
||||
"muse-spark-1.3-contributor-free": {
|
||||
"limit": {
|
||||
"context": 256000,
|
||||
"input": 256000,
|
||||
"output": 128000
|
||||
}
|
||||
},
|
||||
"muse-spark-1.3": {
|
||||
"limit": {
|
||||
"context": 256000,
|
||||
"input": 256000,
|
||||
"output": 128000
|
||||
}
|
||||
},
|
||||
"muse-spark-1.2": {
|
||||
"limit": {
|
||||
"context": 256000,
|
||||
"input": 256000,
|
||||
"output": 128000
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"opencode-go": {
|
||||
"models": {
|
||||
"gpt-6-luna": {
|
||||
@@ -37,6 +62,20 @@
|
||||
"input": 256000,
|
||||
"output": 128000
|
||||
}
|
||||
},
|
||||
"muse-spark-1.3-contributor": {
|
||||
"limit": {
|
||||
"context": 256000,
|
||||
"input": 256000,
|
||||
"output": 128000
|
||||
}
|
||||
},
|
||||
"muse-spark-1.2-contributor": {
|
||||
"limit": {
|
||||
"context": 256000,
|
||||
"input": 256000,
|
||||
"output": 128000
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"lastChangelogVersion": "0.87.1",
|
||||
"lastChangelogVersion": "1.0.4",
|
||||
"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"
|
||||
],
|
||||
|
||||
@@ -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).
|
||||
@@ -14,3 +14,21 @@ The firstmate crew dispatch + Gitea PR helper are wired by `darwin-rebuild`, but
|
||||
git remote set-url origin http://unraid.local:3003/transnet/investor-flow
|
||||
|
||||
Verify: `fm` launches OpenCode 2 as the first mate (isolated `~/.config/opencode2`); `oc2 --version` prints an OpenCode 2 version; `pi --list-models mimo` shows `opencode-go/mimo-v2.5-pro`; `tea pulls list --repo transnet/investor-flow` works.
|
||||
|
||||
## OpenSuperWhisper (local voice input)
|
||||
|
||||
Hold a shortcut, speak, release, and the transcript pastes into the focused app. Everything runs on the Mac: no audio or transcript leaves the machine.
|
||||
|
||||
First run:
|
||||
|
||||
1. The `opensuperwhisper` cask is installed and `home.activation.openSuperWhisper` pre-downloads the model to `~/Library/Application Support/ru.starmel.OpenSuperWhisper/whisper-models/ggml-large-v3-turbo.bin`. It selects "Whisper V3 Large" only when no model is selected or the selected file is gone, so a model you pick in the app stays selected.
|
||||
2. Open the app. Onboarding should already show "Whisper V3 Large" as downloaded.
|
||||
3. Grant **Microphone**, **Accessibility**, and **Input Monitoring** when macOS asks. Input Monitoring is needed because the trigger is Right Option, a single modifier key.
|
||||
4. Keep the Right Option trigger (or change it in the app's settings). Hold it, speak, release. Auto-paste puts the text into the focused terminal or editor.
|
||||
|
||||
Notes:
|
||||
|
||||
- A fresh install starts with Option plus backtick instead of Right Option, and that combination needs no Input Monitoring. The activation never writes the trigger, the language, or the paste settings, so whatever you choose in the app survives the next rebuild.
|
||||
- The model is local-only (about 1.6 GB). If the download failed during the rebuild, rerun `./rebuild.sh` or download the large Turbo V3 model ("Turbo V3 large" in the app's Settings) by hand.
|
||||
- Voice is for prompts and prose. Type URLs, file paths, and exact identifiers yourself.
|
||||
- The first-run steps above are manual on purpose: macOS TCC permissions cannot be granted declaratively.
|
||||
Reference in new issue
Block a user