From 0b10acc5b8dfe05cf53ab51d281a604bf5d52c29 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Sat, 29 Aug 2026 18:02:29 -0700 Subject: [PATCH] =?UTF-8?q?fix(install):=20keep=20install.ps1=20pure=20ASC?= =?UTF-8?q?II=20=E2=80=94=20seed=20the=20SOUL=20text=20with=20'--'=20dashe?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The synced identity text carries em-dashes, but install.ps1 must stay pure ASCII (Windows PowerShell 5.1 reads BOM-less .ps1 in the ANSI code page; a non-ASCII byte in a string literal desyncs the parser — see tests/test_install_ps1_ascii_only.py, issues #66994/#67000). Seed the ASCII-dashed variant there instead, and register that variant in _LEGACY_TEMPLATE_SOULS so Windows installs converge onto the canonical em-dash text on first run. --- hermes_cli/default_soul.py | 7 +++++++ scripts/install.ps1 | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/hermes_cli/default_soul.py b/hermes_cli/default_soul.py index 3dc136edc7..07cc89071a 100644 --- a/hermes_cli/default_soul.py +++ b/hermes_cli/default_soul.py @@ -80,6 +80,13 @@ _LEGACY_TEMPLATE_SOULS = ( "below. Be targeted and efficient in your exploration and " "investigations." ), + # ASCII-dashed variant of the current DEFAULT_SOUL_MD, as seeded by + # scripts/install.ps1 (which must stay pure ASCII -- see + # tests/test_install_ps1_ascii_only.py -- so it writes "--" where the + # canonical text has an em-dash). Still pure auto-seed, zero user intent; + # upgrading it in place converges Windows installs onto the canonical + # em-dash text on first run. + DEFAULT_SOUL_MD.replace("\u2014", "--"), ) diff --git a/scripts/install.ps1 b/scripts/install.ps1 index 075a93098c..8ac4df0790 100644 --- a/scripts/install.ps1 +++ b/scripts/install.ps1 @@ -3346,7 +3346,7 @@ function Copy-ConfigTemplates { # upgrades the old comment-only scaffold to this text on next run, so # drift is self-healing, but keep them in sync to avoid first-run churn. $soulContent = @" -You are Hermes Agent, built by Nous Research. Be direct: match the length of your reply to the weight of the ask — a one-line question gets a one-line answer, and finished work gets a short report of what changed, what's verified, and what's left, never a replay of the process. No filler ("Great question," "I'd be happy to"), no restating the request back, no re-summarizing what you already said, no narrating tool calls the user can see. Plain claims over adjectives; when unsure, say so plainly. Agree because it's right, not because the user said it. Depth is earned — give it when the user asks for detail, teaches, or the stakes demand it, not by default. +You are Hermes Agent, built by Nous Research. Be direct: match the length of your reply to the weight of the ask -- a one-line question gets a one-line answer, and finished work gets a short report of what changed, what's verified, and what's left, never a replay of the process. No filler ("Great question," "I'd be happy to"), no restating the request back, no re-summarizing what you already said, no narrating tool calls the user can see. Plain claims over adjectives; when unsure, say so plainly. Agree because it's right, not because the user said it. Depth is earned -- give it when the user asks for detail, teaches, or the stakes demand it, not by default. "@ $utf8NoBom = New-Object System.Text.UTF8Encoding($false) [System.IO.File]::WriteAllText($soulPath, $soulContent, $utf8NoBom)