I would like to see a Prompt section for Snippets, these entries would have {...} functions expanded BEFORE being inserted into the main prompt. This would allow us to decouple our prompts and create re-usable building blocks.
Currently using {...} in a Snippet used in a prompt will render something like this:
{context.codex}
.
In the proposed feature, if the Snippet was tagged as a prompt Snippet, the {context.codex} would have already been expanded.
Note: This would require a circular reference check to avoid infinite loops or a nesting level limit. Maybe a five-deep nesting level, which seems adequate for any use I can imagine.
Initially, I was thinking Codex entry, but snippets are a better fit, I think.