Skip to content

Rewrite release summary prompt for scannable output#384

Merged
jeremy merged 2 commits intomainfrom
release-summarizer
Mar 25, 2026
Merged

Rewrite release summary prompt for scannable output#384
jeremy merged 2 commits intomainfrom
release-summarizer

Conversation

@jeremy
Copy link
Member

@jeremy jeremy commented Mar 25, 2026

Summary

  • Rewrite the AI changelog prompt to produce a short intro sentence + bullet list of highlights instead of bloated prose paragraphs
  • Add few-shot examples modeled on the hand-written v0.7.0 release notes
  • Cut maxCompletionTokens from 1500 → 600 and temperature from 0.2 → 0 to force conciseness and eliminate truncation

Problem

Every AI-generated release summary was truncated mid-sentence (v0.7.1 ends with "Multi", v0.4.0 ends with "visual improvements", v0.3.0 ends with "OSC 8 clickable") and read like corporate filler before it cut off. The hand-written v0.7.0 notes showed the right format: punchy, scannable, useful.

Test plan

  • YAML validated locally with python3 -c "import yaml; yaml.safe_load(open(...))"
  • Next release verifies the output in practice

The AI-generated summaries were bloated prose that got truncated
mid-sentence on every release. Switch from "2-4 paragraphs" to
"intro sentence + bullet list of highlights" matching the style of
the hand-written v0.7.0 notes. Add few-shot examples, cut max tokens
from 1500 to 600, and drop temperature to 0.
Copilot AI review requested due to automatic review settings March 25, 2026 19:31
@github-actions github-actions bot added ci CI/CD workflows enhancement New feature or request labels Mar 25, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the GitHub prompt used to generate AI release summaries for the basecamp CLI, shifting output toward a concise, scannable intro + highlights format and reducing verbosity/truncation risk.

Changes:

  • Rewrite the system prompt to require a one-line intro followed by highlight bullets (with guidance on bullet counts by release size).
  • Add few-shot examples modeled after v0.7.0-style release notes.
  • Reduce maxCompletionTokens (1500 → 600) and set temperature to 0 to encourage concise, deterministic output.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name=".github/prompts/summarize-changelog.prompt.yml">

<violation number="1" location=".github/prompts/summarize-changelog.prompt.yml:9">
P3: The top-of-output ordering rules are contradictory for breaking changes; clarify the exception so the model has one unambiguous sequence.</violation>

<violation number="2" location=".github/prompts/summarize-changelog.prompt.yml:30">
P2: This example bullet violates the prompt’s own `backticks-first` bullet format, which weakens the few-shot guidance.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Clarify that ⚠️ breaking-change line comes before the intro sentence,
not after. Relax bullet format to "lead with backticks when there is a
command; otherwise just describe." Drop the standalone "Highlights:"
label from the large-release example.
@jeremy jeremy merged commit feeaf4c into main Mar 25, 2026
26 checks passed
@jeremy jeremy deleted the release-summarizer branch March 25, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI/CD workflows enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants