Try Pro free

Lenny's Podcast · 3 min · Feb 12, 2026

AI-only codebases reveal missing context

Sherwin Wu describes an OpenAI team maintaining a codebase written entirely by Codex.

In this episode

Full analysis
  1. 24:14AI may create a boom in small B2B software businessesPro pick 4 min
  2. 37:25AI rollouts need bottom-up adoption as well as executive support7 min
  3. 44:00Build for where AI models are going, not where they are todayPro pick 6 min
  4. 12:20AI-only codebases reveal missing context3 min
  5. 15:02Codex cuts some code reviews to two or three minutes4 min
  6. 50:22Models may soon handle multi-hour tasks and better audio3 min
  7. 53:33Business process automation reaches beyond tech work4 min
  8. 57:18Startups should focus on customer resonance, not lab competition4 min
“a lot of the time when the coding agent is not doing what you want, it's usually a problem with context”
Sherwin Wuat 14:04 · Lenny's Podcast
14:04

Takeaways

  1. The experiment removes manual coding as a fallback.
  2. Agent failures often trace to missing or underspecified context.
  3. Encode tribal knowledge in docs, comments, and repo structure.

About this segment

Sherwin Wu describes an OpenAI team maintaining a codebase written entirely by Codex. Their main lesson: agents often fail because repositories lack the context and tribal knowledge they need.

Sherwin Wu

Sherwin Wu is head of engineering for OpenAI’s API and developer platform.

Leads engineering for OpenAI's API platform, where roughly 95% of engineers use Codex daily.

  • Lenny Rachitsky, Host · Host, Lenny's Podcast

    Spent seven years at Airbnb; his product newsletter has over 1M subscribers.

From “OpenAI’s head of platform engineering on the next 12-24 months of AI | Sherwin Wu”, Feb 12, 2026. Watch the full episode

Transcript

Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.

  1. 12:24

    basically reached that point now which is which is which is really cool there's two kind of threads I want to follow here. One is, I've been hearing more and more, there's this like stress that people feel when their agents aren't working. You fire off all these, you know, Codex agents and then you have to keep stand on top of them. Oh shit, one's not working, I'm wasting time. Do you feel that? Do you feel that across your team at all?

  2. 12:43

    Yeah, yeah, I mean, it happens all the time. And I actually think like this is where the interesting part of all of this lies right now because these models aren't perfect. These tools aren't perfect. And we're still trying to figure out how to best interact with these, with Codex or with these AI agents too. to get work done we see this come up all the time there's a particularly interesting team that we have internally so there's a team that that's actually doing an experiment right now uh with an open ai where they are basically maintaining a 100 codex written code base uh so you know like you know uh uh some you know you'll have the ai write code but you'll obviously end up like rewriting a lot of it and and you might need to like double check and change things but this team is just fully codex-pilled and just like leaning in entirely and they run into the exact problems

  3. 13:28

    that you're describing which is like you know their challenge is you know uh you know i want to get this thing this feature built but i can't get the agent to do it and so usually there's an escape hatch where you know then you're like all right i'll roll up my sleeves and like figure it out and then instead of using codex i might use like tab complete and cursor and things like that but this team uh for the experiment this team doesn't have that escape hatch uh and so then the challenge, how do I get the agent to do this? And I actually think we're going to be publishing a blog post from some of our learnings here. But a lot of fascinating paradigms and best practices are falling out of this. One interesting thing that we've noticed, I don't know if this is what you kind of feel, but we definitely feel it here, is a lot of the time when the coding agent is not

  4. 14:12

    doing what you want, it's usually a problem with context and just information that you've given it. It's just you've either underspecified or there's just not enough information around how to do something available to the agent, available to Codex. And so when you have to solve it through that, the challenge is then to add documentation and actually work around this limitation and basically encode more tribal knowledge that's in your head somehow into the code base, either via, you know, code comments itself or code structure itself or via text files like, you know, .md files.

  5. 14:46

    skills, any type of additional resources within the repository so that the model can better do its task. There's a whole bunch of other learnings from this group, which I think is fascinating to explore. But yeah, kind of giving, removing that escape hatch of no longer using the AI has allowed them to start piecing together a lot of the problems that we'll have to solve if we really