# PostHog: Pivots Were The Real Lesson In Building A Startup
<!--
ref: @content/youtube/yc-root-access/2026-08-19-posthog-pivots-were-the-real-lesson-in-building-a-startup
version: 1
updated_at: 2026-11-22T13:21:04.300Z
-->
**[Watch on YouTube](https://www.youtube.com/watch?v=6A4u7Nl-SHY)**
*Synthesized from James Okins in conversation with an unnamed host on YC Root Access, 2026-08-19.*
James Okins co-founded PostHog (YC Winter 2020) with his technical co-founder Tim. The interviewer is a YC Root Access host whose name is never given in the transcript.
## Core Thesis
James Okins argues that PostHog's path came from quick, low-ego iteration: five fast pivots, then a move from self-hosted to cloud, then from one product to many, and now from analytics to an AI agent that fixes products on its own. Each step was driven more by customer pull and competition than by a master plan. His main lesson is that ambition pays off. Bigger bets make hiring, selling, fundraising and team output easier. In the AI era, founders have to lead that change themselves, drop most other duties, and aim for where the market is going, not where it is today.
## Key Insights
- **Five pivots in about 7–8 months.** PostHog was the sixth idea. Each earlier idea got roughly a month. They failed at different gates: nobody would talk to them, nobody would use it, or nobody would pay. Their one rule: if an idea felt like it wasn't working, sleep on it for one night, and if the feeling remained the next day, start over. They hadn't read *The Mom Test* yet and learned by shipping fast.
- **The idea came from their own frustration.** Every pivot meant building a new website and login page, and they disliked buying analytics tools that hid pricing and made you talk to sales. They wanted a developer-first tool where you see the price and enter a card.
- **Sales trauma shaped bottom-up growth.** Okins was previously a VP of Sales selling compliance software to large banks. Deals took 50+ meetings, the shortest cycle was about 2 years, some lasted 4 years, and contract values were around €5M/year, with the biggest at 15M over three years. Lumpy enterprise revenue made scaling hard and made investor meetings about specific deals rather than the future.
- **The open-core / self-hosted model worked but went to the wrong customers.** Inspired by GitLab vs. GitHub, they sold self-hosted versions to conservative, slow-growing banks. Customers' event data was often 10× the size of their production databases, so they overwhelmed their DevOps teams. PostHog ended up configuring other people's Kubernetes over Slack. One customer sent phone screenshots of their AWS console via Gmail and Slack because they couldn't get permission to grant access.
- **Moving to cloud.** People choosing PostHog weren't comparing it with competitors. They were choosing between PostHog self-hosted and PostHog cloud. Self-hosted bugs also hurt the brand. So they made cloud cheaper than self-hosting, added a generous free tier ("if you don't have money, there's no point trying to get it from you"), and used usage-based, self-serve pricing.
- **Outcome of the cloud move.** Under 5% of users still self-host. After PostHog achieved HIPAA and SOC 2 Type 1 and Type 2 compliance, about 95% of self-hosted payers moved to cloud. The remaining ~5% were given the software free and unsupported.
- **Multi-product happened by accident.** An engineer built session replay at a hackathon because open-source users kept asking for it. Okins and Tim both thought it was a bad idea, and it took off immediately. This happened about a year after the cloud push. Building on open-source infrastructure (ClickHouse) meant fewer people maintaining custom databases and more people building features. Their reasoning: if open source makes software a commodity, build everything that touches customer data. They have joked about "300 products."
- **The data warehouse story.** Engineer James Greenhill said PostHog should never build a warehouse. Tim asked him to imagine being forced to build one and to explain how. About 10 minutes later Greenhill said they had to build it. The demand came from customers spending over $100K/year who hired analyst teams to combine PostHog SDK data with sources like Salesforce.
- **Competing in proven markets is a shortcut to PMF.** Instead of picking an empty niche, they launched products with large incumbents. Demand was already proven, so the job was to stand out through branding, a different audience, or a better product. Okins calls it "bowling with the bumpers up" for a team that wasn't strong on product vision but was willing to outwork everyone. During YC they worked until 3am and shipped the website, product, SDK and docs in four weeks. Tim coded at home. Okins shopped, cooked, washed dishes, and did marketing and user conversations so he wouldn't slow down the codebase.
- **AI rescued PostHog from complexity complaints.** As products piled up, customers said the platform was too complex. In 2025 they built an agent. The breakthrough was a single iterative query loop in which the agent acts, checks whether it worked (for example, "all these graphs are empty"), and tries again. Results went from mediocre to slow but better than a human. Their Slack brand-mention monitor showed nearly 95% of positive mentions were about the agent, which became the main interface.
- **"Autonomous mode."** PostHog built pipelines for every data type it collects, plus "explorers" that analyze them, along with company context and a memory system. This lets the agent rank issues the way a person would instead of flagging every error. It then ships fixes as pull requests. Okins's theory is that fixing a problem is worth more than spotting it, and that PostHog can fix problems before Claude does because it sees them before the user does. It is also available via MCP.
- **Early traction numbers.** They emailed about 7,000 hand-picked users out of roughly 1 million total and crossed a couple million in annual revenue within about 24 hours. More than half of the generated pull requests get merged. Some small customers merge everything every morning.
- **Aim for where the puck is going.** Competing with AI-native startups pushed PostHog to bet on the future. One team works on code review and testing. Another assumes those problems are solved and plans for scale. At 100 merge requests, the limit becomes how well you can describe what you want in English, so they are building systems that draw out real requirements and product intent from people.
- **Roles are converging.** Okins wants engineers to work with agents the way he works with engineers. A good engineer asks "why?" and "what about this alternative?" rather than asking which database to use. Support now fixes simple bugs, and PMs make small product changes. 62% of code requests through PostHog's internal Slack bot come from people who are not software engineers. Among users of PostHog's AI tools: 25% engineers, 25% founders (mostly technical), and 50% PMs, technical marketers and growth engineers.
- **"Elephant carpaccio."** The idea comes from a London engineering consultant. Slice work vertically, so every slice is a complete task, rather than horizontally, where analytics is just "four circles" and the user has to infer the rest. PostHog wants to automate whole workflows, for example customer success tasks such as churn risk, cross-sell and renewal, including booking meetings with clients.
- **Founders should lead product, not sales.** Okins points to Anthropic's growth as evidence that an exceptional product beats a great sales team. Focusing both founders on sales might speed short-term growth but risks plateauing, which he calls his biggest fear. He also notes Patrick at Stripe's view that you have to do both the top and bottom of the market well.
## Actionable Takeaways
1. **Use a one-night rule for pivots.** If an idea feels like it isn't working, sleep on it. If you feel the same the next morning, move on. Plan about a month per idea, and test talk, use, then pay as separate gates.
2. **Price for people who haven't found PMF.** Offer a generous free tier, show public pricing, use usage-based billing, and make signup self-serve. Don't try to get money from startups that don't have any yet.
3. **If self-hosting is hurting customers and your brand, run it for them.** Make cloud cheaper than self-hosting, earn the compliance certifications enterprises need (HIPAA, SOC 2 Type 1 and 2), and expect most "never cloud" customers to move once that's done.
4. **Enter markets with proven demand.** Compete against large incumbents in categories that already have PMF, and win on audience, branding and speed instead of looking for an empty niche.
5. **Build agents around an act-evaluate-retry loop.** A single iterative query loop is what moved PostHog's agent from mediocre to better than a human.
6. **Measure trust in AI output by merge rate.** Track how many generated PRs get merged (PostHog is above 50%) and invest in code review, testing, feature flags and experiments to raise it.
7. **Free one founder completely for the AI change.** At PostHog, Tim took over half the company's reporting lines so Okins could do nothing but autopilot: no interviews, almost no investor work, no meetings outside the initiative. Each day he works on whatever is currently blocking progress.
8. **Staff the new initiative gradually.** Start with 2–3 people and add more over time out of about 125 engineers. Assigning everyone at once won't make it faster.
9. **Ship the radical version as a new product.** PostHog launched autopilot in a new desktop app so there were no user expectations to break, and plans to move the existing cloud product to the same model gradually. Removing features from a product with hundreds of thousands of users will upset someone.
10. **Run 360 feedback dinners about every 6 months.** Each team sits together and every person in turn hears mostly constructive feedback without arguing back.
## Notable Quotes
> "We forced ourselves to sleep with that thought one night, and if the next day we felt the same way, we just started over." — James Okins
> "If you don't have money, there's no point in trying to get it from you." — James Okins
> "It's better to solve a problem than just discover it." — James Okins
> "We don't want to be a data-only company. We want to be a company that acts." — James Okins
> "If I mess up something that we're building, we just wasted a little bit of time, whereas the upside is unlimited." — James Okins
> "You can't just have a general meeting and say, 'Let's become more AI-oriented.'" — James Okins
---
*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*
*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*