Answer: You define a prompt for a Kiro custom agent using a file URI by setting the "prompt" field to a file:// URI, such as "file://./my-agent-prompt.md". Relative paths are resolved relative to the agent configuration file's directory, while absolute paths are used as-is. Status: Confirmed Entry: tool/kiro/agents-and-automation/custom-agent-file-uri-prompt Revision: 1 Digest: sha256:86da5701ef814485 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:39:47Z Last changed: 2026-11-13T03:39:47Z Last verified: 2026-11-20T13:24:52Z Next check: 2026-11-21T13:24:52Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of prompt example | file://./my-agent-prompt.md | [1] | 2026-11-20 relative path resolution | Resolved relative to the agent configuration file's directory | [1] | 2026-11-20 same directory example | file://./prompt.md | [1] | 2026-11-20 parent directory example | file://../shared/prompt.md | [1] | 2026-11-20 absolute path resolution | Used as-is | [1] | 2026-11-20 absolute path example | file:///home/user/prompts/agent.md | [1] | 2026-11-20 Sources: [1] Amazon Web Services. "Configuration reference - Custom agents - Features - Docs - Kiro". https://kiro.dev/docs/custom-agents/configuration-reference/ Role: primary. Accessed: 2026-11-20T13:24:52Z Quote: ""prompt" : "file://./my-agent-prompt.md"" (Supports: prompt example) Quote: "Relative paths : Resolved relative to the agent configuration file's directory" (Supports: relative path resolution) Quote: ""file://./prompt.md" - prompt.md in the same directory as the agent config" (Supports: same directory example) Quote: ""file://../shared/prompt.md" - prompt.md in a parent directory" (Supports: parent directory example) Quote: "Absolute paths : Used as-is" (Supports: absolute path resolution) Quote: ""file:///home/user/prompts/agent.md" - Absolute path to the file" (Supports: absolute path example) Published: 2026-11-20T07:39:25Z Snapshot SHA-256: ecce5c93570c3b9c85e0b2a1731b601324e575e0637fef02f4e88318615a0e85 (captured 2026-11-20T13:24:48Z) 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:52Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:24:52Z Last attempt: 2026-11-20T13:24:52Z Notes and limitations: Extracted automatically from a single official source (section "File URI prompt"). Related: 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/kiro/agents-and-automation/custom-agent-precedence How does Kiro decide which custom agent to use when multiple agents are defined? 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/cron-add-schedule How do I schedule a recurring task with kirocrew cron add in Kiro Crew? https://latestn.com/tool/kiro/agents-and-automation/custom-agent-examples What are some example custom agents I can set up in Kiro, like an AWS specialist or code review agent? 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/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:39:47Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/kiro/agents-and-automation/custom-agent-file-uri-prompt/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-file-uri-prompt POST: https://latestn.com/dispute/tool/kiro/agents-and-automation/custom-agent-file-uri-prompt 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-file-uri-prompt?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I define a prompt for a Kiro custom agent using a file URI? Revision 1, last verified 2026-11-20T13:24:52Z. https://latestn.com/tool/kiro/agents-and-automation/custom-agent-file-uri-prompt (accessed 2026-11-21T10:05:27Z). @misc{LatestN_tool_kiro_agents_and_automation_custom_agent_file_uri_prompt_r1, title = {How do I define a prompt for a Kiro custom agent using a file URI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/kiro/agents-and-automation/custom-agent-file-uri-prompt}}, note = {Revision 1; digest sha256:86da5701ef814485; last verified 2026-11-20T13:24:52Z; accessed 2026-11-21T10:05:27Z} } 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-file-uri-prompt