: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
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
export POSTHOG_DESKTOP_SKILLS="${POSTHOG_DESKTOP_SKILLS:-local}"
if [[ "$POSTHOG_DESKTOP_SKILLS" == "local" ]]; then
bin/wait-for-postgres-tables posthog_team posthog_project posthog_instancesetting
fi
cd products/desktop
pnpm install --frozen-lockfile
node scripts/build-agent-workspace.mjs
pnpm --dir ../../packages/agent exec turbo dev --filter=@posthog/agent --filter=@posthog/git --filter=@posthog/enricher &
trap 'kill %1 2>/dev/null || true' EXIT
node scripts/dev-with-skills.mjs pnpm exec turbo dev --filter=@posthog/code --filter=@posthog/platform