Install cloudflare/security-audit through the Skills CLI with Homebrew npx so the multi-file skill stays upstream-identical. The universal target ~/.agents/skills is read by OpenCode, Codex, Pi, and Grok; the CLI also links it into ~/.claude/skills for Claude Code. Skip when installed, warn instead of failing when GitHub is unreachable, and never target the read-only ~/.config/opencode/skills store link. Return crew dispatch to opencode-go/deepseek-v4.1-flash in both the UI rule and the default, per the captain's 2026-10-21 order, and correct the AGENTS.md routing note. Stop opencode2's activation from calling exit 0: activation blocks are inlined into one flat script, so it silently skipped every later block (securityAuditSkill, setupLaunchAgents, syncMusic).
5.5 KiB
5.5 KiB
Project notes for agents
Deliberate decisions in this repo - do NOT silently revert them:
homebrew.onActivation.cleanup = "zap"inconfiguration.nixis intentional. It forces the good habit of declaring every Homebrew package in the Nix config instead of installing things ad-hoc, which keeps the machine reproducible. Do not soften it touninstallornone. Users are warned about its effect; this note is for anyone tempted to change the setting itself.- Agent configs under
home/are the source of truth.home.nixinstalls them withmkOutOfStoreSymlink+force = true, so edits to files inhome/apply live after the first rebuild that creates the symlink. Prefer editing those paths, not the live~/.claude/~/.grok/~/.picopies.rebuild.shrotates stale*.backupfiles before switch so home-manager never fails with "would be clobbered". - Grok Build is first-class here:
home/.grok/config.tomlandhome/AGENTS.md(linked as~/.grok/AGENTS.md). Claude, Codex, opencode, and Pi share the samehome/AGENTS.mdfor multi-agent work. - 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/agenttree - sessions, auth, npm cache, and herdr'sextensions/herdr-agent-state.tsstay live. - herdr stores runtime state beside its config, so
~/.config/herdrstays a real directory and onlyconfig.tomlis symlinked;home.activation.herdrConfigDirmigrates the old whole-directory symlink and clears leaked artifacts. Do not symlink the whole directory - rationale and artifact list are inhome.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.codexOpenCodeGomerges the repo fragmenthome/.codex/config.tomlinto 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.jsonstays 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 thechatgptcask - do not use the deprecatedcodex-appcask. - firstmate lives at
~/Documents/firstmateas a mutable git clone (not in the Nix store).home.activation.firstmateclones it if missing and seedsconfig/backend=herdr+config/crew-harness=opencodeonly when those files are absent. Crew routing ishome/.config/firstmate/crew-dispatch.json(symlinked in): per the captain's order 2026-10-21, every coding crewmate and scout usesopencode+opencode-go/deepseek-v4.1-flashthrough the OpenCode CLI, after the free lane hit "Free usage exceeded" with a 10.5 hour retry and ended five sessions in forty minutes. The freedeepseek-v4.1-flash-freeorder of 2026-10-20 resumes when that lane resets. The validation pipeline stays on Pi withopencode-go/deepseek-v4.1-flashsteps and theopencode-go/glm-5.3-flashreviewer. Avoid themuse-spark-*-contributormodels, which train on prompts, and theexo-free,mimo-*-free, andnemotron-*-freemodels, whose data may be used to improve the model.cat-jam-freeretains 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.jsonreliance). Launch with shell aliasfm(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@betawith Homebrew's npm (home.activation.opencode2). Launch throughhome/bin/oc2soOPENCODE_CONFIGstays athome/.config/opencode2/opencode.jsonand cannot rewrite OpenCode 1.x's~/.config/opencode. Do not add a brewopencode/opencode2formula;zapwould fight the npm install. firstmate harness detection matches*opencode*, so theopencode2process 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
opensuperwhispercask, andhome.activation.openSuperWhisperdownloads its Whisper model (ggml-large-v3-turbo.binunder 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, somodifierOnlyHotkey = rightOptionon 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
Keep this file for knowledge useful to almost every future agent session in this project. Do not repeat what the codebase already shows; point to the authoritative file or command instead. Prefer rewriting or pruning existing entries over appending new ones. When updating this file, preserve this bar for all agents and keep entries concise.