Troubleshooting Agent Customization
Quick Fix Checklist
- Restart Vesper Code to reload agent definitions
- Check TypeScript syntax: Run
bun run typecheckin your.agents/directory - Verify file paths are relative to project root
- Ensure your agent exports a default definition
Common Errors
"Agent not found"
Fix: Check agent ID spelling, file location (.agents/), and that your TypeScript file has export default definition.
"Invalid spawnable agent"
Fix: Check spelling against built-in agents list, use exact IDs.
"Path not found"
Fix: Use paths relative to project root (.agents/templates/my-prompt.md), verify the file exists.
JSON Schema Issues
Missing Required Fields
import type { AgentDefinition } from './types/agent-definition'const definition: AgentDefinition = {id: 'my-agent',displayName: 'My Agent',model: 'openai/gpt-5.3-codex',toolNames: ['read_files', 'write_file', 'end_turn'],instructionsPrompt: 'Process the user\'s request...',}export default definition
Invalid Override Type
Use valid override types: "append", "prepend", or "replace".
Agent Behavior Issues
Agent Not Using Custom Prompts
Restart Vesper Code to reload templates. Verify override syntax has "override": true and a valid override type.
Agent Spawning Wrong Sub-agents
Check spawnableAgents configuration and verify agent names have no typos.
Getting Help
- Check logs for error messages on startup
- Remove customizations until it works, then add back one at a time
- Join Discord or see the Agent Reference