This guide helps you diagnose and resolve common issues when creating and using custom agents.
Problem: Custom agent fails to load with JSON parsing errors.
Symptoms:
/agent listSolutions:
/agent schema to verify your configuration structureProblem: Custom agent configuration doesn't match the expected schema.
Symptoms:
Solutions:
/agent schemaallowedTools vs allowedTool)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].json.json extensionProblem: A different version of your custom agent is loading than expected.
Symptoms:
Solutions:
/agent list to see which version is being loadedProblem: Custom agent can't access a tool you've configured.
Symptoms:
allowedToolsSolutions:
tools arraymcpServers@server_name/tool_nameProblem: The /tools command shows no available tools or fewer tools than expected.
Symptoms:
/tools returns an empty listCommon causes:
tools array in the custom agent configurationtools arraySolutions:
tools array with valid tool names@server-name/tool-name/toolsProblem: Custom agent prompts for permission for tools you thought were pre-approved.
Symptoms:
allowedToolsSolutions:
tools and allowedTools arraysallowedToolstoolAliases are correctly appliedProblem: Custom agent doesn't seem to have access to expected files or context.
Solutions:
resources array are correct and files existresources are matching the intended filesProblem: MCP servers aren't working or tools aren't available.
Solutions:
To systematically test your custom agent configuration:
/agent schema/agent list/agent swap [name]
Troubleshooting custom agents