You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Spawnable Agents:** Sub-agents this agent can create
17
-
18
-
**Tool Names:** Capabilities (read files, run commands, etc.)
19
-
20
-
**Output Mode:** Response format (last message, report, all messages)
21
-
22
-
**Prompt Schema:** Input validation rules
23
-
24
-
## Agent Configuration
25
-
26
-
When creating agent templates, you define all aspects of the agent from scratch.
27
-
28
-
### Agent Schema
29
-
30
-
<AgentTemplateSchemaDisplay />
12
+
<AgentDefinitionDisplay />
31
13
32
14
### Core Configuration
33
15
@@ -177,10 +159,12 @@ Other agents this agent can spawn. Use the fully qualified agent ID from the age
177
159
> **⚠️ Important:** When referencing built-in agents, you **must** specify both publisher and version (e.g., `codebuff/reviewer@0.0.1`). Omit publisher/version only for local agents defined in your `.agents/` directory.
178
160
179
161
**Referencing Agents:**
162
+
180
163
- Published/built-in agents: `"codebuff/file-picker@0.0.1"` (publisher and version required!)
181
164
- Local agents: `"my-custom-agent"` (just the agent ID)
182
165
183
166
**Available Built-in Agents:**
167
+
184
168
-`codebuff/base` - Main coding assistant
185
169
-`codebuff/reviewer` - Code review agent
186
170
-`codebuff/thinker` - Deep thinking agent
@@ -231,25 +215,24 @@ Prompt inserted at each agent step. Powerful for changing behavior but usually n
231
215
**🚀 This is what makes Codebuff agents truly powerful!** Unlike traditional prompt-based agents, `handleSteps` lets you write actual code to control agent behavior.
232
216
233
217
Programmatically control the agent's execution using a TypeScript generator function. This enables:
218
+
234
219
-**Dynamic decision making** based on tool results
235
220
-**Complex orchestration** between multiple tools and agents
236
221
-**Conditional branching** based on file contents or agent responses
237
222
-**Iterative refinement** until desired results are achieved
238
223
-**State management** across multiple steps
239
224
240
-
241
225
**What You Can Yield:**
242
226
243
227
<MarkdownTable>
244
-
| Yield Value | What It Does |
245
-
|------------|-------------|
246
-
| Tool call object | Execute a specific tool and get its result |
247
-
| 'STEP' | Run agent's LLM for one generation step |
248
-
| 'STEP_ALL' | Let agent run until completion |
249
-
| return | End the agent's turn immediately |
228
+
| Yield Value | What It Does | |------------|-------------| | Tool call object
229
+
| Execute a specific tool and get its result | | 'STEP' | Run agent's LLM for
230
+
one generation step | | 'STEP_ALL' | Let agent run until completion | | return
0 commit comments