Skip to content
OpenAIOpenAI

Codex and the future of coding with AI — the OpenAI Podcast Ep. 6

What happens when AI becomes a true coding collaborator? OpenAI co-founder Greg Brockman and Codex engineering lead Thibault Sottiaux talk about the evolution of Codex—from the first glimpses of AI writing code, to today’s GPT-5 Codex agents that can work for hours on complex refactorings. They discuss building “harnesses,” the rise of agentic coding, code review breakthroughs, and how AI may transform software development in the years ahead. Chapters 1:15 – The first sparks of AI coding with GPT-3 4:00 – Why coding became OpenAI’s deepest focus area 7:20 – What a “harness” is and why it matters for agents 11:45 – Lessons from GitHub Copilot and latency tradeoffs 16:10 – Experimenting with terminals, IDEs, and async agents 22:00 – Internal tools like 10x and Codex code review 27:45 – Why GPT-5 Codex can run for hours on complex tasks 33:15 – The rise of refactoring and enterprise use cases 38:50 – The future of agentic software engineers 45:00 – Safety, oversight, and aligning agents with human intent 51:30 – What coding (and compute) may look like in 2030 57:40 – Advice: why it’s still a great time to learn to code

Andrew MaynehostGreg BrockmanguestThibault Sottiauxguest
Sep 15, 202550mWatch on YouTube ↗

CHAPTERS

  1. 0:00 – 2:04

    Early sparks: GPT-3 completes docstrings into real code

    Greg recounts the first moments in the GPT-3 era when simple docstrings and function signatures started turning into working Python. That early “signs of life” convinced the team that AI coding would be a major application and that progress would feel surprisingly fast in hindsight.

    • GPT-3 could complete a function from docstring + signature, showing immediate promise
    • Early ambition: “1,000 lines of coherent code” as a milestone that’s now surpassed
    • Developers focus on flaws day-to-day, but capability gains are dramatic when you zoom out
    • Humans quickly normalize rapid improvements and reset expectations
  2. 2:04 – 3:04

    Why coding became OpenAI’s exceptional focus area

    Greg explains why programming has long been treated as an exception to the “general intelligence” instinct. OpenAI invested in code-specific data, metrics, and evaluation—alongside experiments like Codex and Python-focused efforts—to push coding capability earlier than many other domains.

    • Tension between going broad for AGI vs going deep on a domain
    • Coding got specialized investments: data, metrics, and performance understanding
    • Parallel internal efforts (Codex, Python-focused training) even around GPT-4 timeframe
    • Shift from raw benchmark performance to real-world usefulness
  3. 3:04 – 5:12

    The ‘harness’: making model outputs come to life with tools and loops

    They introduce the idea that coding requires more than text completion: you need execution, tool access, and agent loops. Thibault defines the harness as the infrastructure that lets the model act in an environment—like a ‘body’ for the model’s ‘brain.’

    • Coding needs execution and tool integration, not just text generation
    • Harness = tools + agent loop + infrastructure connecting model to environment
    • Training end-to-end with harness can produce “magical” agent behavior
    • Usability depends as much on harness design as on raw intelligence
  4. 5:12 – 7:41

    Copilot lessons: interface design and latency as a product constraint

    Greg describes what GitHub Copilot taught them about putting AI directly into the developer workflow. The key insight: latency is a feature—autocomplete-like experiences demand sub-second responses, which drives different model and interface choices than slower, more capable systems.

    • Copilot made AI-in-the-loop coding feel real for the first time at scale
    • Autocomplete UX needs tight latency (≈1500ms) or users reject it
    • Tradeoff: GPT-4-level intelligence vs meeting latency budgets
    • Solution isn’t only a smaller model—often you must change the harness/interface
    • Thesis: higher intelligence pays off long-term even if it’s slower today
  5. 7:41 – 14:50

    From copy-paste to agent-driven context: terminals, IDEs, and async work

    Thibault describes how users kept trying to cram more context into ChatGPT, leading to a reversal: let the model fetch context and drive debugging. They discuss experimenting with terminals, IDEs, and asynchronous “close the laptop” agents, plus the practical challenges of diverse dev environments.

    • Users hit friction copy-pasting stack traces and code into chats
    • New direction: model should gather context and drive debugging itself
    • Form-factor experiments: terminal prototype, cloud/async agents, IDE experiences
    • Internal tool “10x” proved productivity but wasn’t launched initially
    • Key constraint: real-world setups aren’t easily containerizable—meet developers where they are
  6. 14:50 – 17:49

    Convenience vs intelligence: the acceptance region for useful AI tools

    Greg frames AI adoption as two axes: intelligence and convenience (latency, cost, integration). The product challenge is deciding when to push intelligence versus improving convenience—because both determine whether AI fits into real workflows.

    • Two axes: intelligence vs convenience (latency/cost/integration)
    • Different tasks tolerate different latency and friction thresholds
    • Integrations (e.g., terminal context visibility) can be transformative without smarter models
    • Design space is large: co-evolve models and harnesses to hit the “acceptance region”
    • Examples from early API days: long prompts and costs constrained practical apps
  7. 17:49 – 24:27

    One ‘coding collaborator’ across surfaces + agents.md for preferences and navigation

    They argue developers won’t use just one interface; instead Codex should feel like a single collaborator across terminal, IDE, GitHub, and cloud agents. They also introduce agents.md as a lightweight way to encode project navigation hints and preferences, while noting longer-term work needed on agent memory.

    • Vision: one agentic collaborator that appears across tools (terminal/IDE/GitHub/cloud)
    • Codex in GitHub via @mention can run tasks remotely
    • agents.md: local instructions file to compress context and encode preferences
    • Current agents lack durable memory—future research needed on learning from repeated runs
    • Analogy: collaborating with humans across Slack, in-person, and code review feels natural
  8. 24:27 – 26:48

    Enterprise unlocks: refactoring, migrations, patching, and agents building tools

    Greg highlights refactoring massive codebases as a major uncracked opportunity and a likely enterprise killer use case. They discuss painful migrations, security patching, and the prospect of agents creating and using their own tooling—extending beyond code writing into SRE-like operations.

    • Large-scale refactoring is still hard but hugely valuable (esp. enterprise)
    • Lowering migration cost could trigger far more modernization (e.g., COBOL systems)
    • Codex can assist with API/library migrations and refactors with special instructions
    • Security patching and vulnerability response are emerging high-impact uses
    • Future: agents build tools for themselves (a Unix-like flywheel) and handle operational tasks
  9. 26:48 – 30:29

    High-signal code review: crossing the ‘noise threshold’ into must-have

    Thibault explains an internal Codex code review mode that deeply checks intent vs implementation and finds subtle issues across dependencies. Greg notes the key adoption dynamic: below a threshold, auto-review is noise; above it, teams become dependent and upset when it disappears.

    • Codex code review targets high-signal findings: intent/contract vs code reality
    • Can traverse dependencies and catch issues humans miss without hours of effort
    • Internal rollout created a “safety net” and boosted PR velocity dramatically
    • Adoption curve: once utility crosses threshold, it becomes mission-critical
    • Improved model behavior: less argumentative “doubling down,” more helpful reasoning
  10. 30:29 – 34:38

    GPT-5 Codex: harness-optimized, fast on simple tasks, persistent for hours

    They introduce GPT-5 Codex as a GPT-5 variant optimized tightly for the Codex harness. The headline capability is endurance and “grit” on complex tasks—running for hours to execute plans, fix issues, and pass tests—while still responding quickly for simpler requests.

    • GPT-5 Codex is optimized for Codex’s tools and agent loop (model + harness as one)
    • Balances quick replies for easy tasks with deep work for hard ones
    • Demonstrated long-horizon execution: up to ~7 hours on complex refactors
    • Workflow: plan → let agent work through failures → get tests passing → complete refactor
    • Emphasis on improved reliability and code quality for real usage patterns
  11. 34:38 – 36:29

    Toward agentic software engineers: multi-agent cloud fleets with human steering

    Thibault outlines a future of large populations of cloud agents supervised by individuals and organizations. They emphasize gradual rollout through experimentation in interaction patterns, plus permissioning, sandboxing, and escalation to keep humans in control.

    • Expectation: millions of agents producing economic value in data centers
    • Key challenge: how to get there gradually while interfaces are still evolving
    • Safety model: sandbox by default (e.g., CLI), explicit permissions, escalation for risky actions
    • Need steerability at individual/team/org levels with clear operator control
    • Security, alignment, and oversight must scale with multi-agent deployment
  12. 36:29 – 40:25

    Scalable oversight + breakthrough problem-solving beyond coding

    Greg focuses on trust: humans can’t review every line, so oversight methods must scale as agents become stronger. He also argues the truly new phase will be AIs helping solve novel, previously intractable problems—citing early signs in life sciences and research workflows.

    • Scalable oversight: maintaining trust without reading every line of generated code
    • Bootstrapping supervision approaches discussed since ~2017 (humans/weaker AIs supervising stronger AIs)
    • Current agents help with known-shaped tasks; next leap is novel problem-solving
    • Examples: drug discovery, materials science, and experimental protocol ideation
    • Milestone: AI-enabled artifacts valuable for their breakthrough nature, not just cheaper creation
  13. 40:25 – 46:35

    2030 outlook: secure infrastructure, formal verification hopes, and compute scarcity

    They predict that while AI may create material and digital abundance, compute will remain a binding constraint—especially if everyone wants persistent personal agents. They discuss security’s cat-and-mouse dynamics and the hope that AI can enable stronger defenses like formal verification and better system understandability.

    • Goal isn’t “more code,” but better, simpler, more reliable infrastructure
    • Security today is fragile; AI could accelerate attackers and defenders
    • Potential endgame for defense: AI-assisted formal verification and deeper system understanding
    • Compute scarcity: demand could reach ‘one GPU per person’ scale, far beyond supply
    • Latency and proximity matter: GPUs closer to users improve tool-call-heavy agent rollouts
  14. 46:35 – 50:39

    Still learn to code: pair fundamentals with AI to build faster and better

    They argue it’s an excellent time to learn programming—especially alongside learning to use AI effectively. Codex can accelerate learning new languages, reveal best practices during code review, and help avoid reinventing solutions, but strong software engineering fundamentals remain crucial.

    • Advice: learn to code—and learn to use AI as a core skill
    • Codex helps ramp into new languages (e.g., Rust) and explore unfamiliar codebases
    • Code review can teach pitfalls and better approaches you didn’t know to ask about
    • Successful AI coding correlates with strong fundamentals: architecture, structure, and understanding output
    • Usage is rapidly growing as people discover workflows and limits expand via Plus/Pro access

Get more out of YouTube videos.

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