feat(agent): add explicit active-turn steering

This commit is contained in:
AaronZ345
2026-07-19 16:03:07 +08:00
parent 0c76d851cb
commit c4e5d11da9
21 changed files with 753 additions and 5 deletions

View File

@@ -94,6 +94,7 @@ On startup, the channel registers a command menu with BotFather. Typing `/` in T
| `/knowledge` | Knowledge base (`/knowledge list` / `on` / `off`) |
| `/config` | View current config |
| `/cancel` | Cancel the running Agent task |
| `/steer` | Guide the running Agent task (`/steer <instruction>`) |
| `/logs` | View recent logs |
| `/version` | Show version |

View File

@@ -33,6 +33,16 @@ Abort the agent task currently running in this session. When the agent is busy w
/cancel
```
## steer
Redirect the Agent task currently running in this session without cancelling it. The instruction is injected at the next safe checkpoint; a tool that is already running may finish, while tools that have not started are skipped. If no task is active, `/steer` does not start or queue a new one. Available across all chat channels.
```text
/steer focus on the failing tests first
```
In the Web console, enter an instruction while a reply is running and click **Steer active task**. Sending an ordinary message still uses the session queue.
## config
View or modify runtime configuration. Changes take effect immediately without restarting.

View File

@@ -62,6 +62,7 @@ In the Web console or any connected channel, type `/` to see command suggestions
| `/help` | Show command help |
| `/status` | View service status and configuration |
| `/cancel` | Abort the currently running agent task |
| `/steer <instruction>` | Guide the currently running agent task without queueing a new turn |
| `/config` | View or modify runtime configuration |
| `/skill` | Manage skills (install, uninstall, enable, disable, etc.) |
| `/memory dream [N]` | Manually trigger memory distillation (default 3 days, max 30) |

View File

@@ -94,6 +94,7 @@ description: Telegram Bot API 経由で CowAgent を接続
| `/knowledge` | ナレッジベース管理(`/knowledge list` / `on` / `off` |
| `/config` | 現在の設定を表示 |
| `/cancel` | 実行中の Agent タスクを中断 |
| `/steer` | 実行中の Agent タスクを方向修正(`/steer <指示>` |
| `/logs` | 最近のログを表示 |
| `/version` | バージョンを表示 |

View File

@@ -33,6 +33,16 @@ description: ステータスの確認、設定管理、コンテキスト制御
/cancel
```
## steer
現在のセッションで実行中の Agent タスクを、中止せずに方向修正します。指示は次の安全なチェックポイントで注入されます。すでに実行中のツールは完了することがありますが、まだ開始していないツールはスキップされます。実行中のタスクがない場合、`/steer` は新しいタスクを開始せず、キューにも追加しません。すべてのチャットチャネルで利用できます。
```text
/steer 失敗しているテストを先に確認して
```
Web コンソールでは、応答の実行中に指示を入力して「Steer active task」ボタンを押します。通常のメッセージは引き続きセッションキューに入ります。
## config
実行時設定の表示または変更を行います。変更は即座に反映され、再起動は不要です。

View File

@@ -58,6 +58,7 @@ Web コンソールや接続されたチャネルの会話で `/` を入力す
| `/help` | コマンドヘルプを表示 |
| `/status` | サービスの状態と設定を表示 |
| `/cancel` | 実行中の Agent タスクを中止 |
| `/steer <指示>` | 新しいターンをキューに追加せず、実行中の Agent タスクを方向修正 |
| `/config` | 実行時設定の表示・変更 |
| `/skill` | スキル管理(インストール、アンインストール、有効化、無効化など) |
| `/memory dream [N]` | 記憶蒸留を手動トリガー(デフォルト 3 日、最大 30 |

View File

@@ -95,6 +95,7 @@ description: 将 CowAgent 接入 Telegram Bot
| `/knowledge` | 知识库管理(`/knowledge list` / `on` / `off` |
| `/config` | 查看当前配置 |
| `/cancel` | 中止当前正在运行的 Agent 任务 |
| `/steer` | 引导当前正在运行的 Agent 任务(`/steer <指令>` |
| `/logs` | 查看最近日志 |
| `/version` | 查看版本 |

View File

@@ -47,6 +47,16 @@ Session: 12 messages | 8 skills loaded
/cancel
```
## steer
在不中止任务的情况下,引导当前会话里正在运行的 Agent。指令会在下一个安全检查点注入已经开始的工具可以执行完尚未开始的工具会跳过。若当前没有运行中的任务`/steer` 不会新建任务,也不会进入队列。所有聊天渠道均可使用。
```text
/steer 先处理失败的测试
```
Web 控制台在回复进行中会显示“引导当前任务”按钮。普通消息仍按原有方式进入会话队列。
## config
查看或修改运行时配置。修改后立即生效,无需重启服务。

View File

@@ -62,6 +62,7 @@ Others:
| `/help` | 显示命令帮助 |
| `/status` | 查看服务状态和配置 |
| `/cancel` | 中止当前正在运行的 Agent 任务 |
| `/steer <指令>` | 引导当前正在运行的 Agent 任务,不新建排队回合 |
| `/config` | 查看或修改运行时配置 |
| `/skill` | 管理技能(安装、卸载、启用、禁用等) |
| `/memory dream [N]` | 手动触发记忆蒸馏(默认 3 天,最大 30 |