: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
- Replay the merge check against real merges:
DEBUG=1 python -m products.knowledge_writer.merge_check replay --recent 5(DEBUG=1because the gateway client loads Django settings; flox sets it already) (or amerges.jsonlof{"commit_sha": ...}rows). It makes real GitHub and AI gateway calls, so it needsGH_TOKEN,AI_GATEWAY_URL=https://ai-gateway.us.posthog.com/v1, andAI_GATEWAY_API_KEY=$(hogli gateway:token), an 8-hour developer-mode token a staff person approves in the browser. An agent cannot approve one: useAI_GATEWAY_API_KEY=$(jq -r .token ~/.ai-gateway-token.json)(a savedhogli gateway:token --jsonresponse) while itsexpires_atis ahead, and once it is missing or expired, stop and ask the person for a fresh one.