This guide helps you diagnose and resolve common issues when creating and using custom agents in Kiro CLI.
Problem : Custom agent fails to load with JSON parsing errors.
Symptoms:
Solutions:
/agent schema to verify your configuration structureProblem: Custom agent configuration doesn't match the expected schema.
Symptoms:
Solutions:
Problem: Custom agent doesn't appear in the list or can't be used.
Symptoms:
/agent list doesn't show your custom agentSolutions:
~/.kiro/agents/[name].json.kiro/agents/[name].jsonProblem: A different version of your custom agent is loading than expected.
Symptoms:
Solutions:
Problem: Custom agent can't access a tool you've configured.
Symptoms:
Solutions:
Problem: The /tools command shows no available tools or fewer tools than expected.
Symptoms:
/tools returns an empty listCommon causes:
Solutions:
@server-name___tool-name/toolsProblem: Custom agent prompts for permission for tools you thought were pre-approved.
Symptoms:
allowedToolsSolutions:
allowedToolsProblem: Custom agent doesn't seem to have access to expected files or context.
Solutions:
Problem: MCP servers aren't working or tools aren't available.
Solutions:
To systematically test your custom agent configuration:
/agent list/agent swap [name]
Troubleshooting custom agents