-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathagents.yaml
More file actions
168 lines (158 loc) · 5.84 KB
/
Copy pathagents.yaml
File metadata and controls
168 lines (158 loc) · 5.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# Agent definitions: providers, roles, models, budgets
#
# Provider split: the code-writing roles (creator, improver, supervisor) run on
# Cursor's Composer model; the analysis / planning / review roles (analyst,
# planner, verifier, diagnoser, scout) stay on Claude, where deep reasoning and
# the verdict path carry the most weight. If a read-only role is ever moved to
# Cursor, it must run with `--mode plan` / `--mode ask` to keep its no-write
# guarantee — cursor-agent's `-p` otherwise has full write+bash access.
version: "3.0"
defaultProvider: claude
providers:
claude:
command: claude
defaultArgs:
- --dangerously-skip-permissions
promptArg: "-p"
modelArg: "--model"
toolsArg: "--tools"
maxBudgetArg: "--max-budget-usd"
systemPromptFileArg: "--append-system-prompt-file"
outputMode: stdout
# Windows argv limit is ~32 KB. Weekly retrospective + context-heavy tasks
# routinely exceed 100 KB, so the prompt body is piped via stdin. The
# claude CLI honors `-p` without a value and then reads the prompt from
# stdin — no data leaks into argv.
promptFromStdin: true
envVarsAnyOf:
- ANTHROPIC_API_KEY
- CLAUDE_CODE_OAUTH_TOKEN
cursor:
command: cursor-agent
# `-p` is cursor-agent's non-interactive (print) flag; the prompt follows
# as a positional arg. `--force` grants write+bash access (required for the
# code-writing roles below). cursor-agent has NO system-prompt flag, so the
# engine folds the assembled role + context into the prompt body (see
# CLIAgentProvider.resolvePrompt). No `toolsArg` / `maxBudgetArg`: cursor-agent
# supports neither — per-tool restriction is only `--mode plan|ask` (read-only)
# and there is no per-agent USD budget cap.
# Host prerequisites: `cursor-agent` on PATH, `ripgrep` (rg) installed, and
# CURSOR_API_KEY set (or `cursor-agent login`). `--model` takes an exact id
# from `cursor-agent --list-models` (there is no bare `composer` alias).
# Composer 2.5 has two ids: `composer-2.5` (standard) and `composer-2.5-fast`
# (Fast tier — lower latency, ~6x the token price, same model). The writers
# below use `composer-2.5` (standard, Fast disabled). "Max Mode" is encoded
# as a model-id suffix (`-max`) and only exists for some models (Opus 4.8,
# Codex); Composer 2.5 has no `-max` variant. No separate --fast/--max flags.
# `defaultModel: auto` is the fallback for any role/repo that pins no model —
# cursor-agent's `auto` self-selects the best available model.
defaultModel: auto
# Windows note: `cursor-agent` is a `.cmd`/`.ps1` shim spawn cannot launch by
# bare name, so the engine resolves it to its bundled `node.exe index.js`
# automatically on win32 — host-local runtime behavior keyed on the command,
# NOT config (see win-launcher.ts). Override the install dir with
# CURSOR_AGENT_HOME if non-default. On Linux/macOS cursor-agent is a real
# binary and spawns directly.
defaultArgs:
- --force
- --output-format
- text
promptArg: "-p"
outputMode: stdout
modelArg: "--model"
# Windows argv limit is ~32 KB. The weekly retrospective (improver) and
# context-heavy creator/supervisor prompts routinely fold to 70 KB+ once
# the system prompt is prepended (cursor-agent has no system-prompt flag),
# so passing the body in argv fails with `spawn ENAMETOOLONG`. cursor-agent
# reads the prompt from stdin when `-p` is given with no positional value,
# so the body is piped instead — nothing leaks into argv.
promptFromStdin: true
envVars:
- CURSOR_API_KEY
agents:
creator:
provider: cursor
description: Creates changes (code, text, structure, PR)
instructions: agents/creator.md
timeout: 3600
model: composer-2.5
review: true
tools: Read,Grep,Glob,Bash,Edit,Write,WebSearch,WebFetch
maxBudget: 15.00
context:
- base
verifier:
provider: claude
description: Checks quality, correctness, requirement compliance
instructions: agents/verifier.md
timeout: 600
model: opus
tools: Read,Grep,Glob
maxBudget: 3.00
context:
- base
improver:
provider: cursor
description: Improves - refactoring, simplification, quality uplift
instructions: agents/improver.md
timeout: 1200
model: composer-2.5
review: true
tools: Read,Grep,Glob,Edit,Write
maxBudget: 3.00
context:
- base
analyst:
provider: claude
description: Analyzes findings, determines root causes, forms conclusions
instructions: agents/analyst.md
timeout: 1200
model: opus
review: true
schedule: daily
tools: Read,Grep,Glob,Bash,WebSearch,WebFetch
maxBudget: 5.00
context:
- base
- state
planner:
provider: claude
description: Breaks down into tasks, forms an action plan
instructions: agents/planner.md
timeout: 1800
model: opus
review: true
tools: Read,Grep,Glob,WebSearch,WebFetch
maxBudget: 5.00
context:
- base
diagnoser:
provider: claude
description: Analyzes failures, rejections, identifies rejection causes
instructions: agents/diagnoser.md
timeout: 240
model: sonnet
context:
- base
supervisor:
provider: cursor
description: System-level LLM router for PR events — reads PR comments, decides re-iterate/cancel/escalate, applies code changes via AOP EMIT
instructions: agents/supervisor.md
timeout: 3600
model: composer-2.5
review: true
tools: Read,Grep,Glob,Bash,Edit,Write,WebSearch,WebFetch
maxBudget: 15.00
context:
- base
scout:
provider: claude
description: Initializes operator in repository with full research
instructions: agents/scout.md
timeout: 1200
model: opus
review: true
tools: Read,Grep,Glob,Bash
maxBudget: 5.00
context:
- base