68 lines
2.1 KiB
Markdown
68 lines
2.1 KiB
Markdown
# Project Agent Execution Configuration
|
|
# 项目工程 Agent 执行路由配置
|
|
|
|
适用范围:定义本项目中由 AI / Agent 主导的代码实施、修复、测试与审阅所调用的 Agent CLI 路由。
|
|
解析器识别正文中唯一一个 ```agent-execution 代码块。正文外的说明文字可根据项目需要调整。
|
|
|
|
通用硬规则见 Development-Guidelines 的 [Agent 执行与协作契约](deps/development-guidelines/standards/agent-execution.md)。
|
|
本配置为项目本地路由权威,声明具体的候选 profile、尝试次数上限、超时、集成入口与豁免路径;
|
|
代码块须通过 `deps/development-guidelines/templates/schemas/agent-execution.schema.json` 校验后才能登记为 active。
|
|
`fallback_to_host` 只能为 `never`;旧值 `all-unavailable` 仅供迁移工具读取,不能通过准入。
|
|
下例的 CLI 名称为维护主机上的实际执行器(cursor-agent-stable、agy、pi、codex);其他主机按实际执行器调整 executable。
|
|
|
|
```agent-execution
|
|
schema: agent-execution/v1
|
|
|
|
execution:
|
|
fresh_process_per_unit: true
|
|
permission: run-everything
|
|
fallback_to_host: never
|
|
max_parallel: 3
|
|
timeout_seconds: 7200
|
|
idle_timeout_seconds: 600
|
|
summary_bytes: 16384
|
|
raw_output_bytes: 10485760
|
|
max_attempts_per_profile: 3
|
|
emergency_profile: codex
|
|
|
|
roles:
|
|
implementation: [cursor, antigravity, pi]
|
|
repair: [cursor, antigravity, pi]
|
|
test: [pi, antigravity, cursor]
|
|
review: [pi, antigravity, cursor, codex]
|
|
|
|
profiles:
|
|
cursor:
|
|
adapter: cursor
|
|
executable: "cursor-agent-stable"
|
|
model: auto
|
|
enabled: true
|
|
|
|
antigravity:
|
|
adapter: antigravity
|
|
executable: agy
|
|
model: auto
|
|
enabled: true
|
|
|
|
pi:
|
|
adapter: pi
|
|
executable: pi
|
|
model: auto
|
|
enabled: true
|
|
|
|
codex:
|
|
adapter: codex
|
|
executable: codex
|
|
model: auto
|
|
enabled: true
|
|
|
|
integration:
|
|
exempt_paths: [".task/**", "docs/superpowers/specs/**", "docs/superpowers/plans/**"]
|
|
transport:
|
|
command: "scripts/agent-exec apply"
|
|
admission:
|
|
command: "scripts/agent-exec admit"
|
|
cleanup:
|
|
command: "scripts/agent-exec cleanup"
|
|
```
|