Repository navigation
feat(ai): Render the task prompts through Jinja2 with a context - #6162
Merged
Merged
Conversation
dan-petty
marked this pull request as ready for review
November 17, 2026 12:15
dan-petty
deleted the
feat/4633-render-the-task-prompts-through-jinja
branch
November 17, 2026 12:17
dan-petty
pushed a commit
that referenced
this pull request
Nov 17, 2026
🤖 I have created a release *beep* *boop* --- ## [0.173.0](v0.172.0...v0.173.0) (2026-11-17) ### Features * **ai:** Render the task prompts through Jinja2 with a context ([#6162](#6162)) ([1812dd2](1812dd2)) * **k8s:** Add SM activity and occupancy to the GPU row ([#6143](#6143)) ([7a05312](7a05312)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.
Values enter prompts in four ways and no prompt can take a repository fact (#4633). This change renders a task prompt through one cached Jinja2
SandboxedEnvironmentwhen the caller passes a context, and returns the stripped file text with its markers when the caller passes none, so a prompt with no variables, the call-budget prompts and a benchmark prompt with a GitHub${{ }}expression keep their text. The implement step prompt gets its three tables through context, andfill_promptand the three placeholders go.stage_plan_record.prompt_versionhashes the raw templates and the context values. The project facts of the other four prompts are a follow-up (#5638).Closes #4633
Change:
openspec/changes/archive/2026-11-17-4633-render-the-task-prompts-through-jinja/