|
| 1 | +import { join } from 'path' |
| 2 | + |
1 | 3 | import { |
2 | 4 | scanCommandsDirectory, |
3 | 5 | generateCommandsSection, |
4 | 6 | } from './utils/command-scanner' |
5 | | -import { join } from 'path' |
| 7 | +import { base } from '../factory/base' |
6 | 8 |
|
7 | | -import type { AgentDefinition } from '../types/agent-definition' |
| 9 | +import type { SecretAgentDefinition } from '../types/secret-agent-definition' |
8 | 10 |
|
9 | | -const definition: AgentDefinition = { |
| 11 | +const definition: SecretAgentDefinition = { |
10 | 12 | id: 'codelayer-base', |
11 | 13 | publisher: 'codelayer', |
| 14 | + ...base('anthropic/claude-4-sonnet-20250522'), |
| 15 | + |
| 16 | + // Override specific fields from base factory |
12 | 17 | displayName: 'Codelayer Base Agent', |
13 | | - model: 'anthropic/claude-4-sonnet-20250522', |
14 | | - |
15 | | - toolNames: [ |
16 | | - 'read_files', |
17 | | - 'code_search', |
18 | | - 'run_terminal_command', |
19 | | - 'spawn_agents', |
20 | | - 'end_turn', |
21 | | - ], |
22 | 18 |
|
23 | 19 | spawnableAgents: [ |
24 | | - 'codebuff/editor@0.0.1', |
| 20 | + 'context-pruner', |
25 | 21 | 'codebase-analyzer', |
26 | 22 | 'codebase-locator', |
27 | 23 | 'codebase-pattern-finder', |
@@ -82,10 +78,7 @@ Always read the command files to get the latest instructions rather than relying |
82 | 78 | })(), |
83 | 79 |
|
84 | 80 | instructionsPrompt: |
85 | | - 'As Codelayer Base, focus on understanding the user request and coordinating with other agents as needed. Use your tools efficiently and provide clear, helpful responses.', |
86 | | - |
87 | | - outputMode: 'last_message', |
88 | | - includeMessageHistory: false, |
| 81 | + 'As Codelayer Base, you are a foundational agent in the Codelayer collection that provides core functionality and coordination. You can detect trigger phrases in user input and execute corresponding commands by reading markdown files from the commands directory. When you detect triggers, read the appropriate .md file, extract the prompt section, and follow the instructions. Always coordinate with other Codelayer agents as needed and provide clear, helpful responses about command execution and results.', |
89 | 82 | } |
90 | 83 |
|
91 | 84 | export default definition |
0 commit comments