-
Notifications
You must be signed in to change notification settings - Fork 73
Refactor prompt builder to use Go templates #590
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
- The prompt system currently uses string constants with inline prose conditionals (e.g. "If a tag is present...") to handle variable prompt content. As the prompt logic grows more conditional, this becomes fragile.
- Switch to
text/templatefor system prompt rendering so conditional sections (intent-alignment, review type variants, agent-specific instructions) are structural{{if}}blocks rather than natural-language hedges. - The builder would assemble a data struct describing what's available (commit message present, review type, agent capabilities) and render the appropriate template.
Spawned from #579.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request