Skip to content
How I AIHow I AI

The beginner's guide to coding with Cursor | Lee Robinson (Head of AI education)

Lee Robinson is the head of AI education at Cursor, where he teaches people how to build software with AI. Previously, he helped build Vercel and Next.js as an early employee. In this episode, he demonstrates how Cursor's AI-powered code editor bridges the gap between beginners and experienced developers through automated error fixing, parallel task execution, and writing assistance. Lee walks through practical examples of using Cursor's agent to improve code quality, manage technical debt, and even enhance your writing by eliminating common AI patterns and clichés. *What you'll learn:* 1. How to use Cursor's AI agent to automatically detect and fix linting errors without needing to understand complex terminal commands 2. A workflow for running parallel coding tasks by focusing on your main work while the agent handles secondary features in the background 3. Why setting up typed languages, linters, formatters, and tests creates guardrails that help AI tools generate better code 4. How to create custom commands for code reviews that automatically check for security issues, test coverage, and other quality concerns 5. A technique for improving your writing by creating a custom prompt with banned words and phrases that eliminates AI-generated patterns 6. Strategies for managing context in AI conversations to maintain high-quality responses and avoid degradation 7. Why looking at code—even when you don't fully understand it—is one of the best ways to learn programming *Brought to you by:* Google Gemini—Your everyday AI assistant Persona—Trusted identity verification for any use case *Where to find Lee Robinson:* Twitter/X: https://twitter.com/leeerob Website: https://leerob.com *Where to find Claire Vo:* ChatPRD: https://www.chatprd.ai/ Website: https://clairevo.com/ LinkedIn: https://www.linkedin.com/in/clairevo/ X: https://x.com/clairevo *In this episode, we cover:* (00:00) Introduction to Lee (02:04) Understanding Cursor's three-panel interface (06:27) The importance of typed languages, linters, and tests (11:28) Demo: Using the agent to automatically fix lint errors (15:17) Running parallel coding tasks with the agent (18:50) Setting up custom rules (23:24) Understanding the different AI models (24:48) Micro-slicing agent chats for better success (27:22) Tips for effective agent usage (29:00) Using AI to improve your writing (35:47) Lightning round and final thoughts *Tools referenced:* • Cursor: https://cursor.com/ • ChatGPT: https://chat.openai.com/ • JavaScript: https://developer.mozilla.org/en-US/docs/Web/JavaScript • Python: https://www.python.org/ • TypeScript: https://www.typescriptlang.org/ • Git: https://git-scm.com/ *Other references:* • Linting: https://en.wikipedia.org/wiki/Lint_(software) _Production and marketing by https://penname.co/._ _For inquiries about sponsoring the podcast, email jordan@penname.co._

Claire VohostLee Robinsonguest
Sep 22, 202545mWatch on YouTube ↗

CHAPTERS

  1. 0:00 – 2:05

    How Cursor helps you build better software: agents that can fix real issues

    Lee previews a practical workflow: asking Cursor’s agent to fix lint errors end-to-end. The key idea is delegating outcomes ("fix lint") rather than step-by-step instructions, letting the agent read files, run commands, and verify results.

    • Cursor agents can read the repo, run terminal commands, and apply fixes
    • Outcome-driven prompting (GPS-style) vs. manual step-by-step instructions
    • Verification loop: run lint → change code → rerun lint
    • Sets the episode’s focus on making code less intimidating and more reliable
  2. 2:05 – 3:30

    What Cursor is in the AI builder ecosystem (beginner to power user)

    Claire and Lee define Cursor as an AI-native code editor that supports multiple frontier models and also ships custom models for coding assistance. They frame Cursor as a bridge tool that supports everyone from first-time coders to expert developers.

    • AI code editor with access to models from OpenAI/Anthropic/Google plus Cursor-trained models
    • Designed for a spectrum: beginners through power users
    • Cursor as a practical learning surface because you can see and inspect code
    • The goal: make building and maintaining software more accessible
  3. 3:30 – 5:29

    Why looking at code matters: learning by reading, not just generating

    Claire argues that an IDE is valuable even for non-engineers because code is readable and learnable. Lee empathizes with the overwhelm of file trees and extensions and explains that better abstractions (and AI) reduce that learning curve.

    • IDE visibility helps people parse and learn code structure
    • File trees and extensions are intimidating at first but become navigable
    • JavaScript ecosystem as a common beginner entry point
    • AI tools can lower friction without hiding fundamentals
  4. 5:29 – 8:03

    Cursor’s three-panel interface and the autonomy slider

    Lee breaks down the UI: files on the left, code/editor in the center, and the agent on the right. He explains different levels of AI assistance—from inline autocomplete to an agent that can author multi-file changes.

    • Left: project directory and files; Middle: focused editing; Right: agent panel
    • Autocomplete for local edits and imports vs. full agent workflows
    • “Autonomy slider” concept: choose how much the AI does
    • Agent can write or refactor entire files, not just snippets
  5. 8:03 – 11:45

    Engineering guardrails that make AI coding safer: types, linters, formatters, tests

    Lee explains that traditional software engineering practices make AI agents more effective because they create structured feedback. Claire translates the concepts for beginners, emphasizing how each tool prevents errors and helps the agent self-correct.

    • Typed languages (e.g., TypeScript) add strictness and editor feedback
    • Linters catch common mistakes and style issues early
    • Formatters standardize code appearance automatically
    • Tests validate behavior and give agents actionable failure output
  6. 11:45 – 15:51

    Demo: asking the agent to fix lint errors (and learning from the diff)

    Lee demonstrates a minimal prompt—"Fix the lint errors"—and shows the agent running the lint command, identifying issues (including unsafe `any` typing), applying fixes, and rerunning lint to confirm success. Claire highlights the educational value of reviewing diffs and learning commands like running lint manually.

    • Simple prompt triggers: run `bun run lint` → diagnose → patch → rerun
    • Agent replaces unsafe typing and applies formatting fixes
    • Verification is built into the workflow (rerun checks)
    • Diff review teaches beginners what changed and why
  7. 15:51 – 19:12

    Parallelizing work: keep coding while the agent “cooks” in the background

    Lee describes a productivity pattern: stay focused in the main editor while running separate agent tasks in parallel. This evolves AI from “code generator” to “pair programmer,” where you strategically decide when to take the wheel.

    • Run side tasks (new routes/features) while you work in the main file
    • Agent tasks can run unattended and be checked later
    • Progression: generation-first → collaborative pair programming
    • Build the skill of delegating well-scoped parallel tasks
  8. 19:12 – 20:33

    Cursor setup: when and how to use rules + custom commands

    Lee recommends adding rules when you see repeated model mistakes, turning recurring preferences into reusable guidance. He shows defining a custom “code review” command and explains how it can be refined over time for consistent checks.

    • Create a rule after 2–3 repeated “wrong” model behaviors
    • Rules codify preferences: writing style, tooling (e.g., package manager), conventions
    • Custom commands (e.g., “code review”) run consistent prompt routines
    • Commands can cover security review, cleanup, testing expectations, and more
  9. 20:33 – 23:35

    Using @mentions for precise context: files, Git branches, commits, and more

    Lee explains Cursor’s @menu as a structured way to pass the right context to the agent, including Git state. Claire notes this is often overlooked if you only rely on typeahead, and the two discuss how Git references map to “working changes” (branch) vs. a single snapshot (commit).

    • @menu supplies agent context: files, images, and Git references
    • Branch context = all working changes; commit = a specific saved change
    • Practical for code review prompts and targeted debugging
    • Helps prevent vague prompts by attaching the exact relevant artifacts
  10. 23:35 – 24:48

    Model strategy: Auto selection vs. choosing reasoning models intentionally

    Claire asks why Lee uses Auto model selection; Lee argues it’s best for beginners to avoid model overwhelm while still getting good speed/quality tradeoffs. As users mature, they can pick specialized models (e.g., reasoning modes) for complex tasks.

    • Auto selects models based on speed, quality, and availability
    • Beginners avoid the cognitive load of model choice
    • Advanced users can select reasoning models for harder problems
    • Learn model “quirks” and output styles through deliberate usage
  11. 24:48 – 29:05

    Micro-slicing agent chats: managing context bloat and improving success rates

    They discuss why long chats degrade quality as context fills up, and Lee recommends starting new chats per discrete feature. Claire adds a tactic: isolate one-off questions into separate chats to avoid derailing the main task’s context.

    • Context % grows over time; quality can degrade near high utilization
    • Cursor can summarize at 100%, but it’s better to avoid huge threads
    • Start new chats for discrete features or initiatives
    • Separate “side questions” to keep the main agent thread on track
  12. 29:05 – 36:11

    Beyond code: using AI as a writing linter/formatter with banned words and patterns

    Lee shares a writing workflow using the ChatGPT desktop app with a large prompt that encodes voice, tone, banned words, and “LLM tells.” Claire connects it back to coding: this is essentially linting and formatting for prose, reducing generic marketing language and repetitive AI phrasing.

    • Mega writing prompt: tone rules + banned words/phrases + examples
    • “LLM patterns” list to reduce obvious AI-generated cadence
    • Process: rough thoughts → first draft → AI as reviewer/editor
    • Use AI to remove generic marketing language and improve specificity
  13. 36:11 – 42:46

    Lightning round: who should use vibe coding vs. Cursor, and how to start learning

    Lee maps tools to personas: vibe-coding tools for first exposure, Cursor when you’re ready to understand and maintain real code. He recommends starting with JavaScript or Python, and encourages learning by reading code and asking what unfamiliar syntax means.

    • Vibe coding tools spark interest without requiring code literacy initially
    • To maintain real products, you eventually need to understand the code
    • Recommended starter languages: JavaScript (browser feedback) and Python (readable)
    • Learning path: notice syntax → ask questions → build understanding iteratively
  14. 42:46 – 45:27

    When the model goes wrong: calm re-prompts, clearer intent, and closing thoughts

    Lee admits frustration is normal, but emphasizes that vague negative feedback doesn’t help—restate what you actually wanted with specific constraints. They wrap with where to find Lee and upcoming educational content from Cursor.

    • Emotional “fix it” prompts fail; specify what’s wrong and desired behavior
    • Add missing context explicitly instead of assuming mind-reading
    • Treat the agent like a colleague: clear, calm requirements
    • Lee’s links and upcoming free AI foundations course

Get more out of YouTube videos.

High quality summaries for YouTube videos. Accurate transcripts to search & find moments. Powered by ChatGPT & Claude AI.