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: route non-security changes away from posthog-private (#114389)

Tom Piccirello987de82f8d1e
diff --git a/AGENTS.md b/AGENTS.md
index f664df0eae4d..ec857d854d7a 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -143,6 +143,10 @@ Examples:
## Security
**Security fixes never land in this public repo.** Open them against `PostHog/posthog-private` on a `security/` branch; see [Routing security fixes](.agents/security.md#routing-security-fixes).
+**Every other change lands in `PostHog/posthog`, also when the session starts in a `PostHog/posthog-private` checkout.**
+The private mirror carries this file, and its `origin` points at the private repo, so a default push or `gh pr create` opens the PR there.
+Before the first push of a branch, run `git remote get-url origin`.
+If it names `posthog-private` and the change is not a security fix, open the PR from a `PostHog/posthog` checkout.
Do not add new `INTERNAL_API_SECRET` callers.
Read [.agents/security.md](.agents/security.md) before touching auth, secrets, service-to-service calls, raw SQL, or HogQL string building — it covers least privilege, the injection rules, and how to respond when semgrep flags your code.
`.semgrep/rules/security/` is the enforced set; run `semgrep --config .semgrep/rules/security/ .` to check a change locally.