amazon-q-developer-cli icon indicating copy to clipboard operation
amazon-q-developer-cli copied to clipboard

bug: File syntax for prompt field broken for sub agents

Open hammingb opened this issue 10 months ago • 0 comments

Checks

Operating system

mac

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

Environment


hammingb avatar Jan 05 '26 17:01 hammingb