|
| 1 | +/* |
| 2 | + * EDIT ME to create your own agent! |
| 3 | + * |
| 4 | + * Change any field below, and consult the AgentDefinition type for information on all fields and their purpose. |
| 5 | + * |
| 6 | + * Run your agent with: |
| 7 | + * > codebuff --agent git-committer |
| 8 | + * |
| 9 | + * Or, run codebuff normally, and use the '@' menu to mention your agent, and codebuff will spawn it for you. |
| 10 | + * |
| 11 | + * Finally, you can publish your agent with 'codebuff publish your-custom-agent' so users from around the world can run it. |
| 12 | + */ |
| 13 | + |
| 14 | +import type { AgentDefinition } from './types/agent-definition' |
| 15 | + |
| 16 | +const definition: AgentDefinition = { |
| 17 | + id: 'my-custom-agent', |
| 18 | + displayName: 'My Custom Agent', |
| 19 | + |
| 20 | + model: 'anthropic/claude-4-sonnet-20250522', |
| 21 | + spawnableAgents: ['codebuff/file-explorer@0.0.1'], |
| 22 | + |
| 23 | + // Check out .agents/types/tools.ts for more information on the tools you can include. |
| 24 | + toolNames: ['run_terminal_command', 'read_files', 'spawn_agents'], |
| 25 | + |
| 26 | + spawnerPrompt: 'Spawn when you need to review code changes in the git diff', |
| 27 | + |
| 28 | + instructionsPrompt: `Review the code changes and suggest improvements. |
| 29 | +Execute the following steps: |
| 30 | +1. Run git diff |
| 31 | +2. Spawn a file explorer to find all relevant files |
| 32 | +3. Read any relevant files |
| 33 | +4. Review the changes and suggest improvements`, |
| 34 | + |
| 35 | + // Add more fields here to customize your agent further: |
| 36 | + // - system prompt |
| 37 | + // - input/output schema |
| 38 | + // - handleSteps |
| 39 | + |
| 40 | + // Check out the examples in .agents/examples for more ideas! |
| 41 | +} |
| 42 | + |
| 43 | +export default definition |
0 commit comments