Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f49ba2a84b | ||
|
|
c84f536c76 | ||
|
|
2005db22e6 | ||
|
|
766b2bbaeb | ||
|
|
550c94d58a | ||
|
|
a58546900f | ||
|
|
1fb1a23eea | ||
|
|
d4fd08cabe |
No files matched your search
@@ -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 `<XDG_DATA_HOME>/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 `<XDG_DATA_HOME>/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.
|
||||
|
||||
@@ -11,6 +11,28 @@ let
|
||||
ytTranscribe = pkgs.runCommand "yt-transcribe" { } ''
|
||||
install -Dm755 ${./home/bin/yt-transcribe} $out/bin/yt-transcribe
|
||||
'';
|
||||
# Pinned pstack skills tree (cursor/plugins). `tdd` is deliberately absent:
|
||||
# an existing user-level tdd skill owns that name. See firstmate's
|
||||
# docs/adopted-skills.md for why these eleven skills exist.
|
||||
pstackSkillNames = [
|
||||
"statechart"
|
||||
"create-verification-skill"
|
||||
"maintain-verification-skill"
|
||||
"correct"
|
||||
"benchmark-checklist"
|
||||
"architect"
|
||||
"technical-writing"
|
||||
"unslop"
|
||||
"recall"
|
||||
"ketchup"
|
||||
"blast-radius"
|
||||
];
|
||||
pstackSkills = pkgs.fetchFromGitHub {
|
||||
owner = "cursor";
|
||||
repo = "plugins";
|
||||
rev = "6b0300214a09fd6029cfb7077043125758cd1fd2";
|
||||
hash = "sha256-TDuZ1v+taPdqyvvCs1VHUjtpSy8zHxhQKJv/kIPTpK8=";
|
||||
};
|
||||
in
|
||||
|
||||
{
|
||||
@@ -58,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).
|
||||
@@ -481,6 +503,42 @@ in
|
||||
fi
|
||||
'';
|
||||
|
||||
# pstack skills installed from the pinned `pstackSkills` source above (folder
|
||||
# pstack/skills). The record of why these eleven skills exist is firstmate's
|
||||
# docs/adopted-skills.md. They live only in ~/.agents/skills, which is outside
|
||||
# git and Nix, so this block restores them on a fresh machine.
|
||||
# `tdd` is skipped on purpose: an existing user-level tdd skill owns that
|
||||
# name, so the pstack copy is never installed.
|
||||
# Each run replaces only the eleven target directories; every other skill,
|
||||
# including an existing tdd skill, stays untouched. No `exit 0` here,
|
||||
# because activation blocks are inlined into one flat script, so an early
|
||||
# exit would skip the blocks that follow.
|
||||
home.activation.pstackSkills = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
set -euo pipefail
|
||||
src="${pstackSkills}/pstack/skills"
|
||||
dest="$HOME/.agents/skills"
|
||||
if [ ! -d "$src" ]; then
|
||||
echo "pstackSkills: pinned source tree missing at $src" >&2
|
||||
exit 1
|
||||
fi
|
||||
mkdir -p "$dest"
|
||||
for name in ${lib.concatStringsSep " " pstackSkillNames}; do
|
||||
if [ ! -d "$src/$name" ]; then
|
||||
echo "pstackSkills: pinned source is missing skill $name" >&2
|
||||
exit 1
|
||||
fi
|
||||
# Remove first so a renamed source file never lingers in the old copy.
|
||||
rm -rf "$dest/$name"
|
||||
if ! cp -R "$src/$name" "$dest/$name"; then
|
||||
echo "pstackSkills: failed to install $name" >&2
|
||||
exit 1
|
||||
fi
|
||||
# Store files are read-only; make the installed copy writable again.
|
||||
chmod -R u+w "$dest/$name"
|
||||
done
|
||||
echo "pstackSkills: installed ${toString (lib.length pstackSkillNames)} pinned skills into $dest"
|
||||
'';
|
||||
|
||||
# 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.
|
||||
|
||||
@@ -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": "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."
|
||||
},
|
||||
{
|
||||
"when": "UI work where supplied screenshots or other image context materially affect the implementation or verification.",
|
||||
"use": [
|
||||
|
||||
@@ -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
|
||||
@@ -82,6 +82,14 @@ Container controls:
|
||||
|
||||
Use dummy data only. The exclusions cover common secrets and the top-level `data` directory, not every possible secret path. Review the copied tree, or add `--exclude` patterns, before you run a target that reads credentials from unexpected places. Audit findings do not belong in this repo or in the run directory.
|
||||
|
||||
## pstack skills (pinned on every rebuild)
|
||||
|
||||
`home.activation.pstackSkills` restores the eleven adopted pstack skills into `~/.agents/skills`, the shared user-level skill directory that the security-audit section describes. The source is `https://github.com/cursor/plugins` at a fixed commit (folder `pstack/skills`), pinned by the `pstackSkills` `fetchFromGitHub` in `home.nix`. That pin is the only record of the commit in this repo: to move to newer upstream content, change `rev` and `hash` together, then rerun `./rebuild.sh`.
|
||||
|
||||
Each run removes and recopies only those eleven directories, so a renamed upstream file never lingers and every other skill in `~/.agents/skills` stays untouched, including an existing tdd skill. `tdd` is skipped on purpose: an existing user-level tdd skill owns that name, so the pstack copy is never installed. The block adds no `~/.claude/skills` link, so Claude Code does not see these eleven skills.
|
||||
|
||||
Why these eleven skills exist is recorded in firstmate's `docs/adopted-skills.md`, outside this repo.
|
||||
|
||||
## 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.
|
||||
|
||||
Reference in new issue
Block a user