diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-08-03 21:50:32 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-08-03 21:50:32 +0300 |
| commit | 977a4f16e8e7099143ab38058166998d7ab21f8f (patch) | |
| tree | f5be16b36cd87b7ef52e4dbc13de37b9cbc493f7 /docs | |
| parent | 22bb476d646ccadec71f584b90c2a135fec92929 (diff) | |
docs: finalize 0.8.0 release documentation
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/next/CHANGELOG.md | 55 | ||||
| -rw-r--r-- | docs/next/website/src/content/docs/agent-skill.mdx | 2 | ||||
| -rw-r--r-- | docs/next/website/src/content/docs/agents.mdx | 8 | ||||
| -rw-r--r-- | docs/next/website/src/content/docs/integrations.mdx | 8 | ||||
| -rw-r--r-- | docs/next/website/src/content/docs/ja/agent-skill.mdx | 2 | ||||
| -rw-r--r-- | docs/next/website/src/content/docs/ja/agents.mdx | 12 | ||||
| -rw-r--r-- | docs/next/website/src/content/docs/ja/integrations.mdx | 8 | ||||
| -rw-r--r-- | docs/next/website/src/content/docs/zh-cn/agent-skill.mdx | 2 | ||||
| -rw-r--r-- | docs/next/website/src/content/docs/zh-cn/agents.mdx | 12 | ||||
| -rw-r--r-- | docs/next/website/src/content/docs/zh-cn/integrations.mdx | 8 |
10 files changed, 82 insertions, 35 deletions
diff --git a/docs/next/CHANGELOG.md b/docs/next/CHANGELOG.md index 57205475..55fe4ff7 100644 --- a/docs/next/CHANGELOG.md +++ b/docs/next/CHANGELOG.md @@ -3,16 +3,31 @@ ## Unreleased ### Added -- Added `ui.pane_scrollbars = false` to hide terminal pane scrollbars and reclaim their reserved column. -- Added `ui.tab_bar_position = "bottom"` to place the desktop tab row below terminal panes. +- Added `herdr --skill` to print the agent skill bundled with the running Herdr binary. +- Added `ui.pane_scrollbars = false` to hide terminal pane scrollbars and reclaim their reserved column. (#2167) +- Added `ui.tab_bar_position = "bottom"` to place the desktop tab row below terminal panes. (#2117) +- Added live filtering to the keybind help with `/`, Backspace, and `Ctrl+U`. (#1825, #1832, thanks @corrius) +- Added Windows support for `experimental.switch_ascii_input_source_in_prefix` with Korean IMEs. (#1802, #1823, thanks @joonhwan) +- Added Grok CLI session reporting and native restore with `grok --resume <id>`. (#1800, #1807, thanks @carlesso) +- Added Antigravity CLI session reporting and native restore with `agy --conversation <id>`. (#1011, #1571, #2087, thanks @ludoo) +- Added automatic text history reads for idle alternate-screen agents, with the application viewport restored after collection. +- Added `workspace.move_block`, the `workspace.reordered` event, and atomic worktree-group reordering. (#1694) +- Added a Simplified Chinese README. (#1990, thanks @patrick-xin) ### Changed - Experimental options are no longer exposed in the Settings TUI and remain available through the config file. - Agent status indicators now use the same static workspace marks across the sidebar, navigator, and mobile views, eliminating continuous spinner rendering while agents work. +- Hidden pane output no longer triggers unnecessary TUI rendering. +- Windows preview downloads now include Herdr and a modern app-local ConPTY runtime in one archive. (#1533, #1644, #1828) +- Worktree parents and children now stay packed together in the sidebar, including while groups are reordered. +- Public documentation now separates stable, preview, and immutable versioned release snapshots. +- Repository and installation links now use `herdrdev/herdr` after the GitHub organization migration. - Relicensed Herdr from AGPL-3.0-or-later to Apache-2.0. ### Fixed - Pane applications now receive semantic light/dark query responses and live Mode 2031 updates when the host appearance changes. (#714) +- Remote attach now falls back to `sh` when the login shell cannot perform path discovery. (#1201) +- PTY output continues to be read while pane input is temporarily blocked. (#1295) - Worktree CLI help and docs no longer advertise the redundant `--json` flag; worktree commands remain JSON-only and continue accepting the flag for compatibility. (#2171) - OpenCode 2 preview panes now appear as OpenCode agents and use the existing OpenCode status detection. (#2169) - Pane text copied through VS Code Remote Tunnels now reaches the viewing machine's clipboard instead of overwriting the remote host clipboard. (#2015) @@ -21,20 +36,49 @@ - Windows `agent start` now launches agents without native arguments instead of timing out on an invalid empty PowerShell argument list. (#2072) - Headless servers now resume restored agent sessions without waiting for a TUI client to attach. (#2064) - Vibe and other Kitty-keyboard pane applications now receive shifted letters and punctuation when they request associated text. (#2020) +- Kitty-keyboard pane applications now receive printable key releases without duplicate text input. (#1746) +- Kitty graphics remain visible during host repaints. (#1628) +- Pane applications now receive correct XTWINOPS terminal and cell-size query responses. (#835) +- WSL clients query the host cell size when the terminal ioctl reports no pixels, keeping graphics sharp instead of using the 8x16 fallback. (#2146, #2160, thanks @WakaTaira) - Linux runtimes without terminal foreground process groups can opt into child-group agent detection with `HERDR_PROCESS_DETECTION=child-groups`. (#1982) - Installing the Herdr agent skill with the `skills` CLI no longer copies the entire repository. (#2022) +- Nix builds now include the bundled agent skill required by `herdr --skill`. (#1889, #1890, thanks @olafkfreund) - Agent prompts now wait briefly after sending text before pressing Enter, preventing prompts from remaining in agent composers without starting a turn. (#1878) - Empty clipboard writes from pane applications no longer erase existing clipboard contents or show a copied confirmation. (#1893) - Plain mouse movement no longer triggers continuous full renders while preserving Herdr menu hover and pane application mouse tracking. (#1865) -- `ui.copy_on_select = false` now retains drag and double-click word selections without copying; `Ctrl+C`, or `Cmd+C` when the host terminal forwards it, copies and clears the selection. +- Extended-button drags now preserve Herdr hover state while applications receive the drag. +- `ui.copy_on_select = false` now retains drag and double-click word selections without copying; `Ctrl+C`, or `Cmd+C` when the host terminal forwards it, copies and clears the selection. (#1782) - Pane and agent read responses now report `truncated: true` when older terminal rows were omitted. (#1717) - Pane applications that query OSC 4 palette colors now inherit the host terminal palette. (#1752) - Ctrl-clicking a pane URL no longer forwards an unmatched mouse release to alternate-screen applications, preventing duplicate browser tabs. (#1761) -- Known-agent integrations now leave pane ownership to confirmed process exit, so restarting Pi with the same saved session restores lifecycle state even with custom working UI. (#1792) +- Known-agent integrations now leave pane ownership to confirmed process exit, so restarting Pi with the same saved session restores lifecycle state even with custom working UI. (#1648, #1792) +- Nested or ephemeral Codex sessions no longer replace the owning pane's resumable session. (#1789, #1927, thanks @Pimpmuckl) +- Pi RPC, JSON, and print processes no longer claim pane lifecycle state intended for Pi TUI sessions. (#2159, thanks @rhjoh) +- Hermes state now comes from screen detection while its plugin reports resumable session identity, avoiding stale lifecycle authority from incomplete hooks. - OMP integration install, status, and uninstall now respect `PI_CONFIG_DIR` when `PI_CODING_AGENT_DIR` is not set, and installation refuses extension-directory collisions with Pi. (#1696) +- OMP integrations now preserve Windows absolute session paths for native restore. (#2092, thanks @art-wiedzmin) +- Claude integration updates preserve existing settings key order and formatting. (#2066) - Physical Escape key records on native Windows now bypass raw VT report framing, so pane applications receive Escape immediately and reliably. (#1736) - Native Windows key presses, grouped repeats, and releases now preserve their physical lifecycle and stay with the pane that received the initial press. (#2077) - Windows `pane send-keys` and `agent send-keys` now deliver semantic Escape as a complete key tap, preventing a following key from being interpreted as an Alt chord. +- Shift+Enter now reaches native Windows pane applications with its modifier intact. (#1743, #1909, thanks @Pimpmuckl) +- Ctrl+_ input bytes now decode as Ctrl+_ instead of Ctrl+-. (#2164, #2165, thanks @Sertug17) +- Prefix and navigate modes now recognize non-US shifted keybindings while retaining legacy US punctuation support. (#1870) +- Closing a non-focused workspace no longer changes the focused workspace. (#1328, #1877, thanks @yianL) +- A background workspace that closes after its last pane exits no longer moves focus or hides the current workspace. (#1621, #1912, thanks @season179) +- Directional pane focus now keeps Navigate mode active. (#1850, #1993, thanks @we11adam) +- Closing a workspace's last tab through the CLI or API now closes the workspace like the TUI does. (#1760, #1899, thanks @season179) +- Linked worktree workspaces retain their labels during Git metadata refreshes. +- Clients repaint after transient terminal resizes instead of leaving stale or missing rows. +- Repeated workspace Git discovery and foreground-cwd checks no longer block rendering or API handling. (#1838, #2206) +- Relative plugin commands now resolve from the plugin root. (#1949) +- Windows installation preserves inherited `PATH` and related environment variables. (#1947) +- Windows agent process discovery preserves the owning parent agent across wrapper processes. (#1514) +- The Rose Pine `surface_dim` color remains visible when the outer terminal uses a matching theme. (#1946, #2002, thanks @brabli) +- CLI socket commands now report a clear `server_not_running` error instead of a raw I/O error. (#1941, #1963, thanks @season179) +- Non-UTF-8 CLI arguments now produce a usage error instead of panicking. (#2207, thanks @VialFlorian) +- Copy-mode `e` now crosses long soft-wrapped CJK lines when a read window ends on a wide glyph. (#2145, thanks @kiakiraki) +- Clients restore terminal state when they receive SIGHUP or SIGTERM. (#2041, thanks @MattJColes) - Windows now shows `system` notifications and completes MP3 notification sounds without leaving PowerShell players waiting for a timeout. (#1330) ## [0.7.5] - 2026-07-21 @@ -102,7 +146,7 @@ ### Fixed - Collapsed Agent sidebar rows now follow the same ordering and click targets as the expanded panel, and their shortcut numbers are assigned by visible list position instead of repeating across workspaces. (#1168, #1344) -- On Kitty-keyboard hosts, prefix and navigate modes now request layout-aware input, so shifted bindings and indexed ranges such as `prefix+shift+1..9` match non-US keys while retaining legacy US punctuation support. (#1184, #1870) +- Shifted indexed bindings such as `prefix+shift+1..9` now match terminals that report the corresponding punctuation characters. (#1184) - Plugin-driven tab renames now immediately refresh tab-bar geometry and labels. (#1111, #1179, thanks @kovalov) - New tabs, splits, layouts, and workspaces configured to follow the foreground directory now start from the focused pane's current working directory. (#1245) - Amp, Codex, and Claude Code detection now recognizes current active-turn UI variants, including reordered Codex title spinners and Claude `/btw` turns. (#1208, #1281, #1366) @@ -149,7 +193,6 @@ - Added `herdr terminal session control` for bridge processes that need live ANSI frames plus input, resize, scroll, release, and takeover authority. - Added `ui.hide_tab_bar_when_single_tab` to hide the tab row when a workspace has one tab. (#448) - Added Japanese and Simplified Chinese website docs. -- Added `herdr integration install grok` for Grok CLI (Grok Build) hooks that report session ids through Herdr's socket API. Grok state stays screen-detected. When native agent session restore is enabled, Herdr can resume Grok panes with `grok --resume <id>`. ### Changed - The mobile switcher now starts from an agents-first summary and renders worktrees as a tree, making narrow terminals easier to scan. diff --git a/docs/next/website/src/content/docs/agent-skill.mdx b/docs/next/website/src/content/docs/agent-skill.mdx index d6fe6a14..d9c0f162 100644 --- a/docs/next/website/src/content/docs/agent-skill.mdx +++ b/docs/next/website/src/content/docs/agent-skill.mdx @@ -21,7 +21,7 @@ With the skill installed, an agent can: - wait for servers, tests, or another agent to finish - start helper agents in sibling panes -The skill is not a separate app or service. It is a markdown instruction file for agents. +The skill is not a separate app or service. It is a markdown instruction file for agents. If Herdr is already installed, run `herdr --skill` to print the release-matched copy bundled with that binary. ## Install it diff --git a/docs/next/website/src/content/docs/agents.mdx b/docs/next/website/src/content/docs/agents.mdx index e7764d84..2bab31a5 100644 --- a/docs/next/website/src/content/docs/agents.mdx +++ b/docs/next/website/src/content/docs/agents.mdx @@ -14,11 +14,11 @@ Automatic detection works out of the box for common coding agents. The important | Agent | State authority | Integration role | | --- | --- | --- | | Pi | lifecycle hooks when installed; otherwise screen manifest | state and session | -| OMP | lifecycle hooks when installed | state | +| OMP | lifecycle hooks when installed | state and session | | GitHub Copilot CLI | screen manifest | session | | Devin CLI | screen manifest | session | | Kimi Code CLI | lifecycle hooks when installed; otherwise screen manifest | state and session | -| Hermes Agent | lifecycle hooks when installed; otherwise screen manifest | state and session | +| Hermes Agent | screen manifest | session | | Qoder CLI | screen manifest | session | | Droid | screen manifest | session | | OpenCode | lifecycle plugin when installed; otherwise screen manifest | state and session | @@ -29,7 +29,7 @@ Automatic detection works out of the box for common coding agents. The important | Cursor Agent CLI | screen manifest | session | | Amp | screen manifest | none | | Grok CLI | screen manifest | session | -| Antigravity CLI | screen manifest | none | +| Antigravity CLI | screen manifest | session | | Kiro CLI | screen manifest | none | | Maki | screen manifest | none | @@ -45,7 +45,7 @@ For agents without complete lifecycle hooks, Herdr identifies the foreground pro The screen snapshot comes from the recent bottom of the pane buffer, not the scrolled viewport. If you scroll back in Herdr, detection still follows the live agent UI at the bottom. -Claude Code, Codex, GitHub Copilot CLI, Droid, Qoder CLI, Cursor Agent CLI, and Grok CLI integrations are intentionally not lifecycle authorities. They provide native session identity for restore, but their hooks do not cover the whole lifecycle. They can miss permission approval results, escape interrupts, or other transitions. For those agents, Herdr still uses screen manifest detection. +Integrations marked `session` in the table above are intentionally not lifecycle authorities. They provide native session identity for restore, but their hooks do not cover the whole lifecycle. They can miss permission approval results, escape interrupts, or other transitions. For those agents, Herdr still uses screen manifest detection. ## VMs and sandbox wrappers diff --git a/docs/next/website/src/content/docs/integrations.mdx b/docs/next/website/src/content/docs/integrations.mdx index 748e8340..254612e0 100644 --- a/docs/next/website/src/content/docs/integrations.mdx +++ b/docs/next/website/src/content/docs/integrations.mdx @@ -5,7 +5,7 @@ description: Install Herdr integrations for Pi, OMP, Claude Code, Codex, GitHub Herdr detects supported agents automatically. Official integrations can add native session identity for restore, lifecycle state reports, or both. -Use integrations when you want native agent session restore from Claude Code/Codex/Copilot/Devin-style hooks, direct lifecycle reports from Pi/OMP/Kimi/OpenCode/Kilo/Hermes-style hooks or plugins, or both. See [Agents](/docs/agents/) for the full status authority model. +Use integrations when you want native agent session restore, direct lifecycle reports, or both. See [Agents](/docs/agents/) for the full status authority model. ## Install integrations @@ -57,8 +57,8 @@ Herdr uses integrations in two different ways: | Integration type | Agents | Effect | | --- | --- | --- | -| Lifecycle authority | Pi, OMP, Kimi Code CLI, OpenCode, Kilo Code CLI, Hermes Agent, MastraCode | When installed and actively reporting for the pane, hook or plugin events author `idle`, `working`, and `blocked`. Herdr does not also use screen manifest fallback for that same lifecycle authority. | -| Session identity | Claude Code, Codex, GitHub Copilot CLI, Devin CLI, Droid, Qoder CLI, Cursor Agent CLI, Antigravity CLI, Grok CLI | The integration reports native session references for restore. State still comes from Herdr's screen manifest detection. | +| Lifecycle authority | Pi, OMP, Kimi Code CLI, OpenCode, Kilo Code CLI, MastraCode | When installed and actively reporting for the pane, hook or plugin events author `idle`, `working`, and `blocked`. Herdr does not also use screen manifest fallback for that same lifecycle authority. | +| Session identity | Claude Code, Codex, GitHub Copilot CLI, Devin CLI, Droid, Qoder CLI, Cursor Agent CLI, Hermes Agent, Antigravity CLI, Grok CLI | The integration reports native session references for restore. State still comes from Herdr's screen manifest detection. | Custom socket integrations can also report state when they define state that is not visible in the native terminal UI. @@ -214,7 +214,7 @@ herdr integration install hermes Herdr writes `~/.hermes/plugins/herdr-agent-state/` and enables `herdr-agent-state` in `~/.hermes/config.yaml`. The Hermes config directory must already exist. Restart Hermes after installing so the plugin loads. Uninstall removes the plugin directory and removes `herdr-agent-state` from `plugins.enabled`. -The plugin reports lifecycle, tool, approval state, and session id while Hermes runs inside a Herdr pane. Herdr can use the reported session id to resume the pane with `hermes --resume <id>`. Native screen manifest detection remains available when the plugin is not installed. +The plugin reports the resumable session id while Hermes runs inside a Herdr pane. Herdr uses screen manifest detection for `working`, `idle`, and `blocked`, and can use the reported session id to resume the pane with `hermes --resume <id>`. ## Qoder CLI diff --git a/docs/next/website/src/content/docs/ja/agent-skill.mdx b/docs/next/website/src/content/docs/ja/agent-skill.mdx index ea86f9e6..15120dfa 100644 --- a/docs/next/website/src/content/docs/ja/agent-skill.mdx +++ b/docs/next/website/src/content/docs/ja/agent-skill.mdx @@ -21,7 +21,7 @@ Herdr は別の用途向けに [`herdr.dev/agent-guide.md`](https://herdr.dev/ag - サーバー、テスト、別のエージェントの完了を待つ - 隣のペインでヘルパーエージェントを起動する -このスキルは独立したアプリやサービスではありません。エージェント向けの markdown 指示ファイルです。 +このスキルは独立したアプリやサービスではありません。エージェント向けの markdown 指示ファイルです。Herdr がすでにインストールされている場合は、`herdr --skill` を実行すると、そのバイナリのリリースと一致する同梱コピーを表示できます。 ## インストールする diff --git a/docs/next/website/src/content/docs/ja/agents.mdx b/docs/next/website/src/content/docs/ja/agents.mdx index 4b08da69..1432434e 100644 --- a/docs/next/website/src/content/docs/ja/agents.mdx +++ b/docs/next/website/src/content/docs/ja/agents.mdx @@ -14,11 +14,11 @@ Herdr は複数のコーディングエージェントを同時に動かすたã‚ | エージェント | 状態の権威 | インテグレーションの役割 | | --- | --- | --- | | Pi | インストール時はライフサイクルフック。それ以外はスクリーンマニフェスト | 状態とセッション | -| OMP | インストール時はライフサイクルフック | 状態 | +| OMP | インストール時はライフサイクルフック | 状態とセッション | | GitHub Copilot CLI | スクリーンマニフェスト | セッション | | Devin CLI | スクリーンマニフェスト | セッション | | Kimi Code CLI | インストール時はライフサイクルフック。それ以外はスクリーンマニフェスト | 状態とセッション | -| Hermes Agent | インストール時はライフサイクルフック。それ以外はスクリーンマニフェスト | 状態とセッション | +| Hermes Agent | スクリーンマニフェスト | セッション | | Qoder CLI | スクリーンマニフェスト | セッション | | Droid | スクリーンマニフェスト | セッション | | OpenCode | インストール時はライフサイクルプラグイン。それ以外はスクリーンマニフェスト | 状態とセッション | @@ -28,8 +28,8 @@ Herdr は複数のコーディングエージェントを同時に動かすたã‚ | Codex | スクリーンマニフェスト | セッション | | Cursor Agent CLI | スクリーンマニフェスト | セッション | | Amp | スクリーンマニフェスト | なし | -| Grok CLI | スクリーンマニフェスト | なし | -| Antigravity CLI | スクリーンマニフェスト | なし | +| Grok CLI | スクリーンマニフェスト | セッション | +| Antigravity CLI | スクリーンマニフェスト | セッション | | Kiro CLI | スクリーンマニフェスト | なし | | Maki | スクリーンマニフェスト | なし | @@ -45,12 +45,14 @@ Herdr はまず各ペインのフォアグラウンドプロセスを検出しã� スクリーンスナップショットは、スクロールされたビューポートではなく、ペインバッファの直近の下部から取得されます。Herdr でスクロールバックしても、検出は下部のライブなエージェント UI を追い続けます。 -Claude Code、Codex、GitHub Copilot CLI、Droid、Qoder CLI、Cursor Agent CLI のインテグレーションは、意図的にライフサイクル権威にしていません。これらは復元のためのネイティブセッション識別を提供しますが、フックがライフサイクル全体をカバーしていません。許可承認の結果、Esc による中断、その他の遷移を見逃すことがあります。これらのエージェントでは、Herdr は引き続きスクリーンマニフェスト検出を使います。 +上の表で「セッション」と記載されたインテグレーションは、意図的にライフサイクル権威にしていません。これらは復元のためのネイティブセッション識別を提供しますが、フックがライフサイクル全体をカバーしていません。許可承認の結果、Esc による中断、その他の遷移を見逃すことがあります。これらのエージェントでは、Herdr は引き続きスクリーンマニフェスト検出を使います。 ## VM とサンドボックスラッパー Linux と macOS では、ホストから見えるラッパーが実際のエージェントプロセスを Herdr から隠すことがあります。ラッパーのコマンドに `HERDR_AGENT=<agent>` を設定して、どの既存エージェントのスクリーンマニフェストを使うべきか Herdr に伝えてください。たとえば、Linux では `HERDR_AGENT=claude fence -- claude`、macOS では `HERDR_AGENT=claude nono run --profile claude-code -- claude` を実行します。このヒントはそのフォアグラウンドプロセスにスコープされます。VM やコンテナの内部だけで設定しても Herdr からは見えません。また、継承されるすべてのフォアグラウンドプロセスをそのエージェントとして扱いたいのでない限り、グローバルな export は避けてください。 +一部の制限された Linux ランタイムでは、ターミナルのフォアグラウンドプロセスグループが公開されません。ネイティブ検出が利用できない場合に直接の子プロセスグループ推論を有効にするには、Herdr サーバーを `HERDR_PROCESS_DETECTION=child-groups` 付きで起動します。ネイティブ検出が引き続き優先され、デフォルトの `native` モードではこの推論を行いません。このオプトインモードはベストエフォートで、新しいバックグラウンドジョブをフォアグラウンドと誤認する可能性があります。この変数はサーバーが読み取るため再起動が必要です。アタッチするクライアントではなく、リモートサーバーの環境に設定してください。 + ## blocked 状態 スクリーンマニフェスト方式のエージェントでは、blocked の検出は意図的に厳格です。Herdr が `blocked` と判定するのは、ライブの下部バッファスナップショットが既知の承認・質問・許可 UI にマッチしたときだけです。既知のエージェントでどのマニフェストルールにもマッチしない場合、Herdr は `idle` にフォールバックし、explain の出力ではそのフォールバックに `default_known_agent_idle_fallback` というラベルを付けます。 diff --git a/docs/next/website/src/content/docs/ja/integrations.mdx b/docs/next/website/src/content/docs/ja/integrations.mdx index ae2eff35..3283a808 100644 --- a/docs/next/website/src/content/docs/ja/integrations.mdx +++ b/docs/next/website/src/content/docs/ja/integrations.mdx @@ -5,7 +5,7 @@ description: Pi、OMP、Claude Code、Codex、GitHub Copilot CLI、Devin CLI、D Herdr は対応エージェントを自動的に検出します。公式インテグレーションは、復元のためのネイティブセッション識別、ライフサイクル状態の報告、またはその両方を追加できます。 -Claude Code/Codex/Copilot/Devin 系のフックによるエージェントネイティブのセッション復元、Pi/OMP/Kimi/OpenCode/Kilo/Hermes/MastraCode 系のフックまたはプラグインによる直接のライフサイクル報告、あるいはその両方が欲しいときにインテグレーションを使ってください。状態権威モデルの全体像は[エージェント](/ja/docs/agents/)を参照してください。 +エージェントネイティブのセッション復元、直接のライフサイクル報告、またはその両方が欲しいときにインテグレーションを使ってください。状態権威モデルの全体像は[エージェント](/ja/docs/agents/)を参照してください。 ## インテグレーションをインストールする @@ -57,8 +57,8 @@ Herdr はインテグレーションを 2 つの異なる方法で使います: | インテグレーションの種類 | エージェント | 効果 | | --- | --- | --- | -| ライフサイクル権威 | Pi、OMP、Kimi Code CLI、OpenCode、Kilo Code CLI、Hermes Agent、MastraCode | インストールされ、そのペインについて能動的に報告している間は、フックまたはプラグインのイベントが `idle`、`working`、`blocked` を決定します。同じライフサイクル権威に対して、Herdr はスクリーンマニフェストのフォールバックを併用しません。 | -| セッション識別 | Claude Code、Codex、GitHub Copilot CLI、Devin CLI、Droid、Qoder CLI、Cursor Agent CLI、Antigravity CLI、Grok CLI | インテグレーションは復元用のネイティブセッション参照を報告します。状態は引き続き Herdr のスクリーンマニフェスト検出から得られます。 | +| ライフサイクル権威 | Pi、OMP、Kimi Code CLI、OpenCode、Kilo Code CLI、MastraCode | インストールされ、そのペインについて能動的に報告している間は、フックまたはプラグインのイベントが `idle`、`working`、`blocked` を決定します。同じライフサイクル権威に対して、Herdr はスクリーンマニフェストのフォールバックを併用しません。 | +| セッション識別 | Claude Code、Codex、GitHub Copilot CLI、Devin CLI、Droid、Qoder CLI、Cursor Agent CLI、Hermes Agent、Antigravity CLI、Grok CLI | インテグレーションは復元用のネイティブセッション参照を報告します。状態は引き続き Herdr のスクリーンマニフェスト検出から得られます。 | カスタムソケットインテグレーションも、ネイティブのターミナル UI では見えない状態を定義する場合に状態を報告できます。 @@ -214,7 +214,7 @@ herdr integration install hermes Herdr は `~/.hermes/plugins/herdr-agent-state/` を書き込み、`~/.hermes/config.yaml` で `herdr-agent-state` を有効にします。Hermes の設定ディレクトリはあらかじめ存在している必要があります。プラグインを読み込ませるため、インストール後に Hermes を再起動してください。アンインストールはプラグインディレクトリを削除し、`plugins.enabled` から `herdr-agent-state` を削除します。 -このプラグインは、Hermes が Herdr のペイン内で動いている間、ライフサイクル、ツール、承認状態、セッション id を報告します。Herdr は報告されたセッション id を使って `hermes --resume <id>` でペインを resume できます。プラグインがインストールされていないときは、スクリーンマニフェスト検出が引き続き利用できます。 +このプラグインは、Hermes が Herdr のペイン内で動いている間、resume 可能なセッション id を報告します。Herdr は `working`、`idle`、`blocked` にスクリーンマニフェスト検出を使い、報告されたセッション id で `hermes --resume <id>` としてペインを resume できます。 ## Qoder CLI diff --git a/docs/next/website/src/content/docs/zh-cn/agent-skill.mdx b/docs/next/website/src/content/docs/zh-cn/agent-skill.mdx index 98e5d529..6ce065f4 100644 --- a/docs/next/website/src/content/docs/zh-cn/agent-skill.mdx +++ b/docs/next/website/src/content/docs/zh-cn/agent-skill.mdx @@ -21,7 +21,7 @@ Herdr 还提供了另一份用途不同的指南: [`herdr.dev/agent-guide.md`](h - 等待服务器、测试或另一个智能体完成 - 在相邻窗格中启动辅助智能体 -这份技能不是独立的应用或服务,它只是一份给智能体看的 markdown 指令文件。 +这份技能不是独立的应用或服务,它只是一份给智能体看的 markdown 指令文件。如果已经安装 Herdr,运行 `herdr --skill` 即可输出与该二进制版本匹配的内置副本。 ## 安装 diff --git a/docs/next/website/src/content/docs/zh-cn/agents.mdx b/docs/next/website/src/content/docs/zh-cn/agents.mdx index fb478081..1311e326 100644 --- a/docs/next/website/src/content/docs/zh-cn/agents.mdx +++ b/docs/next/website/src/content/docs/zh-cn/agents.mdx @@ -14,11 +14,11 @@ Herdr 为同时运行多个编程智能体而生。每个智能体都待在一ä¸ | 智能体 | 状态权威 | 集成角色 | | --- | --- | --- | | Pi | 安装后为生命周期钩子;否则为屏幕清单 | 状态与会话 | -| OMP | 安装后为生命周期钩子 | 状态 | +| OMP | 安装后为生命周期钩子 | 状态与会话 | | GitHub Copilot CLI | 屏幕清单 | 会话 | | Devin CLI | 屏幕清单 | 会话 | | Kimi Code CLI | 安装后为生命周期钩子;否则为屏幕清单 | 状态与会话 | -| Hermes Agent | 安装后为生命周期钩子;否则为屏幕清单 | 状态与会话 | +| Hermes Agent | 屏幕清单 | 会话 | | Qoder CLI | 屏幕清单 | 会话 | | Droid | 屏幕清单 | 会话 | | OpenCode | 安装后为生命周期插件;否则为屏幕清单 | 状态与会话 | @@ -28,8 +28,8 @@ Herdr 为同时运行多个编程智能体而生。每个智能体都待在一ä¸ | Codex | 屏幕清单 | 会话 | | Cursor Agent CLI | 屏幕清单 | 会话 | | Amp | 屏幕清单 | 无 | -| Grok CLI | 屏幕清单 | 无 | -| Antigravity CLI | 屏幕清单 | 无 | +| Grok CLI | 屏幕清单 | 会话 | +| Antigravity CLI | 屏幕清单 | 会话 | | Kiro CLI | 屏幕清单 | 无 | | Maki | 屏幕清单 | 无 | @@ -45,12 +45,14 @@ Herdr 首先检测每个窗格的前台进程。之后,每个窗格有且只有ä 屏幕快照来自窗格缓冲区最近的底部,而不是滚动后的视口。即使你在 Herdr 里向上翻页,检测仍然跟随底部的实时智能体 UI。 -Claude Code、Codex、GitHub Copilot CLI、Droid、Qoder CLI 和 Cursor Agent CLI 的集成有意不作为生命周期权威。它们为恢复提供原生会话身份,但它们的钩子并不覆盖整个生命周期,可能漏掉权限审批结果、Esc 中断或其他状态转换。对这些智能体,Herdr 仍然使用屏幕清单检测。 +上表中标为“会话”的集成有意不作为生命周期权威。它们为恢复提供原生会话身份,但它们的钩子并不覆盖整个生命周期,可能漏掉权限审批结果、Esc 中断或其他状态转换。对这些智能体,Herdr 仍然使用屏幕清单检测。 ## 虚拟机与沙箱包装器 在 Linux 和 macOS 上,宿主可见的包装器可能会向 Herdr 隐藏真实的智能体进程。在包装器命令上设置 `HERDR_AGENT=<agent>`,告诉 Herdr 应使用哪个已有智能体的屏幕清单。例如,在 Linux 上运行 `HERDR_AGENT=claude fence -- claude`,或在 macOS 上运行 `HERDR_AGENT=claude nono run --profile claude-code -- claude`。这个提示的作用范围只限于该前台进程;仅在 VM 或容器内部设置时 Herdr 无法看到它,而且除非所有继承的前台进程都应被视为该智能体,否则不要全局 export。 +某些受限的 Linux 运行环境不会公开终端前台进程组。原生检测不可用时,以 `HERDR_PROCESS_DETECTION=child-groups` 启动 Herdr 服务器,即可选择启用直接子进程组推断。原生检测仍然优先,默认的 `native` 模式不会执行此推断。这个选择加入模式属于尽力而为,较新的后台任务可能会被误判为前台任务。该变量由服务器读取且需要重启;请在远程服务器环境中设置,而不是在连接客户端上设置。 + ## blocked 状态 对屏幕清单类智能体,blocked 检测刻意从严。只有当实时底部缓冲区快照匹配已知可见的审批、提问或权限 UI 时,Herdr 才标记 `blocked`。对已知智能体,如果没有任何清单规则匹配,Herdr 会回退到 `idle`,并在 explain 输出中把该回退标记为 `default_known_agent_idle_fallback`。 diff --git a/docs/next/website/src/content/docs/zh-cn/integrations.mdx b/docs/next/website/src/content/docs/zh-cn/integrations.mdx index 3ff557c4..a3baf62f 100644 --- a/docs/next/website/src/content/docs/zh-cn/integrations.mdx +++ b/docs/next/website/src/content/docs/zh-cn/integrations.mdx @@ -5,7 +5,7 @@ description: 为 Pi、OMP、Claude Code、Codex、GitHub Copilot CLI、Devin CLI Herdr 自动检测受支持的智能体。官方集成可以额外提供用于恢复的原生会话身份、生命周期状态上报,或两者兼有。 -当你想要 Claude Code/Codex/Copilot/Devin 式钩子的智能体原生会话恢复、Pi/OMP/Kimi/OpenCode/Kilo/Hermes/MastraCode 式钩子或插件的直接生命周期上报,或两者都要时,使用集成。完整的状态权威模型见[智能体](/zh-cn/docs/agents/)。 +当你想要智能体原生会话恢复、直接生命周期上报,或两者都要时,使用集成。完整的状态权威模型见[智能体](/zh-cn/docs/agents/)。 ## 安装集成 @@ -57,8 +57,8 @@ Herdr 以两种不同方式使用集成: | 集成类型 | 智能体 | 效果 | | --- | --- | --- | -| 生命周期权威 | Pi、OMP、Kimi Code CLI、OpenCode、Kilo Code CLI、Hermes Agent、MastraCode | 已安装且在为该窗格主动上报时,由钩子或插件事件决定 `idle`、`working` 和 `blocked`。对同一个生命周期权威,Herdr 不再使用屏幕清单兜底。 | -| 会话身份 | Claude Code、Codex、GitHub Copilot CLI、Devin CLI、Droid、Qoder CLI、Cursor Agent CLI、Antigravity CLI、Grok CLI | 集成上报用于恢复的原生会话引用。状态仍来自 Herdr 的屏幕清单检测。 | +| 生命周期权威 | Pi、OMP、Kimi Code CLI、OpenCode、Kilo Code CLI、MastraCode | 已安装且在为该窗格主动上报时,由钩子或插件事件决定 `idle`、`working` 和 `blocked`。对同一个生命周期权威,Herdr 不再使用屏幕清单兜底。 | +| 会话身份 | Claude Code、Codex、GitHub Copilot CLI、Devin CLI、Droid、Qoder CLI、Cursor Agent CLI、Hermes Agent、Antigravity CLI、Grok CLI | 集成上报用于恢复的原生会话引用。状态仍来自 Herdr 的屏幕清单检测。 | 自定义 socket 集成在定义了原生终端 UI 中不可见的状态时,也可以上报状态。 @@ -214,7 +214,7 @@ herdr integration install hermes Herdr 写入 `~/.hermes/plugins/herdr-agent-state/`,并在 `~/.hermes/config.yaml` 中启用 `herdr-agent-state`。Hermes 配置目录必须已经存在。安装后请重启 Hermes 以加载插件。卸载会删除插件目录,并从 `plugins.enabled` 中移除 `herdr-agent-state`。 -该插件在 Hermes 运行于 Herdr 窗格内时上报生命周期、工具、审批状态和会话 id。Herdr 可以用上报的会话 id 通过 `hermes --resume <id>` 恢复该窗格。插件未安装时,屏幕清单检测仍然可用。 +该插件在 Hermes 运行于 Herdr 窗格内时上报可恢复的会话 id。Herdr 使用屏幕清单检测 `working`、`idle` 和 `blocked`,并可用上报的会话 id 通过 `hermes --resume <id>` 恢复该窗格。 ## Qoder CLI |
