The era of self-driving development is here
PostHog Code is the only AI devtool that understands your product, not just your codebase.
- Identifies product usage patterns
- Triages bugs and errors
- Creates pull requests automatically
Test drives begin Spring 2026

The old way to build with AI
Most AI code editors lack context and wait for you to tell them what to Build ↵.
They use your <codebase /> as the source of truth, not how humans (or agents) actually use your product.
The PostHog way
PostHog Code uses signals from ● production data to diagnose issues and generate pull requests to fix them —before you even know there's a problem.
Run it locally or in the cloud — either way, it automatically uses the right AI model for the job.
TL;DR: There are plenty of AI coding tools, but only one that knows your product like PostHog Code.
Everything you'd expect in an AI coding tool, but way more...
Manage multiple coding agents in parallel
Split screen presets let you monitor agents side-by-side or in a 2x2 or 3x3 grid.

Automatic PostHog instrumentation
PostHog Code automatically builds new features with the proper PostHog instrumentation so you can progressively roll out changes and monitor their impact.
Event instrumentation
Tracks new features and changes to existing features as they're built
Error tracking
Configures exception capture so new code surfaces in PostHog with stack traces
Feature flags & rollout conditions
Creates the flag, implements
isFeatureEnabled, and configures staged rollout conditionsExperiments
Scaffolds variants, split, and goal metrics
Supported LLMs
PostHog Code runs on the same models you already use — no markup.
OpenAI
GPT-5.2GPT-5.3-codexGPT-5.4
Anthropic
Claude Sonnet 4.6Claude Opus 4.6Claude Haiku 4.5
Integrations
Linear
Slack
GitHub
Granola
Zendesk
MCP support
Manage MCP servers for your AI agents. Connect external services to extend your agent's capabilities.
Attio
Manage Attio CRM contacts, companies, and deals.
HubSpot
Sync contacts, companies, and marketing lifecycle for richer agent context.
Stripe
Look up customers, subscriptions, and invoices from billing.
Salesforce
Query accounts, opportunities, and CRM records your agents need in context.
Sentry
Pull issues, releases, and stack traces so agents debug against real errors.
Try it
PostHog Code is launching in Spring 2026. Join the waitlist to be the first to try it.




