Run seek across multiple turns toward a completion condition, unattended.
自动多轮工作直到某个条件满足,无需逐轮确认。
Goal runs seek unattended across multiple turns toward a completion CONDITION. A cheap DeepSeek model judges after each turn whether the condition is satisfied. Use it for tasks like "fix all TODOs", "run test suite green", or "migrate all API calls".
Goal 让 seek 自动多轮工作直到某个条件满足。适合"改完所有 TODO"、"跑通所有测试"、"迁移完这个目录的 API 调用"这类长时间任务。
$ /goal 修复 internal/bgjob/ 下所有测试 # TUI $ seek goal run "把 docs/ 下所有 .md 中的 V3 改为 V4" # CLI
| Reason | 原因 | Description | 说明 |
|---|---|---|---|
met | Judge confirmed condition satisfied | 判定条件已满足 | |
max_turns | Reached turn cap (default 25) | 达到轮数上限 | |
timeout | Wall-clock timeout | 超时 | |
stalled | No progress for N turns (default 3) | 连续多轮无进展 | |
token_budget | Token budget exhausted | Tokens 预算耗尽 | |
canceled | User canceled (Esc / SIGINT) | 用户取消 | |
error | A turn execution failed | 某轮执行出错 |
Note: these protections apply only to the unattended paths (seek goal run and cron --goal). The TUI /goal uses your current permission posture — Ask prompts fire normally and remote push is not auto-blocked (you are present to supervise).
注意:以下保护只在无人值守路径(seek goal run 和 cron --goal)启用。TUI 里的 /goal 走你当前的权限姿态——Ask 模式会逐次弹确认,push 也不会被自动拦(你在旁边,由你把关)。
In unattended mode (goal run / cron), seek automatically enables these protections:
无人值守时(goal run / cron),自动启用以下保护:
git push, gh pr, gh api are refusedgit push、gh pr、gh api 等远程改动操作被拒绝git push, gh pr, gh api, etc.) are blocked even in yolo mode during an unattended goal run.
远程提交操作(git push、gh pr、gh api 等)即使在 yolo 模式下也被禁止。
$ /goal <condition>
🎯 goal N/M badge)🎯 goal N/M 徽章)$ seek goal run "<condition>" # Unattended run until condition met
| Param | 参数 | Default | 默认 | Description | 说明 |
|---|---|---|---|---|---|
| Max turns | 25 | Stops with max_turns reason | 达到后以 max_turns 停止 | ||
| Stall limit | 3 | N turns with no tool calls → stalled | 连续 N 轮无工具调用时停止 | ||
| Timeout | 30 min (headless goal run); none (TUI /goal) | headless goal run 30 分钟;TUI /goal 无 | Stops with timeout reason | 到点以 timeout 停止 | |
| Token budget | None | Reserved — no tracker wired yet | 预留(接入需 tracker,见 PRD 后续项) |
| Goal | Goal | Autopilot | Autopilot | |
|---|---|---|---|---|
| Architecture架构 | Single agent, same conversation, multiple turns | 单 agent,同一对话多轮 | Multiple agents, isolated worktrees, parallel | 多 agent,独立 worktree 并行 |
| Use case适用场景 | Linear tasks (edit → compile → test) | 线性任务(改代码 → 编译 → 测试) | Exploratory (parallel experiments) | 探索性任务(多方案并行实验) |
| Isolation隔离 | Same workspace | 同一工作区 | Per-agent worktree | 每个 subagent 独立 worktree |
| Judge判決器 | Cheap DeepSeek call per turn | DeepSeek 廉价模型每轮判断 | Orchestrator aggregates results | 由 orchestrator 汇总结果 |