PostHog collects product analytics, session replays, web analytics, errors, and experiment data. Snyder describes a slow workflow in which engineers notice a metric change, investigate it, create an issue, and later make a pull request. The goal is to have background agents investigate product signals and prepare PRs instead.
Self Driving Products: Product Signals to Pull Requests
Speaker
Joshua Snyder of PostHog speaks at AI Engineer about turning product signals into pull requests.
The pipeline handles trillions of events a month, filters unsafe input, normalizes different signal types, and assigns each a weight. It groups related evidence, such as a checkout error and a customer message, into reports that can be prioritized for research. Snyder says embeddings alone grouped by data format, so PostHog instead generates queries about each signal and matches those in embedding space.
A research agent runs in a sandbox with access to PostHog data through MCP, the codebase, and external sources such as Linear and Notion. It summarizes the problem, assigns priority, and uses Git blame to suggest a PR reviewer. Reports with too little evidence return to the pool, while product decisions needing human judgment go to an inbox; specific errors are easier to turn into fixes than broad reports from Slack or session replay.
For actionable reports, another agent clones the repository into a sandbox and writes a fix using the Claude Agent SDK. CI failures and PR comments can trigger another run, with snapshots allowing the agent to resume work until the PR is green. Snyder says the intended outcome is for engineers to find review-ready PRs after overnight runs.
Snyder says representative production evals are essential, and teams should account for structural similarity when embedding mixed data. Agents need specific problems or they may produce noisy PRs. During experimentation, repeated agent runs helped reveal which costly steps could become one-shot model calls; PostHog's pipeline is in alpha, with plans to learn from PR rejections and production outcomes.
Takeaways
- Evaluate agent pipelines on representative production data, not just local examples.
- When grouping mixed signal types, account for differences in their structure as well as meaning.
- Require enough evidence and a specific problem statement before asking an agent to write code.
- Use repeated agent runs during experimentation to identify expensive steps that can be simplified.
- Treat PR acceptance, rejection, and production results as feedback for improving future fixes.
Mentioned in this talk
Search inside this talk
What was claimed 9
- works atJoshua Snyder works at
PostHog
“I'm Josh from PostHog.”
YouTube Verified2 sources· Talk, Web· archived
- feature
PostHog: Product analytics, session replay, web analytics, error tracking, and experiments
“We started out as a product analytics company. We now have session replay, web analytics, error tracking, and experiments.”
YouTube Unverified1 source· Talk
- metric
PostHog: Ingests trillions of events a month
“We're ingesting trillions of events a month.”
YouTube Unverified1 source· Talk
- uses
“We also use Modal for our sandbox.”
YouTube Unverified1 source· Talk
- uses
PostHog uses
Claude Agent SDK
“The research agent runs the Claude Agent SDK in a sandbox.”
YouTube Unverified1 source· Talk
- integrates with
“First, it's got our MCP server. Given the group of issues we found, it can pull in extra data.”
YouTube Unverified1 source· Talk
- integrates with
“We've found Linear and Notion particularly helpful in connecting it to deliver better results.”
YouTube Unverified1 source· Talk
- integrates with
“We've found Linear and Notion particularly helpful in connecting it to deliver better results.”
YouTube Unverified1 source· Talk












