: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore: move the duplicate-PR check into the pull request template (#94894)
Julian Bez77d341fbc660
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.mdindex 2a6d87042690..5ef554c6f16b 100644--- a/.github/pull_request_template.md+++ b/.github/pull_request_template.md@@ -46,6 +46,7 @@**Autonomy:** Human-driven (agent-assisted) - or - Fully autonomous<!-- Definition of done (agents): not done until each gate below holds. Verify against the named artifact or skill — don't assume. Add gates as the PR touches more areas.+ - No duplicate: when this PR fixes something believed to be live on master, no open PR already fixes it. A broken master attracts parallel agents, so search before opening — `gh pr list --state open --search "<keywords>" --limit 20`, which lists drafts too, and most agent PRs start as drafts. Say here which PR you found and why this one is still needed, or that the search found nothing.- Patch coverage: the lines this PR changed are covered, or the uncovered ones are justified under "How did you test this code?". Don't pad untouched code to lift the number. Check the "🧪 Backend test coverage" PR comment (and its patch-coverage artifact).- Public artifact: nothing in this PR — code, fixtures and sample data, comments, commit messages, or this description — carries material from the agent session that isn't already public. If the work drew on a customer conversation, ticket, or log, say so here and state that the committed data is invented. Renaming people, hosts, and identifiers does not clear real material; see AGENTS.md "Public open source repo guidance".-->diff --git a/AGENTS.md b/AGENTS.mdindex 3719c68734a0..f578864cadac 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -37,30 +37,6 @@- Dev experience feedback: `hogli devex:feedback "<message>"` sends feedback about repo tooling — hogli, the dev stack, tests, CI, migrations, this setup — straight to the devex team as a `hogli_feedback` event (add `-c bug|idea|praise|question`).**Local agents must use it too**: when a hogli command or local dev workflow is broken, slow, or confusing, run it — e.g. `hogli devex:feedback -c bug "migrations:run failed with <error>"`. Do not run it from cloud tasks or agent-server sandboxes; the command is a no-op there.-## Starting a task--Several agents work on this repository at the same time, so the change you plan can already be in flight.-Before you plan the work or write code, look for open PRs that clash with it.-This matters most for a broken `master`: the break is visible to everyone, so it attracts duplicate PRs.--Search the open PRs by keyword, then look at each candidate:--```bash-gh pr list --state open --search "<keywords>" --limit 20-gh pr diff <number> --name-only # the files it touches-gh pr diff <number> # the patch, once a candidate looks like a match-```--Take the keywords from the error message, the failing test, the symbol, or the feature name.-Run two or three searches with different words, because another author can describe the same problem differently.-Keep draft PRs in the results, because most agent PRs start as drafts.--Then act on what you find:--- An open PR already makes this change: do not open a second one. Tell the user the PR number, and continue the work on that PR.-- An open PR changes the same files for a different reason: keep your diff clear of the overlap when possible, and name the other PR in your PR description.-- Nothing matches: continue with the work.-## Commits and Pull Requests- Use [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) for all commit messages and PR titles.