Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(devex): improve agent PR context guidance in pull request template (#57908)

Julian Bez89c0aa6d1070
diff --git a/.github/CODEOWNERS-soft b/.github/CODEOWNERS-soft
index 0f3b183c05b1..44cfb850bace 100644
--- a/.github/CODEOWNERS-soft
+++ b/.github/CODEOWNERS-soft
@@ -143,6 +143,7 @@ posthog/temporal/weekly-digest @PostHog/team-growth
.github/workflows/** @PostHog/team-devex
.github/actions/** @PostHog/team-devex
.github/dependabot.yml @PostHog/team-devex
+.github/pull_request_template.md @PostHog/team-devex
Dockerfile @PostHog/team-devex
docker-compose\*.yml @PostHog/team-devex
.prettierrc @PostHog/team-devex
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index 82be4781be6f..e4a27811b3d1 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -1,3 +1,11 @@
+<!-- Authoring rules (agents: read).
+ Title: <type>(<scope>): <description> — type=feat|fix|chore, scope required, lowercase, no period, <72 chars.
+ ✅ feat(insights): add retention graph export
+ ❌ feat: Added retention export. (capitalized, period, no scope)
+ Description: high-level rationale, not a step-by-step replay.
+ Public OSS repo: no internal customers, incidents, or operational metrics.
+-->
+
## Problem
<!-- Who are we building for, what are their needs, why is this important? -->
@@ -35,9 +43,9 @@
<!-- Fill this section if an agent co-authored or authored this PR. Remove it for fully human-authored PRs. -->
<!-- Include:
- tools/agent used and link to session
- - key human prompts that shaped this work, so reviewers can see the intent behind the changes, not just the diff
- decisions made along the way (what was tried, rejected, chosen, and why)
- anything else that helps reviewers
+ Write reviewer-facing prose. Do not paste user prompts verbatim — paraphrase the intent in your own words.
-->
<!-- Rules for agent-authored PRs:
- All PRs must be attributable to a human author, even if agent-assisted.