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.

chore: Refine PR desc template around agents' voice (#67201)

Michael Matloka15f863b9b3ba
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index 09746d8a7da9..b6c9787e6533 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -1,12 +1,3 @@
-<!-- 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. See "Rules for agent-authored PRs" lower down.
- Public OSS repo: no internal customers, incidents, or operational metrics.
- Labels: apply `skip-agent-review` for trivial/chore PRs that don't need Copilot or Greptile review.
--->
-
## Problem
<!-- Who are we building for, what are their needs, why is this important? -->
@@ -23,7 +14,7 @@
<!-- Describe steps to reproduce and verify the changes, and what the expected behavior is. -->
<!-- Include automated tests if possible, otherwise describe the manual testing routine. -->
-<!-- Agents: do NOT claim manual testing you haven't done. State that you're an agent and list only the automated tests you actually ran. -->
+<!-- Agents: do NOT claim manual testing you haven't done. State what the agent wasn't able to do and list only the automated tests you (the agent) actually ran. -->
<!-- Added or changed tests? Name the regression each group catches that no existing test did — if you can't name it, it probably shouldn't be in this PR. https://posthog.com/handbook/engineering/conventions/backend-coding#testing -->
👉 _Stay up-to-date with [PostHog coding conventions](https://posthog.com/docs/contribute/coding-conventions) for a smoother review._
@@ -39,7 +30,7 @@
## 🤖 Agent context
-<!-- Fill this section if an agent co-authored or authored this PR. Just don't duplicate info already present in preceding sections. Remove it for fully human-authored PRs. -->
+<!-- Fill this section if an agent co-authored or authored this PR. Remove it for fully human-authored PRs. -->
<!-- Autonomy — keep one of the two options on the line below:
- "Human-driven (agent-assisted)" when a person directed the work — assign that person as the PR assignee (the DRI).
@@ -53,16 +44,27 @@
- 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.
+ This is the ONLY section that should contain descriptions of what this PR might have looked like before its present final state.
+ Don't duplicate info already present in preceding sections.
DO NOT INCLUDE sensitive data that may have been shared in an agent session.
-->
-<!-- Rules for agent-authored PRs:
- - When a human directed the work, the PR must be attributable to that person, even if agent-assisted.
- - If a human directed this work, assign them as the PR assignee (the DRI) — actually set the assignee, don't just name them here. Leave a PR unassigned only when it is fully autonomous with no human driver (set Autonomy to "Fully autonomous").
- - Never write a GitHub @mention or username you have not verified this session. Resolve a real handle from `gh api user` (current user) or the PR's actual author/assignee via `gh pr view --json author,assignees` — never infer a handle from a display name.
- - Do not add a human Co-authored-by just for the sake of attribution — if no human was involved in the changes, own it as agent-authored.
- - Agent-authored PRs always require human review — do not self-merge or auto-approve.
- - Do NOT claim manual testing you haven't done.
- - GitHub PR descriptions render markdown, not fixed-width text. Do not hard-wrap prose at a column width or use space-aligned tables — use real markdown tables, headings, and fenced code blocks, and let GitHub flow the text.
- - Write with a crisp, direct Silicon Valley communication style. Use concise language that gets straight to the point. Prioritize clarity and brevity over elaborate explanations. Avoid corporate jargon, buzzwords, and unnecessary embellishments. Communicate as if you're explaining a complex concept to a smart colleague over coffee, keeping the tone light but substantive. Always stay professional.
- - For titles, headings, or bolded parts use "Sentence case" rather than "Title Case" (i.e. only capitalize the first word of the title/heading/bold text).
+
+<!-- Overall PR authoring rules for agents:
+- 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.
+- Labels: apply `skip-agent-review` for trivial/chore PRs that don't need Copilot or Greptile review.
+- When a human directed the work, the PR must be attributable to that person, even if agent-assisted.
+- If a human directed this work, assign them as the PR assignee (the DRI) — actually set the assignee, don't just name them here. Leave a PR unassigned only when it is fully autonomous with no human driver (set Autonomy to "Fully autonomous").
+- Never write a GitHub @mention or username you have not verified this session. Resolve a real handle from `gh api user` (current user) or the PR's actual author/assignee via `gh pr view --json author,assignees` — never infer a handle from a display name.
+- Do not add a human Co-authored-by just for the sake of attribution — if no human was involved in the changes, own it as agent-authored.
+- Agent-authored PRs always require human review — do not self-merge or auto-approve.
+- Do NOT claim manual testing you haven't done.
+- GitHub PR descriptions render markdown, not fixed-width text. Do not hard-wrap prose at a column width or use space-aligned tables — use real markdown tables, headings, and fenced code blocks, and let GitHub flow the text.
+- Write with a crisp, direct Silicon Valley communication style. Use concise language that gets straight to the point. Sentences that are easy on the reader, paragraphs that are each about one thing. Prioritize clarity and brevity over elaborate explanations. Avoid corporate jargon, buzzwords, and unnecessary embellishments. Communicate as if you're explaining a complex concept to a smart colleague over coffee, keeping the tone light but substantive. No em-dashes, only en-dashes if needed. Spare use of inline code. Limited use of the colon and semicolon.
+- Write from a first person perspective of the author of a human-driven PR. Although if something was done by an agent (i.e. you), make that clear with something like "I (or, actually Claude/Codex/etc.) did blah".
+- If written by agent, put in a plain blockquote before "## Problem" just saying "> Claude/Codex/etc.-written:" to set the context for readers.
+- For titles, headings, or bolded parts use "Sentence case" rather than "Title Case" (i.e. only capitalize the first word of the title/heading/bold text).
-->