Skip to content

feat(code): add more context to PR/commit generation#1506

Merged
adboio merged 1 commit intomainfrom
04-06-feat_code_add_more_context_to_pr_commit_generation
Apr 7, 2026
Merged

feat(code): add more context to PR/commit generation#1506
adboio merged 1 commit intomainfrom
04-06-feat_code_add_more_context_to_pr_commit_generation

Conversation

@adboio
Copy link
Copy Markdown
Contributor

@adboio adboio commented Apr 6, 2026

Problem

PR title/body and commit messages get generated with very little context, the LLM only knows about the diff

this leads to bad content that makes assumptions purely based on the diff, with no understanding of the user's intent

closes #1504

Changes

  • updates the title generator to also generate a brief summary of the task
  • passes summary to the pr content / commit message generators

How did you test this?

manully, sample trace: https://us.posthog.com/project/2/llm-analytics/traces/dbd8d616-b1b3-44a4-add2-b0b0d61d1108?filters=[{"key"%3A"ai_product"%2C"value"%3A["posthog_code"]%2C"operator"%3A"exact"%2C"type"%3A"event"}]&back_to=traces&timestamp=2026-04-06T19%3A48%3A54Z

Copy link
Copy Markdown
Contributor Author

adboio commented Apr 6, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@adboio adboio requested a review from a team April 6, 2026 19:58
@adboio adboio marked this pull request as ready for review April 6, 2026 19:58
Copy link
Copy Markdown
Contributor

@k11kirky k11kirky left a comment

Choose a reason for hiding this comment

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

prompt engineering ftw

@adboio adboio merged commit 5924bcf into main Apr 7, 2026
16 checks passed
@adboio adboio deleted the 04-06-feat_code_add_more_context_to_pr_commit_generation branch April 7, 2026 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LLM-generated PR + commit content lack context

2 participants