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.

752 B
Raw Blame
  • Replay the merge check against real merges: DEBUG=1 python -m products.knowledge_writer.merge_check replay --recent 5 (DEBUG=1 because the gateway client loads Django settings; flox sets it already) (or a merges.jsonl of {"commit_sha": ...} rows). It makes real GitHub and AI gateway calls, so it needs GH_TOKEN, AI_GATEWAY_URL=https://ai-gateway.us.posthog.com/v1, and AI_GATEWAY_API_KEY=$(hogli gateway:token), an 8-hour developer-mode token a staff person approves in the browser. An agent cannot approve one: use AI_GATEWAY_API_KEY=$(jq -r .token ~/.ai-gateway-token.json) (a saved hogli gateway:token --json response) while its expires_at is ahead, and once it is missing or expired, stop and ask the person for a fresh one.