Answer: When a reference could match both a prompt and a file, Kiro CLI resolves prompts first, then files, then directories. To force file resolution when a prompt has the same name, use an explicit path such as @./myfile. Status: Confirmed Entry: tool/kiro/features/file-reference-resolution Revision: 2 Digest: sha256:b07863f646dfb1cf (changes whenever the content changes) Timeline: Created: 2026-11-13T03:36:18Z Last changed: 2026-11-20T13:19:35Z (Force file resolution: — → @./myfile) Last verified: 2026-11-20T13:19:35Z Next check: 2026-11-21T13:19:35Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Resolution order | Prompts first | [1] | 2026-11-20 Second check | Files second | [1] | 2026-11-20 Third check | Directories third | [1] | 2026-11-20 Force file resolution | @./myfile | [1] | 2026-11-20 Sources: [1] Amazon Web Services. "File references - Chat - CLI - Docs - Kiro". https://kiro.dev/docs/cli/chat/file-references/ Role: primary. Accessed: 2026-11-20T13:19:35Z Quote: "Prompts first : If @name matches a prompt from /prompts list , it's treated as a prompt" (Supports: Resolution order) Quote: "Files second : Otherwise checked as a file path" (Supports: Second check) Quote: "Directories third : If not a file, checked as a directory" (Supports: Third check) Quote: "To force file resolution when a prompt has the same name, use an explicit path: @./myfile" (Supports: Force file resolution) Published: 2026-11-20T07:39:25Z Snapshot SHA-256: 818ac69066a7ae1c56feae52df263b84f4ab4bfc17f85e379266824bf4b9b89e (captured 2026-11-20T13:19:36Z) 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:19:35Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:19:35Z Last attempt: 2026-11-20T13:19:35Z Notes and limitations: Extracted automatically from a single official source (section "How references are resolved"). Related: https://latestn.com/tool/kiro/features/find-filter-sessions How do I find and filter sessions in Kiro Crew? https://latestn.com/tool/kiro/features/fork-chat How do I fork a chat in Kiro Crew? https://latestn.com/tool/kiro/features/fork-session How do I fork a session in Kiro Crew? https://latestn.com/tool/kiro/features/export-use-cases What are common use cases for exporting Kiro chat sessions? https://latestn.com/tool/kiro/features/export-zip-contents What files are included in the zip when I export a Kiro chat session? https://latestn.com/tool/kiro/features/feature-vs-bugfix-specs What is the difference between Kiro feature specs and bugfix specs? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T13:19:35Z | changed | Force file resolution: — → @./myfile | [1] 2026-11-20T13:19:35Z | changed | Third check: — → Directories third | [1] 2026-11-20T13:19:35Z | changed | Second check: — → Files second | [1] 2026-11-20T13:19:35Z | changed | Resolution order: — → Prompts first | [1] 2026-11-20T13:19:35Z | changed | force file resolution: @./myfile → — | [1] 2026-11-20T13:19:35Z | changed | third check: Directories third → — | [1] 2026-11-20T13:19:35Z | changed | second check: Files second → — | [1] 2026-11-20T13:19:35Z | changed | resolution order: Prompts first → — | [1] 2026-11-13T03:36:18Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/kiro/features/file-reference-resolution/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/features/file-reference-resolution POST: https://latestn.com/dispute/tool/kiro/features/file-reference-resolution with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/kiro/features/file-reference-resolution?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How does Kiro CLI resolve file references when multiple files match? Revision 2, last verified 2026-11-20T13:19:35Z. https://latestn.com/tool/kiro/features/file-reference-resolution (accessed 2026-11-21T09:53:20Z). @misc{LatestN_tool_kiro_features_file_reference_resolution_r2, title = {How does Kiro CLI resolve file references when multiple files match?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/kiro/features/file-reference-resolution}}, note = {Revision 2; digest sha256:b07863f646dfb1cf; last verified 2026-11-20T13:19:35Z; accessed 2026-11-21T09:53:20Z} } 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/features/file-reference-resolution