Aino 技术参考 · Windows-Specific Quirks
Aino 适用范围:本章保留 Windows 终端、键盘、编码和运行时问题的技术说明。诊断应以真实 Windows 主机和当前安装路径为准;示例中的兼容命令、目录名和键位不应为品牌外观而改成未经实现的新接口。
本文中的 Hermes 代表 Aino 复用的底层兼容运行时;命令、模块、路径示例和协议名按技术接口保留。 当前产品说明:故障恢复、快速开始。 来源:
skills/autonomous-ai-agents/hermes-agent/references/windows-quirks.md;原帮助技能署名 Hermes Agent + Teknium,MIT。下方保留完整原文、表格、命令与示例。
Hermes runs natively on Windows (PowerShell, cmd, Windows Terminal, git-bash mintty, VS Code integrated terminal). Most of it just works, but a handful of differences between Win32 and POSIX have bitten us — document new ones here as you hit them so the next person (or the next session) doesn't rediscover them from scratch.
Input / Keybindings
Alt+Enter doesn't insert a newline — Windows Terminal (and mintty) grab it
for fullscreen before prompt_toolkit sees it. Use Ctrl+Enter instead (the
CLI binds it to newline on Windows; raw Ctrl+J does the same, harmlessly).
To inspect how your terminal reports a keystroke, run
python scripts/keystroke_diagnostic.py from the repo root.
Config / Files
HTTP 400 "No models provided" on first run — config.yaml was saved with
a UTF-8 BOM (Notepad does this). Re-save as UTF-8 without BOM;
hermes config edit writes correctly.
execute_code / Sandbox
WinError 10106 from the sandbox child process — it can't create an
AF_INET socket. Root cause is usually Hermes's env scrubber dropping
SYSTEMROOT/WINDIR/COMSPEC (Python's socket needs SYSTEMROOT to find
mswsock.dll), not a broken Winsock LSP. The _WINDOWS_ESSENTIAL_ENV_VARS
allowlist in tools/code_execution_env.py covers it; if you still hit it,
echo os.environ inside an execute_code block to confirm SYSTEMROOT is set.
Testing on Windows
Prepare the checkout through PM first. With its Python 3.14, build an independent test environment at a fresh path:
python -m pm.build_env --source . --out .venv --group dev --group testThe output must not exist. Before regeneration, stop its processes and explicitly remove only that disposable environment. Do not install into the application payload or modify a selected dependency generation.
Run the canonical runner through Git Bash:
scripts/run_tests.sh tests/foo/test_bar.py -v --tb=shortThe runner discovers .venv/Scripts/python.exe, clears credentials and
PYTHONPATH, and isolates each test file. For an external test environment,
set HERMES_PYTHON to its Python executable. PM shell activation alone does
not supply pytest after the runner clears PYTHONPATH.
Path / Filesystem
Line endings. Git may warn LF will be replaced by CRLF. Cosmetic — the
repo's .gitattributes normalizes. Don't let editors auto-convert committed
POSIX-newline files to CRLF.
Forward slashes work almost everywhere. C:/Users/... is accepted by
every Hermes tool and most Windows APIs. Prefer forward slashes in code
and logs — avoids shell-escaping backslashes in bash.