Added the ability to escape Jinja variables in recipes to include them in prompts#6975
Merged
jh-block merged 1 commit intoblock:mainfrom Feb 5, 2026
Merged
Conversation
…m in prompts Signed-off-by: Peter Willemsen <peter@codebuffet.co>
tlongwell-block
added a commit
that referenced
this pull request
Feb 5, 2026
* origin/main: fix: detect context length errors in GCP Vertex AI provider (#6976) Added the ability to escape Jinja variables in recipes to include them in prompts (#6975) Bug Fix: bump pctx (#6967) fix(acp): fixtures now raise content mismatch errors (#6912) custom provider form minor improvements (#6966) Fix 'Edit In Place' feature appending instead of editing messages (#6955) docs: change RPI slash commands (#6963)
kuccello
pushed a commit
to kuccello/goose
that referenced
this pull request
Feb 7, 2026
…m in prompts (block#6975) Signed-off-by: Peter Willemsen <peter@codebuffet.co>
Tyler-Hardin
pushed a commit
to Tyler-Hardin/goose
that referenced
this pull request
Feb 11, 2026
…m in prompts (block#6975) Signed-off-by: Peter Willemsen <peter@codebuffet.co>
Tyler-Hardin
pushed a commit
to Tyler-Hardin/goose
that referenced
this pull request
Feb 11, 2026
…m in prompts (block#6975) Signed-off-by: Peter Willemsen <peter@codebuffet.co>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Currently, it is impossible to escape variables in recipes. This makes it impossible to create recipes that create other recipes (recipeception anyone?)
Why is this important?
Well, I have this recipe (note: I escaped the triple backticks otherwise github messes up the formatting):
Without this PR, it is impossible to use this. So this opens the door to much much more use-cases for recipes! I made sure it follows original escaping behaviour of Jinja, see: https://tedboy.github.io/jinja2/templ7.html
Type of Change
AI Assistance
Testing
Related Issues
Relates to #ISSUE_ID
Discussion: LINK (if any)
Screenshots/Demos (for UX changes)
(see example recipe)