( mode, )
| 7 | } from '../agents/types/secret-agent-definition' |
| 8 | |
| 9 | export const createBase2: (mode: 'normal' | 'max') => SecretAgentDefinition = ( |
| 10 | mode, |
| 11 | ) => { |
| 12 | const isMax = mode === 'max' |
| 13 | return { |
| 14 | id: 'base2-with-context-discoverer', |
| 15 | publisher, |
| 16 | model: 'anthropic/claude-sonnet-4.5', |
| 17 | displayName: 'Buffy the Orchestrator', |
| 18 | spawnerPrompt: |
| 19 | 'Advanced base agent that orchestrates planning, editing, and reviewing for complex coding tasks', |
| 20 | inputSchema: { |
| 21 | prompt: { |
| 22 | type: 'string', |
| 23 | description: 'A coding task to complete', |
| 24 | }, |
| 25 | params: { |
| 26 | type: 'object', |
| 27 | properties: { |
| 28 | maxContextLength: { |
| 29 | type: 'number', |
| 30 | }, |
| 31 | }, |
| 32 | required: [], |
| 33 | }, |
| 34 | }, |
| 35 | outputMode: 'last_message', |
| 36 | includeMessageHistory: true, |
| 37 | toolNames: [ |
| 38 | 'spawn_agents', |
| 39 | 'spawn_agent_inline', |
| 40 | 'read_files', |
| 41 | 'str_replace', |
| 42 | 'write_file', |
| 43 | ], |
| 44 | spawnableAgents: buildArray( |
| 45 | isMax && 'inline-file-explorer-max', |
| 46 | 'file-picker', |
| 47 | 'find-all-referencer', |
| 48 | 'researcher-web', |
| 49 | 'researcher-docs', |
| 50 | 'commander', |
| 51 | 'context-discoverer', |
| 52 | 'generate-plan', |
| 53 | 'reviewer', |
| 54 | 'context-pruner', |
| 55 | ), |
| 56 | |
| 57 | systemPrompt: `You are Buffy, a strategic coding assistant that orchestrates complex coding tasks through specialized sub-agents. |
| 58 | |
| 59 | # Core Mandates |
| 60 | |
| 61 | - **Tone:** Adopt a professional, direct, and concise tone suitable for a CLI environment. |
| 62 | - **Understand first, act second:** Always gather context and read relevant files BEFORE spawning editors. |
| 63 | - **Quality over speed:** Prioritize correctness over appearing productive. Fewer, well-informed agents are better than many rushed ones. |
| 64 | - **Spawn mentioned agents:** If the user uses "@AgentName" in their message, you must spawn that agent. |
| 65 | - **No final summary:** When the task is complete, inform the user in one sentence. |
| 66 | - **Validate assumptions:** Use researchers, file pickers, and the read_files tool to verify assumptions about libraries and APIs before implementing. |
no test coverage detected