Skip to content

The agent that grows with you

docs(worktrees): hermes -w checks out without the repository's hooks, fsmonitor and filters

John Paul Soliva00e781e19321
diff --git a/website/docs/user-guide/git-worktrees.md b/website/docs/user-guide/git-worktrees.md
index 98b65f3092a..b2d130198f8 100644
--- a/website/docs/user-guide/git-worktrees.md
+++ b/website/docs/user-guide/git-worktrees.md
@@ -171,6 +171,8 @@ Hermes will:
- Check out an isolated branch (e.g. `hermes/hermes-<hash>`).
- Run the full CLI session inside that worktree.
+Hermes checks the worktree out without running the repository's own git configuration: its hooks, `core.fsmonitor` and clean/smudge filters are off for that checkout, as they are for the worktrees Hermes creates for kanban tasks and subagents. A repository that stores files through Git LFS gets pointer files there; run `git lfs pull` inside the worktree if the session needs their contents.
+
This is the easiest way to get worktree isolation. You can also combine it with a single query:
```bash
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/git-worktrees.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/git-worktrees.md
index 51db2ba4836..e1bb16b5a8c 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/git-worktrees.md
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/git-worktrees.md
@@ -152,6 +152,8 @@ Hermes 将:
- 检出一个隔离分支(例如 `hermes/hermes-<hash>`)。
- 在该 worktree 内运行完整的 CLI 会话。
+Hermes 检出该 worktree 时不会执行仓库自身的 git 配置:其 hooks、`core.fsmonitor` 和 clean/smudge 过滤器在这次检出中均被关闭,Hermes 为 kanban 任务和子代理创建的 worktree 也是如此。通过 Git LFS 存储文件的仓库在其中得到的是指针文件;如果会话需要这些文件的内容,请在该 worktree 内运行 `git lfs pull`。
+
这是获得 worktree 隔离的最简便方式。也可与单次查询结合使用:
```bash