PostHog FOSS is a read-only mirror of PostHog, with all proprietary code removed. NOTE: This repo is synced automatically from the main PostHog repo. Please raise any issues and PRs there.
Use before adding or changing Python code that calls a third-party HTTP API from PostHog (a vendor REST call, a vendor SDK client, a scraping or enrichment service), and before adding or changing a domain under posthog/egress/: its budget, priority lanes, identity, metrics, or rate-limit headers. Routes the call to an…
Watches AEO citation-check results in system.aeocitationchecks and files an inbox report when a domain's citation rate on an answer engine drops or spikes versus its baseline, or when the citation runner itself is failing.
Authenticate a new or changed service to ClickHouse with the rotating ch-podauth ServiceAccount token instead of a static password. Use when adding a service, sidecar, or container that reads or writes ClickHouse, adding a new ClickHouseUser, or hand-building a ClickHouse pool or client for a custom timeout or…
Use when deciding whether an endpoint, settings section, or UI flow should require recent authentication (re-auth), when adding TimeSensitiveActionPermission or its exemptions (timesensitiveallowifonlyfields, timesensitiveexcludeactions, timesensitiveallowactions), when wrapping a page or settings section in…
How products and pages appear in the PostHog sidebar: which category they sit in, which icon and color they get, and which groups share a color gradient. Use when adding a product or data management page to the sidebar (treeItemsProducts or treeItemsMetadata in a products//manifest.tsx), giving an entry a new icon or…
Guidance for adding an API scope object to the posthog/scopes/ package and making it work for personal API keys, OAuth tokens and MCP clients. Use when adding a scope object, exposing a viewset or MCP tool to tokens, moving a viewset off scopeobject = "INTERNAL", deciding if a scope is internal, OAuth-hidden or…
Inspect and compare offline AI evaluation experiments, diagnose case-level regressions, and follow scorer history across application, model, or prompt changes. Use when a user asks whether an offline run improved, why a case failed, how scores changed between runs, or how to publish externally computed offline…
★not rated 736▲
+3
changed 3d agoA84 tokens
originalMIT
Finds out why a data quality check failed or errored, looks at the rows it matched, and recommends the fix. Also covers a materialized view refresh that the data quality gate did not publish. Use when asked why a check is red, what rows failed, why a view shows "Not published", why a view's data is stale after a…
★not rated 736▲
+3
changed 3d agoA122 tokens
originalMIT
Runs diagnostics and a health check on one PostHog experiment: its setup, exposures, results and changes during the run. Covers 0 exposures, sample ratio mismatch, lost or uneven exposures, users in multiple variants, identity faults, who the experiment counts, significance traps (peeking, A/A, 'target reached'…
Use PostHog Autoresearch, agent-driven predictive models: ask "who will do X in the next N days?", let an agent train a model, then score people daily into a person property and autoresearchprediction events. Use when a user wants to predict churn, activity, return, feature adoption, conversion or any event or action…
Links a PostHog error occurrence or session's errors to OpenTelemetry traces, logs with the same trace ID, and Session Replay. Use when the user asks for trace or span IDs on an error, same-trace logs, or backend traces for errors in a session. Starts from an occurrence UUID, session ID, or error tracking issue URL.…
Records a captioned, PostHog-branded walkthrough video (MP4) of a feature running on the local PostHog stack, for a Loom, a Slack demo, or a PR. Use when asked to record a video, demo, walkthrough, or Loom of a change end to end, including flows that leave the app, such as an API call shown as a terminal card or an…
Re-creates a reviewed pull request from a fork on a branch in PostHog/posthog, so it can get the required checks and merge, while the contributor stays the commit author and GitHub credits them on the squash commit. Use when a fork PR fails with "Depot CI does not run fork pull requests", when its Backend CI on Depot…
Picks the cheapest check that is enough to confirm a change works, and says when a slower one is needed. Use before you report a task done, before you start Storybook, the dev stack or a Playwright run to check your own work, and when you are unsure how much verification a diff needs. Maps each kind of change, such as…
Builds and validates Slack Block Kit messages, modals, and App Home layouts. Use for Slack formatting, block selection, Markdown, cards, tables, charts, metadata, buttons, and menus. Covers live schemas, payload validation, accessibility, and actual Slack rendering. Not for workspace setup.
Add a "For you today" highlight source, the rule that turns a product's facts into items on the Today home page (firing alerts, flags that lose reach, ticket SLA breaches, workflow failures). Use when asked to "add a Today highlight", "show X in For you today", "surface X on the home page", or when changing an…
Default path for read-only queries against PostHog's production ClickHouse and Postgres in the US and EU regions. Uses the direct-connect SQL sources in the internal projects, through the PostHog MCP on US team 2. US sources run with execute-sql and a connectionId. EU sources run through a personal PostHog connection…
Runs, writes and debugs PostHog Storybook stories and their visual review snapshots. Use when you start Storybook to look at a change, write or change a .stories.tsx file, set feature flags, the date, the URL, mocks or testOptions for a story, or fix a story that times out, renders nothing or flakes in visual review…
Answer AI citation and answer engine optimization (AEO) questions in PostHog: whether AI answer engines (ChatGPT and Claude) cite the project's site for its tracked prompts, which topics and engines cite it least, which domains get cited instead, and whether citations line up with Google Search Console rankings and AI…
Builds, watches, checks and verifies the PostHog toolbar in both of its forms, the floating toolbar that posthog-js loads on customer pages and the browser extension that shows the toolbar in a Chrome side panel. Use when changing anything under frontend/src/toolbar/ (floating toolbar or extension)…
★not rated 736▲
+3
changed 3d agoA178 tokens
originalMIT
Decides whether a PostHog mobile app change can ship as an over-the-air (OTA) update or needs a native store release, then creates the release request file under products/mobile/releases/requests/. Use before creating or editing a mobile release request, when asked to ship, release, publish or push an update of the…
Runs the PostHog mobile app's Argent demo flows (demo-smoke and views-smoke) on a local iOS simulator against a bundled Release build, and reads their results. Use before reporting a change under products/mobile that touches a screen, navigation, the demo fixtures, a testID, or a flow file as done, and when asked to…
Add or change what staff see and do in PostHog Admin, the staff console at /admin/console/. Use when adding a panel to a project page, a staff action (an operation), or a cross-project report (a tool) in a console.py, when moving a button, view or page out of Django admin into the console, or when asked to "add an…
Author insight alerts that notify when a trends, SQL, or funnel insight crosses a bound, changes sharply, or looks anomalous. Use when the user asks to alert on a metric or insight, get notified when a number drops or spikes, set up anomaly detection, or use the AI anomaly detector (the llm detector type). Covers…
★not rated 736▲
+3
changed 3d agoA119 tokens
originalMIT
At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: