Answer: Kiro checks the local .kiro/agents/ directory first, then falls back to the global ~/.kiro/agents/ directory in the HOME directory. If both locations have agents with the same name, the local agent takes precedence with a warning message. Status: Confirmed Entry: tool/kiro/agents-and-automation/custom-agent-precedence Revision: 2 Digest: sha256:f9df22a149370146 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:39:49Z Last changed: 2026-11-20T13:24:53Z (Same-name precedence: — → the local agent takes precedence with a warning message) Last verified: 2026-11-20T13:24:53Z Next check: 2026-11-21T13:24:53Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of First check location | .kiro/agents/ | [1] | 2026-11-20 Fallback location | ~/.kiro/agents/ | [1] | 2026-11-20 Same-name precedence | the local agent takes precedence with a warning message | [1] | 2026-11-20 Sources: [1] Amazon Web Services. "Creating custom agents - Custom agents - Features - Docs - Kiro". https://kiro.dev/docs/custom-agents/creating/ Role: primary. Accessed: 2026-11-20T13:24:53Z Quote: "Local first : Checks .kiro/agents/ in the current directory" (Supports: First check location) Quote: "Global fallback : Checks ~/.kiro/agents/ in the HOME directory" (Supports: Fallback location) Quote: "If both locations have agents with the same name, the local agent takes precedence with a warning message." (Supports: Same-name precedence) Published: 2026-11-20T07:39:25Z Snapshot SHA-256: 9c9ddda6952ff16176d96c8058f4c814bbbf1c2aa2f9226312a927a0fa3b5d09 (captured 2026-11-20T13:24:54Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T13:24:53Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:24:53Z Last attempt: 2026-11-20T13:24:53Z Notes and limitations: Extracted automatically from a single official source (section "Agent precedence"). Related: https://latestn.com/tool/kiro/agents-and-automation/custom-agents-benefits What are the benefits of using custom agents in Kiro? https://latestn.com/tool/kiro/agents-and-automation/custom-agents-vs-mcp-tools How do custom agents in Kiro relate to MCP and built-in tools? https://latestn.com/tool/kiro/agents-and-automation/custom-prompts-per-agent How do I set custom prompts per agent in Kiro Crew? https://latestn.com/tool/kiro/agents-and-automation/custom-agent-file-locations Where do I put the Kiro custom agent configuration file for a project-specific agent versus a global user-wide agent? https://latestn.com/tool/kiro/agents-and-automation/custom-agent-file-uri-prompt How do I define a prompt for a Kiro custom agent using a file URI? https://latestn.com/tool/kiro/agents-and-automation/custom-agent-model-field How do I configure the model for a Kiro custom agent? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T13:24:53Z | changed | Same-name precedence: — → the local agent takes precedence with a warning message | [1] 2026-11-20T13:24:53Z | changed | Fallback location: — → ~/.kiro/agents/ | [1] 2026-11-20T13:24:53Z | changed | First check location: — → .kiro/agents/ | [1] 2026-11-20T13:24:53Z | changed | Same-name conflict: the local agent takes precedence with a warning message → — | [1] 2026-11-20T13:24:53Z | changed | Global fallback: Global fallback → — | [1] 2026-11-20T13:24:53Z | changed | Local precedence: Local first → — | [1] 2026-11-13T03:39:49Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/kiro/agents-and-automation/custom-agent-precedence/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/kiro/agents-and-automation/custom-agent-precedence POST: https://latestn.com/dispute/tool/kiro/agents-and-automation/custom-agent-precedence with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/kiro/agents-and-automation/custom-agent-precedence?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How does Kiro decide which custom agent to use when multiple agents are defined? Revision 2, last verified 2026-11-20T13:24:53Z. https://latestn.com/tool/kiro/agents-and-automation/custom-agent-precedence (accessed 2026-11-21T10:07:36Z). @misc{LatestN_tool_kiro_agents_and_automation_custom_agent_precedence_r2, title = {How does Kiro decide which custom agent to use when multiple agents are defined?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/kiro/agents-and-automation/custom-agent-precedence}}, note = {Revision 2; digest sha256:f9df22a149370146; last verified 2026-11-20T13:24:53Z; accessed 2026-11-21T10:07:36Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/kiro/agents-and-automation/custom-agent-precedence