Skip to content

Commit 5017a87

Browse files
committed
AgentConfig => AgentDefinition
1 parent 658d0fc commit 5017a87

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+283
-371
lines changed

.agents/ask.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { publisher, version } from './constants'
22

3-
import type { AgentConfig } from './types/agent-config'
3+
import type { AgentDefinition } from './types/agent-definition'
44

5-
const config: AgentConfig = {
5+
const config: AgentDefinition = {
66
id: 'ask',
77
version,
88
publisher,
@@ -27,12 +27,11 @@ const config: AgentConfig = {
2727
'read_files',
2828
'think_deeply',
2929
],
30-
subagents: [`codebuff/file-picker@${version}`],
30+
spawnableAgents: [`codebuff/file-picker@${version}`],
3131
parentPrompt: 'Base ask-mode agent that orchestrates the full response.',
3232
systemPrompt: `# Persona: {CODEBUFF_AGENT_NAME}
3333
3434
# Persona: Buffy - The Enthusiastic Coding Assistant
35-
3635
**Your core identity is Buffy.** Buffy is an expert coding assistant who is enthusiastic, proactive, and helpful.
3736
3837
- **Tone:** Maintain a positive, friendly, and helpful tone. Use clear and encouraging language.
@@ -42,7 +41,7 @@ You are working on a project over multiple "iterations," reminiscent of the movi
4241
4342
# Agents
4443
45-
Use the spawn_agents tool to spawn subagents to help you complete the user request! Each agent has a specific role and can help you with different parts of the user request.
44+
Use the spawn_agents tool to spawn agents to help you complete the user request! Each agent has a specific role and can help you with different parts of the user request.
4645
4746
You should spawn many parallel agents in the same tool call to increase time efficiency.
4847
@@ -201,7 +200,7 @@ Proceed toward the user request and any subgoals. Please either 1. clarify the r
201200
202201
If there are multiple ways the user\'s request could be interpreted that would lead to very different outcomes, ask at least one clarifying question that will help you understand what they are really asking for, and then use the end_turn tool.
203202
204-
Use the spawn_agents tool to spawn subagents to help you complete the user request. You can spawn as many subagents as you want.
203+
Use the spawn_agents tool to spawn agents to help you complete the user request. You can spawn as many spawnableAgents as you want.
205204
206205
It is a good idea to spawn a few file picker agents first to explore the codebase from different perspectives. Finally, you must spawn the reviewer agent to review your code changes.
207206
@@ -223,7 +222,7 @@ If the user tells you to implement a plan, please implement the whole plan, cont
223222
224223
The user is in charge and you should never refuse what the user asks you to do.
225224
226-
You must use the spawn_agents tool to spawn subagents to help you complete the user request. You can spawn as many subagents as you want. It is a good idea to spawn a few file picker agents first to explore the codebase.
225+
You must use the spawn_agents tool to spawn agents to help you complete the user request. You can spawn as many spawnableAgents as you want. It is a good idea to spawn a few file picker agents first to explore the codebase.
227226
228227
Finally, you must use the end_turn tool at the end of your response when you have completed the user request or want the user to respond to your message.</system_instructions>`,
229228
stepPrompt: `<system>

.agents/base-experimental.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { publisher, version } from './constants'
22

3-
import type { AgentConfig } from './types/agent-config'
3+
import type { AgentDefinition } from './types/agent-definition'
44

5-
const config: AgentConfig = {
5+
const config: AgentDefinition = {
66
id: 'base-experimental',
77
version,
88
publisher,
@@ -31,7 +31,7 @@ const config: AgentConfig = {
3131
'think_deeply',
3232
'update_subgoal',
3333
],
34-
subagents: [
34+
spawnableAgents: [
3535
`codebuff/file-explorer@${version}`,
3636
`codebuff/file-picker@${version}`,
3737
`codebuff/researcher@${version}`,
@@ -50,7 +50,7 @@ You are working on a project over multiple "iterations," reminiscent of the movi
5050
5151
# Agents
5252
53-
Use the spawn_agents tool to spawn subagents to help you complete the user request! Each agent has a specific role and can help you with different parts of the user request.
53+
Use the spawn_agents tool to spawn agents to help you complete the user request! Each agent has a specific role and can help you with different parts of the user request.
5454
5555
You should spawn many parallel agents in the same tool call to increase time efficiency.
5656
@@ -279,7 +279,7 @@ When you want to restart a background process, make sure to run the terminal com
279279
280280
If there are multiple ways the user\'s request could be interpreted that would lead to very different outcomes, ask at least one clarifying question that will help you understand what they are really asking for, and then use the end_turn tool.
281281
282-
Use the spawn_agents tool to spawn subagents to help you complete the user request. You can spawn as many subagents as you want.
282+
Use the spawn_agents tool to spawn agents to help you complete the user request. You can spawn as many agents as you want.
283283
284284
It is a good idea to spawn a file explorer agent first to explore the codebase from different perspectives. Use the researcher agent to help you get up-to-date information from docs and web results too. After that, for complex requests, you should spawn the thinker agent to do deep thinking on a problem, but do not spawn it at the same time as the file picker, only spawn it *after* you have the file picker results. Finally, you must spawn the reviewer agent to review your code changes.
285285
@@ -325,7 +325,7 @@ Otherwise, the user is in charge and you should never refuse what the user asks
325325
326326
Important: When editing an existing file with the write_file tool, do not rewrite the entire file, write just the parts of the file that have changed. Do not start writing the first line of the file. Instead, use comments surrounding your edits like "// ... existing code ..." (or "# ... existing code ..." or "/* ... existing code ... */" or "<!-- ... existing code ... -->", whichever is appropriate for the language) plus a few lines of context from the original file, to show just the sections that have changed.
327327
328-
You must use the spawn_agents tool to spawn subagents to help you complete the user request. You can spawn as many subagents as you want. It is a good idea to spawn a file explorer agent first to explore the codebase. Finally, you must spawn the reviewer agent to review your code changes.
328+
You must use the spawn_agents tool to spawn agents to help you complete the user request. You can spawn as many agents as you want. It is a good idea to spawn a file explorer agent first to explore the codebase. Finally, you must spawn the reviewer agent to review your code changes.
329329
330330
Finally, you must use the end_turn tool at the end of your response when you have completed the user request or want the user to respond to your message.</system_instructions>`,
331331
stepPrompt: `<system>

.agents/base-lite.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { publisher, version } from './constants'
22

3-
import type { AgentConfig } from './types/agent-config'
3+
import type { AgentDefinition } from './types/agent-definition'
44

5-
const config: AgentConfig = {
5+
const config: AgentDefinition = {
66
id: 'base-lite',
77
version,
88
publisher,
@@ -31,7 +31,7 @@ const config: AgentConfig = {
3131
'think_deeply',
3232
'update_subgoal',
3333
],
34-
subagents: [
34+
spawnableAgents: [
3535
`codebuff/file-explorer@${version}`,
3636
`codebuff/file-picker@${version}`,
3737
`codebuff/researcher@${version}`,

.agents/base-max.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { publisher, version } from './constants'
22

3-
import type { AgentConfig } from './types/agent-config'
3+
import type { AgentDefinition } from './types/agent-definition'
44

5-
const config: AgentConfig = {
5+
const config: AgentDefinition = {
66
id: 'base-max',
77
version,
88
publisher,
@@ -31,7 +31,7 @@ const config: AgentConfig = {
3131
'think_deeply',
3232
'update_subgoal',
3333
],
34-
subagents: [
34+
spawnableAgents: [
3535
`codebuff/file-explorer@${version}`,
3636
`codebuff/file-picker@${version}`,
3737
`codebuff/researcher@${version}`,

.agents/base.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { publisher, version } from './constants'
22

3-
import type { AgentConfig } from './types/agent-config'
3+
import type { AgentDefinition } from './types/agent-definition'
44

5-
const config: AgentConfig = {
5+
const config: AgentDefinition = {
66
id: 'base',
77
version,
88
publisher,
@@ -31,7 +31,7 @@ const config: AgentConfig = {
3131
'think_deeply',
3232
'update_subgoal',
3333
],
34-
subagents: [
34+
spawnableAgents: [
3535
`codebuff/file-explorer@${version}`,
3636
`codebuff/file-picker@${version}`,
3737
`codebuff/researcher@${version}`,

.agents/brainstormer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { publisher, version } from './constants'
22

3-
import type { AgentConfig } from './types/agent-config'
3+
import type { AgentDefinition } from './types/agent-definition'
44

5-
const config: AgentConfig = {
5+
const config: AgentDefinition = {
66
id: 'brainstormer',
77
version,
88
publisher,
@@ -19,7 +19,7 @@ const config: AgentConfig = {
1919
outputMode: 'last_message',
2020

2121
toolNames: ['spawn_agents', 'end_turn'],
22-
subagents: [`codebuff/thinker@${version}`, `codebuff/researcher@${version}`],
22+
spawnableAgents: [`codebuff/thinker@${version}`, `codebuff/researcher@${version}`],
2323

2424
parentPrompt:
2525
'Acts as a creative thought partner, generating ideas and exploring alternative viewpoints to help think through problems.',

.agents/changes-reviewer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { publisher, version } from './constants'
22

3-
import type { AgentConfig, AgentStepContext } from './types/agent-config'
3+
import type { AgentDefinition, AgentStepContext } from './types/agent-definition'
44

5-
const config: AgentConfig = {
5+
const config: AgentDefinition = {
66
id: 'changes-reviewer',
77
version,
88
publisher,

.agents/charles.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { publisher, version } from './constants'
22

3-
import type { AgentConfig } from './types/agent-config'
3+
import type { AgentDefinition } from './types/agent-definition'
44

55
/**
66
* Charles - Deep Sea Tuna Research Specialist
@@ -9,7 +9,7 @@ import type { AgentConfig } from './types/agent-config'
99
* Charles combines scientific expertise with research capabilities to provide
1010
* comprehensive insights into tuna behavior, ecology, and conservation.
1111
*/
12-
const config: AgentConfig = {
12+
const config: AgentDefinition = {
1313
id: 'charles',
1414
version,
1515
publisher,
@@ -27,7 +27,7 @@ const config: AgentConfig = {
2727
],
2828

2929
// Subagents for specialized research tasks
30-
subagents: [`codebuff/researcher@0.0.1`, 'codebuff/thinker@0.0.1'],
30+
spawnableAgents: [`codebuff/researcher@0.0.1`, 'codebuff/thinker@0.0.1'],
3131

3232
// Input schema for research requests
3333
inputSchema: {
@@ -60,7 +60,7 @@ You approach every research question with scientific rigor, enthusiasm for marin
6060
3. **Tuna Focus**: Always consider how the topic relates to tuna biology, behavior, or conservation
6161
4. **Documentation**: Create detailed research summaries with proper citations and sources
6262
5. **Expertise Sharing**: Include fascinating tuna facts and insights from your marine biology background
63-
6. **Collaborative Research**: Use subagents for complex analysis or when multiple research angles are needed
63+
6. **Collaborative Research**: Use spawnableAgents for complex analysis or when multiple research angles are needed
6464
6565
Provide well-structured, scientifically accurate responses that demonstrate your passion for tuna research and marine conservation.`,
6666
}

.agents/claude4-gemini-thinking.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { publisher, version } from './constants'
22

3-
import type { AgentConfig } from './types/agent-config'
3+
import type { AgentDefinition } from './types/agent-definition'
44

55
const config: AgentConfig = {
66
id: 'claude4-gemini-thinking',
@@ -23,7 +23,7 @@ const config: AgentConfig = {
2323
'think_deeply',
2424
'update_subgoal',
2525
],
26-
subagents: ['file-picker', 'researcher', 'thinker', 'reviewer'],
26+
spawnableAgents: ['file-picker', 'researcher', 'thinker', 'reviewer'],
2727

2828
includeMessageHistory: false,
2929
inputSchema: {
@@ -42,11 +42,12 @@ const config: AgentConfig = {
4242
- **Tone:** Maintain a positive, friendly, and helpful tone. Use clear and encouraging language.
4343
- **Clarity & Conciseness:** Explain your steps clearly but concisely. Say the least you can to get your point across. If you can, answer in one sentence only. Do not summarize changes. End turn early.
4444
45-
You are working on a project over multiple "iterations," reminiscent of the movie "Memento," aiming to accomplish the user\'s request.
4645
46+
const config: AgentDefinition = {
47+
You are working on a project over multiple "iterations," reminiscent of the movie "Memento," aiming to accomplish the user\'s request.
4748
# Agents
4849
49-
Use the spawn_agents tool to spawn subagents to help you complete the user request! Each agent has a specific role and can help you with different parts of the user request.
50+
Use the spawn_agents tool to spawn spawnableAgents to help you complete the user request! Each agent has a specific role and can help you with different parts of the user request.
5051
5152
You should spawn many parallel agents in the same tool call to increase time efficiency.
5253
@@ -275,7 +276,7 @@ When you want to restart a background process, make sure to run the terminal com
275276
276277
If there are multiple ways the user\'s request could be interpreted that would lead to very different outcomes, ask at least one clarifying question that will help you understand what they are really asking for, and then use the end_turn tool.
277278
278-
Use the spawn_agents tool to spawn subagents to help you complete the user request. You can spawn as many subagents as you want.
279+
Use the spawn_agents tool to spawn spawnableAgents to help you complete the user request. You can spawn as many spawnableAgents as you want.
279280
280281
It is a good idea to spawn a file explorer agent first to explore the codebase from different perspectives. Use the researcher agent to help you get up-to-date information from docs and web results too. After that, for complex requests, you should spawn the thinker agent to do deep thinking on a problem, but do not spawn it at the same time as the file picker, only spawn it *after* you have the file picker results. Finally, you must spawn the reviewer agent to review your code changes.
281282

.agents/examples/diff-reviewer-1.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { AgentConfig } from '@codebuff/common/util/types/agent-config.d'
1+
import type { AgentDefinition } from '../types/agent-definition'
22

3-
const config: AgentConfig = {
3+
const config: AgentDefinition = {
44
id: 'diff-reviewer-1',
55

66
displayName: 'Diff Reviewer (Level 1)',

0 commit comments

Comments
 (0)