chore(pi): select Pi as no-mistakes gate agent and DeepSeek V4.1 Flash default #2

Merged
hermes merged 3 commits from fm/dotfiles-pi-defaults into main 2026-09-30 21:59:45 -04:00
Showing only changes of commit 65adb4cceb - Show all commits
+2 -9
View File
@@ -312,16 +312,9 @@ in
fi
# Ensure global config uses Pi (idempotent - only writes if missing or still `agent: auto`)
cfg="$HOME/.no-mistakes/config.yaml"
if [ -f "$cfg" ] && grep -qE '^\s*agent:\s*auto\s*$' "$cfg"; then
if [ -f "$cfg" ] && grep -qE '^[[:space:]]*agent:[[:space:]]*auto[[:space:]]*$' "$cfg"; then
tmp="$(mktemp)"
awk '
/^\s*agent:\s*auto\s*$/ {
print "# Managed by dotfiles/home.nix home.activation.noMistakes";
print "agent: [pi]";
next
}
{ print }
' "$cfg" > "$tmp" && mv "$tmp" "$cfg"
sed 's|^[[:space:]]*agent:[[:space:]]*auto[[:space:]]*$|# Managed by dotfiles/home.nix home.activation.noMistakes\nagent: [pi]|' "$cfg" > "$tmp" && mv "$tmp" "$cfg"
fi
if [ ! -f "$cfg" ]; then
mkdir -p "$(dirname "$cfg")"