Skip to content

The agent that grows with you

docs(lsp,raft): language servers, installers and the raft bridge get the scrubbed env

John Paul Soliva0f1d4fbca975
diff --git a/website/docs/user-guide/features/lsp.md b/website/docs/user-guide/features/lsp.md
index 77847baebe6..03fe7cc036b 100644
--- a/website/docs/user-guide/features/lsp.md
+++ b/website/docs/user-guide/features/lsp.md
@@ -259,6 +259,9 @@ lsp:
* `command: [bin, ...args]` — pin a custom binary path. Bypasses
auto-install.
* `env: {KEY: value}` — extra env vars passed to the spawned process.
+ Servers and the npm / `go install` auto-installers start from Hermes'
+ scrubbed child environment (no gateway tokens or provider API keys),
+ so a server that needs one of those gets it only through this key.
* `initialization_options: {...}` — merged into the LSP
`initializationOptions` payload sent in the `initialize`
handshake. Server-specific; consult the language server's docs.
diff --git a/website/docs/user-guide/messaging/raft.md b/website/docs/user-guide/messaging/raft.md
index 0e62b1aa749..f3ae6e5a845 100644
--- a/website/docs/user-guide/messaging/raft.md
+++ b/website/docs/user-guide/messaging/raft.md
@@ -59,7 +59,7 @@ Wake payloads are **content-free by contract** — they carry metadata (event ID
## Bridge
-The adapter automatically spawns `raft agent bridge` as a child process, passing the endpoint URL and token. The bridge connects to the Raft server using the configured profile and begins forwarding wake hints. It is terminated when the gateway shuts down.
+The adapter automatically spawns `raft agent bridge` as a child process, passing the endpoint URL and token. The bridge gets Hermes' scrubbed child environment plus `RAFT_PROFILE` and that token, never Hermes' gateway tokens or provider API keys. The bridge connects to the Raft server using the configured profile and begins forwarding wake hints. It is terminated when the gateway shuts down.
---
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/lsp.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/lsp.md
index 64f6490081f..c2c04249ecb 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/lsp.md
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/lsp.md
@@ -137,6 +137,8 @@ lsp:
* `disabled: true` — 即使扩展名与文件匹配,也完全跳过该服务器。
* `command: [bin, ...args]` — 指定自定义二进制路径,绕过自动安装。
* `env: {KEY: value}` — 传递给启动进程的额外环境变量。
+ 服务器以及 npm / `go install` 自动安装程序都从 Hermes 清理过的子进程环境启动
+ (不含网关令牌或模型提供商 API 密钥),因此需要这类变量的服务器只能通过此键获得。
* `initialization_options: {...}` — 合并到 LSP `initialize` 握手时发送的
`initializationOptions` 载荷中。具体内容因服务器而异,请参阅对应语言服务器的文档。