opencode
opencode copied to clipboard
Shared prompt in agent markdown definition
Question
Hi all
I have 2 agents that have the same scope of work, they basicaly have the same prompt but they defer in other parts like, model, permissions, etc. I have these two defined under .opencode/agent/lite.md and .opencode/agent/heavy.md. The only difference between the two is in the frontmater of the file.
My issue is that I want to have a single file used as prompt for both agents.
I saw that I can use the prompt:, but this seems to only be working if the agents are defined under opencode.json
I really like the freedom that I have by specifying the agents under .opencode/agent and would like to keep them there
Is there any way to do that ?