Files
hermes-agent/tests/agent
teknium1 af66d5db15 fix(agent): remote backend probe no longer puts user, $HOME and cwd into the system prompt
The non-local terminal-backend probe (`_BACKEND_PROBE_CMD` /
`_format_backend_probe`) ran `whoami`, `$HOME` and `pwd` inside the sandbox
and rendered `User:` / `Home:` / `Working directory:` lines into the system
prompt on every turn. Nothing downstream consumes those values — the only
reader is the model, which can `whoami && pwd` when a task needs them — so
they were user-identifying metadata sent to the provider for no behavioural
gain. The probe now asks for and renders only `OS: <uname -s> <uname -r>`,
and the prompt block tells the model how to fetch the rest on demand.

Fixes #117262
2026-09-21 01:04:37 -07:00
..