Custom agents allow you to tailor Kiro CLI behavior for specific tasks by defining which tools are available, what permissions are granted, and what context is automatically included.
Create a new custom agent using the interactive command:
kiro-cli --agent create my-agent
This will guide you through the setup process and create a configuration file at ~/.kiro/agents/my-agent.json.
Custom agents are defined using JSON configuration files. Here's a basic example:
{ "name": "my-agent", "description": "A custom agent for my workflow", "tools": { "allowed": ["readFile", "writeFile", "executeBash"], "autoApprove": ["readFile"] }, "context": { "files": ["README.md", "package.json"], "systemPrompt": "You are a helpful coding assistant." } }
Start a chat session with your custom agent:
kiro-cli --agent my-agent
Creating custom agents