Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

File syntax for prompt field broken for sub agents

Open hammingb opened this issue 10 months ago • 2 comments

Before opening, please confirm:

Operating System

macOs

Kiro Version

1.24.1

Bug Description

Expected behaviour I want to define an agent which can be used both as an agent and a sub agent and uses the file syntax feature for its prompt

Actual behaviour This isn't possible because the file is looked up from a different relative path based on whether it is launched as an agent or a sub agent. This means only full paths can work. Full paths make the agent definition far less portable.

Steps to Reproduce

Make an agent like the one given as an example in the documentation

try to launch it as a sub agent and it will fail to load context from its prompt file

Expected Behavior

There should be some way to use relative file paths with an agent and also launch that agent as a sub agent

Conversation ID

No response

Additional Context

No response

hammingb avatar Jan 29 '26 20:01 hammingb

Any update? Its been a month, this seems like a pretty simple bug and its really frustrating. You can see that other people are hitting the same issue as well

https://github.com/kirodotdev/Kiro/issues/6100

The simplest backwards compatible fix would be to try looking up relative paths from both potential roots

hammingb avatar Mar 05 '26 00:03 hammingb

we are affected too

AlexeySolonenko avatar Mar 12 '26 16:03 AlexeySolonenko