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

PostHog Code screenshot

The old way to build with AI

Most AI code editors lack context and wait for you to tell them what to Build .

Coding with AI(cir. 2022-2025)
1. Analyze usageHuman
2. Decide what to buildHuman
3. Prompt & contextHuman
4. BuildMachine
5. ShipHuman

They use your <codebase /> as the source of truth, not how humans (or agents) actually use your product.

The PostHog way

Signals
In-app activity
Logs
Errors
Payments
Session recordings
Traces
Funnel dropoff
Feature flags
Experiment results
Internal threads
Support tickets
Backlog
Transcriptions

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...

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 conditions

  • Experiments

    Scaffolds variants, split, and goal metrics

Supported LLMs

PostHog Code runs on the same models you already use — no markup.

OpenAI

  • GPT-5.2
  • GPT-5.3-codex
  • GPT-5.4

Anthropic

  • Claude Sonnet 4.6
  • Claude Opus 4.6
  • Claude 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.

Join the waitlist

FAQ