Speaker Notes

Tokenmaxxing: How Top Builders Use AI To Do The Work Of 400 Engineers

Y Combinator's Garry Tan explains how token maxing, agentic frameworks like G stack, and treating AI compute like essential rent enable builders to ship massive, production-grade applications at unprecedented speeds.

Y Combinator · 41:29 · YouTube ↗

Podcast episode · 2 hosts and guest  Advanced · agent workflows and token maxing

Highlights

4 clips · 11 min of 41 min
    • Instead of settling for a single source, use APIs and deep research to gather exhaustive context.
    • Feeding comprehensive data into prompts allows models to make much better decisions than a human browsing manually.
    • Token maxing applies broadly to knowledge work, research, and coding.
    • Automating repetitive prompts into reusable skills eliminates friction in the AI-driven workflow.
    • Requiring the model to generate ASCII data flows, state machines, and dependency graphs before coding reduces bugs.
    • High-level product prompts (like a 10-star experience mindset) unlock much more ambitious software.
    • A harness should handle the core LLM execution loop, while human knowledge and instructions belong in plain English markdown skills.
    • Trying to implement flexible domain logic in brittle code fails compared to leveraging an LLM's latent space.
    • Achieving 80 to 90 percent test coverage is crucial to prevent AI-generated code from becoming unmaintainable slop.
    • Treating token spend as an expense to economize on is a mistake, similar to refusing to pay for rent in a tech hub.
    • Paying for maximum utility and higher-tier models yields massive returns in developer velocity and product quality.

Questions this video answers

10 · every answer cites the moment it was said
01 How do I structure prompts to get better and more complete code from Claude? 2 sources · 10:37

Instruct the model to generate an ASCII diagram detailing data flows, state machines, and dependencies before writing code. This forces the agent to load comprehensive context into latent space and prevents incomplete implementations. Garry Tan discovered this practice prevents agents from writing buggy or superficial code.

02 When should I use Codex instead of Claude Code? 2 sources · 17:37

Use Codex when you encounter complex architectural problems that require a higher intelligence model to audit your codebase. Claude Code is ideal for fast iteration, but Codex acts as a 200 IQ reviewer to catch hidden bugs. You can invoke it via a skill command to analyze your repository and report issues back to your main agent.

03 How do I handle browser-based UI testing with my coding agent? 2 sources · 15:46

You can wrap Microsoft's Playwright framework into a persistent CLI daemon to test user interfaces automatically. This gives your agent a black box browser capability to verify data mutations and execute end-to-end QA. It replaces slow browser extensions with an efficient command-line tool.

04 What is the difference between thin harnesses and fat skills in agent architecture? 2 sources · 21:55

A thin harness is the core deterministic loop that handles basic user input and LLM tool calls. Fat skills contain plain English checklists and detailed instructions written in markdown, acting like comprehensive SOPs. You should avoid putting flexible application logic into brittle code and instead manage it via markdown skills.

05 How do I know when to use an LLM instead of traditional code? 2 sources · 22:47

Use traditional deterministic code for strict actions and external API calls like Twilio where exact logic is required. Use LLMs and markdown when you need to handle generic cases, context, and latent space reasoning. The magic of agentic engineering is correctly partitioning tasks between code land and LLM land.

06 Why should I push for 80 to 90% test coverage when vibe coding? 2 sources · 11:42

Writing tests prevents AI-generated code from falling over when real users interact with it. Without adequate test coverage, vibe coding produces brittle software that resembles low-quality slop. Pushing for high test coverage ensures production-grade reliability despite rapid generation speeds.

07 How can I implement retrieval-augmented generation using my existing project code? 2 sources · 29:07

You can prompt your coding agent to inspect existing chunking, vector embedding, and hybrid retrieval logic in your other repositories. By instructing the agent to extract these patterns, you can quickly spin up Postgres with PG vector for new projects. This lets you reuse battle-tested architectures across different open-source tools.

08 How do I measure actual productivity gains when generating code with AI agents? 2 sources · 30:33

Raw lines of code can be misleading if unverified, but you can run standardized git repositories to strip away padding and calculate logical lines of code. Garry Tan found that using AI agents actually reduced his own manual coding lines while increasing total output by 400x. Directing multiple agents allows you to produce massive volumes of production-grade code.

09 Why should I treat token spend like essential rent rather than an optional cost? 2 sources · 36:32

Founders often hesitate to spend heavily on tokens just as they might hesitate to pay high rent in prime locations. However, paying for maximum compute unlocks deep intelligence and high utility that far outweighs the cost. Treating token spend like rent ensures you capture the full leverage of advanced AI models.

10 How can I leverage multiple agents to build production-grade applications rapidly? 2 sources · 14:40

You can queue up multiple feature ideas in parallel using a conductor setup and manage them through structured review workflows. By running specialized roles like CEO, developer experience, and QA agents through planning modes, you can ship dozens of pull requests in days. This framework allows single builders to accomplish the output of massive engineering teams.

Section-by-section summary

6 parts

Returning to coding after a 13-year hiatus

After years away from writing code, YC President Garry Tan used modern AI tools to rapidly build complex open-source projects and political tools. By leveraging AI coding agents, he managed to ship products with a fraction of the time and traditional headcount previously required.

Token maxing for superior research and creation

Token maxing means aggressively feeding exhaustive context, multiple sources, and deep research into models rather than settling for quick answers. This approach enables small teams or solo builders to execute comprehensive investigative and engineering work that would normally take a human weeks.

Creating G stack to automate software workflows

Frustrated by repetitive prompting, Tan built G stack, a collection of markdown skills and review loops that guide AI agents through planning, architecture, design, and testing. Enforcing structured steps like ASCII data flow diagrams and rigorous test coverage ensures the generated code is robust rather than superficial slop.

Thin harnesses and fat skills in agent architecture

The secret to agentic engineering is keeping the harness simple while packing instructions into markdown files. Because code is brittle and LLMs understand intent through latent space, putting domain guidance in plain English markdown yields much more adaptable automation.

Re-evaluating lines of code in the AI era

While raw lines of code metrics are controversial, standardized analysis shows that directing multiple AI agents allows builders to orchestrate massive codebases. Rather than replacing engineers, AI multiplies their output, making taste and clear problem definition the primary bottlenecks.

Treating token spend like essential rent

Developers often hesitate to use expensive state-of-the-art models due to token costs, but this thriftiness is counterproductive. Just like paying high rent to live in San Francisco for serendipity and networking, investing heavily in top-tier AI tokens unlocks unmatched leverage and velocity.

0:00 / 41:29
k play/pause · f fullscreen · m mute
n next · p previous clip · t highlights/full
< > slower/faster · / search what was said
  • Token maxing8× · first 7:44

    Spending heavily on tokens and compute to maximize research depth and completeness.

  • G stack7× · first 10:04

    A custom suite of agent skills and commands used to automate software workflows.

  • Claude Code18× · first 4:28

    A command-line coding agent used for directing development tasks.

  • Playwright2× · first 15:48

    A testing framework used to wrap browser automation for end-to-end QA.

  • Codex4× · first 16:52

    A powerful command-line coding agent used to find complex bugs and review plans.

  • Open Claw4× · first 24:21

    An open-source agentic environment and runtime used for building applications.

  • RAG2× · first 4:39

    Retrieval-augmented generation used to ingest external data sources for context.

  • G brain3× · first 18:33

    A local repository and markdown-based knowledge system for agent context.