Skip to content

Commit c30474d

Browse files
committed
rename agent-aware-base to base-agent-builder
1 parent 6ac3934 commit c30474d

File tree

7 files changed

+13
-15
lines changed

7 files changed

+13
-15
lines changed

backend/src/templates/agent-list.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { models } from '@codebuff/common/constants'
22
import { AgentTemplateTypes } from '@codebuff/common/types/session-state'
33

4-
import { agentAwareBase } from './agents/agent-aware-base'
4+
import { baseAgentBuilder } from './agents/base-agent-builder'
55
import { agentBuilder } from './agents/agent-builder'
66
import { dryRun } from './agents/archive/dry-run'
77
import { ask } from './agents/ask'
@@ -48,9 +48,9 @@ export const agentTemplates: Record<AgentTemplateType | string, AgentTemplate> =
4848
id: AgentTemplateTypes.claude4_gemini_thinking,
4949
...thinkingBase(models.openrouter_claude_sonnet_4),
5050
},
51-
[AgentTemplateTypes.agent_aware_base]: {
52-
id: AgentTemplateTypes.agent_aware_base,
53-
...agentAwareBase(models.openrouter_claude_sonnet_4),
51+
[AgentTemplateTypes.base_agent_builder]: {
52+
id: AgentTemplateTypes.base_agent_builder,
53+
...baseAgentBuilder(models.openrouter_claude_sonnet_4),
5454
},
5555

5656
[AgentTemplateTypes.thinker]: {

backend/src/templates/agents/agent-aware-base.ts renamed to backend/src/templates/agents/base-agent-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const TEMPLATE_TYPES_PATH = path.join(TYPES_DIR, AGENT_CONFIG_FILE)
2727
const TOOL_DEFINITIONS_FILE = 'tools.d.ts'
2828
const TOOL_DEFINITIONS_PATH = path.join(TYPES_DIR, TOOL_DEFINITIONS_FILE)
2929

30-
export const agentAwareBase = (
30+
export const baseAgentBuilder = (
3131
model: Model,
3232
allAvailableAgents?: string[],
3333
): Omit<AgentTemplate, 'id'> => {

common/src/constants/agents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const AGENT_PERSONAS = {
2222
purpose: 'Base agent that orchestrates the full response.',
2323
} as const,
2424

25-
agent_aware_base: {
25+
base_agent_builder: {
2626
displayName: 'Buffy the Enthusiastic Agent Builder',
2727
purpose:
2828
'Enhanced base agent that can create custom agents and handle all coding tasks',

common/src/types/session-state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const AgentTemplateTypeList = [
6161
'base_experimental',
6262
'claude4_gemini_thinking',
6363
'superagent',
64-
'agent_aware_base',
64+
'base_agent_builder',
6565

6666
// Ask mode
6767
'ask',

common/src/util/example-1.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { AgentConfig } from './types/agent-config'
22

33
const config: AgentConfig = {
44
id: 'example-1',
5-
displayName: 'Ruby the Code Reviewer (Level 1)',
5+
displayName: 'Ruby the Code Reviewer (Example 1)',
66
model: 'anthropic/claude-3.5-haiku-20241022',
77

88
toolNames: ['read_files', 'write_file', 'set_output', 'end_turn'],
@@ -39,8 +39,6 @@ const config: AgentConfig = {
3939
},
4040
},
4141
},
42-
43-
displayName: 'Ruby the Code Reviewer (Example 1)',
4442
parentPrompt:
4543
'Reviews code for quality, best practices, and potential improvements. Good for beginners learning code review fundamentals.',
4644

npm-app/src/cli-handlers/agent-creation-chat.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ Model: ${requirements.model}
8585
Please create a complete TypeScript agent template file in the ${AGENT_TEMPLATES_DIR} directory with proper types and a comprehensive system prompt.`
8686

8787
try {
88-
// Use the resetAgent helper to properly switch to agent-aware-base which automatically spawns the agent builder
88+
// Use the resetAgent helper to properly switch to base-agent-builder which automatically spawns the agent builder
8989
const cliInstance = CLI.getInstance()
9090
await cliInstance.resetAgent(
91-
AgentTemplateTypes.agent_aware_base,
91+
AgentTemplateTypes.base_agent_builder,
9292
{
9393
name: requirements.name,
9494
purpose: requirements.purpose,

npm-app/src/cli-handlers/agents.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ function setupAgentsKeyHandler(rl: any, onExit: () => void) {
545545
}
546546

547547
async function startDirectAgentCreation(onExit: () => void) {
548-
// Switch to agent-aware-base which automatically spawns Bob the Agent Builder for agent creation
548+
// Switch to base-agent-builder which automatically spawns Bob the Agent Builder for agent creation
549549
const prompt = `Create a new custom agent template for me. Please ask me what kind of agent I'd like to create and help me build it.`
550550

551551
console.log(
@@ -561,9 +561,9 @@ async function startDirectAgentCreation(onExit: () => void) {
561561

562562
try {
563563
const cliInstance = CLI.getInstance()
564-
// Switch to agent-aware-base which automatically spawns the agent builder for agent creation
564+
// Switch to base-agent-builder which automatically spawns the agent builder for agent creation
565565
await cliInstance.resetAgent(
566-
AgentTemplateTypes.agent_aware_base,
566+
AgentTemplateTypes.base_agent_builder,
567567
undefined,
568568
prompt,
569569
)

0 commit comments

Comments
 (0)