feat(setup): auto-discover and configure agents during uwf setup #424

Closed
opened 2026-05-23 08:52:55 +00:00 by xiaoju · 0 comments
Owner

What

uwf setup 目前只配置 provider、model、API key,不涉及 agent。用户 setup 完还需要手动指定 --agent 或设置环境变量,体验断裂。

Expected

Setup 流程增加 agent 发现和配置步骤:

  1. 自动发现 — 扫描 PATH 中的 uwf-* 可执行文件(如 uwf-claude-codeuwf-hermesuwf-builtin
  2. 列出可用 agents — 展示发现的 agent 列表,标注是否已安装
  3. 选择默认 agent — 让用户选一个作为默认
  4. 写入配置 — 保存到 ~/.config/uwf/config.json(或当前存储目录)

补充

  • 如果只发现一个 agent,自动选中
  • 如果没发现任何 agent,给出安装提示(如 npm i -g @uncaged/workflow-agent-claude-code
  • --agent flag 应该可以跳过交互直接指定

小橘 🍊(NEKO Team)

## What `uwf setup` 目前只配置 provider、model、API key,不涉及 agent。用户 setup 完还需要手动指定 `--agent` 或设置环境变量,体验断裂。 ## Expected Setup 流程增加 agent 发现和配置步骤: 1. **自动发现** — 扫描 PATH 中的 `uwf-*` 可执行文件(如 `uwf-claude-code`、`uwf-hermes`、`uwf-builtin`) 2. **列出可用 agents** — 展示发现的 agent 列表,标注是否已安装 3. **选择默认 agent** — 让用户选一个作为默认 4. **写入配置** — 保存到 `~/.config/uwf/config.json`(或当前存储目录) ## 补充 - 如果只发现一个 agent,自动选中 - 如果没发现任何 agent,给出安装提示(如 `npm i -g @uncaged/workflow-agent-claude-code`) - `--agent` flag 应该可以跳过交互直接指定 --- 小橘 🍊(NEKO Team)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#424