Skip to content

自动化与目标 ​

概念和日常用法见自动化与目标。

字段 ​

配置项说明默认值
Automations.Enabled是否启用 Automations 编排器true
Automations.PollingInterval轮询间隔00:00:10
Automations.MaxConcurrentTasks本地任务最大并发数3
Automations.TurnTimeout单轮对话超时时间00:30:00
Automations.WorktreeRetentionEnabled是否启用空闲自动化任务 worktree 清理true
Automations.WorktreeRetentionIdlePeriod干净自动化任务 worktree 进入清理候选前的空闲时间21.00:00:00
Goals.Enabled启用目标存储、AppServer 方法、目标上下文注入、用量统计和模型 Goal 工具true
Goals.AutoContinueEnabled允许 active 目标在线程空闲时自动继续true

Automations.WorktreeRetentionIdlePeriod 必须至少为 14.00:00:00。Retention sweep 只会移除空闲、干净、且没有领先基础版本提交的受管自动化任务 worktree。

Automation AppServer 方法:

Method说明
automation/list列出自动化
automation/read读取自动化
automation/create创建自动化
automation/update检查版本后保存
automation/run排队执行一次
automation/delete删除自动化
automation/runs/list读取运行历史
automation/presets/list列出对话预设

Goal AppServer 方法:

Method说明
thread/goal/set设置、替换、暂停或恢复 Thread goal
thread/goal/get读取当前 Thread goal 状态
thread/goal/clear清除当前 Thread goal