Creating Custom Agents
Beyond the 30 built-in templates, you can create fully custom agents with tailored capabilities, tools, and system prompts.Creating an Agent Manifest
System Prompts
The system prompt defines your agent’s personality, instructions, and behavior:Capability System
Capabilities control what your agent can access:Tool Access
Memory Access
"*"- all memory (use with caution)"self.*"- only this agent’s memory"shared.*"- shared memory namespace"project.foo"- specific key
Agent Spawning
Testing Your Agent
Advanced Configuration
Per-Tool Configuration
Scheduling
Model Routing
Best Practices
Start with minimal capabilities
Start with minimal capabilities
Grant only the tools your agent needs. You can always add more later.
Test system prompts iteratively
Test system prompts iteratively
Start with a simple prompt and refine based on actual agent behavior.
Set resource limits
Set resource limits
Always configure
max_llm_tokens_per_hour and max_cost_per_hour to prevent runaway costs.Use memory_write scoping
Use memory_write scoping
Restrict memory writes to
self.* unless you need cross-agent communication.Version your agents
Version your agents
Increment the
version field when making significant changes.Next Steps
Workflows
Chain multiple agents together
Security
Deep dive into the capability system
