Try Pro free

AI & I · 4 min · Jun 24, 2026

Training in work environments can improve coding

Edwin Chen explains how models practice tasks using tools and messy company documents.

The episode’s best minutes

Full analysis
  1. 14:21Engagement metrics can make AI waste your time4 min
  2. 29:09Training in work environments can improve coding4 min
  3. 39:21Bad writing benchmarks teach models to overuse metaphors3 min
  4. 3 more moments in the full episode
“when we trained a model on this environment, we actually found that it improved on coding a lot.”
Edwin Chenat 32:03 · AI & I
32:03

Takeaways

  1. Realistic environments combine tools, documents and ambiguous tasks.
  2. Models learn to find current information among conflicting records.
  3. General tool use and instruction following can transfer to coding.

About this segment

Edwin Chen explains how models practice tasks using tools and messy company documents. Training in one environment improved coding too, despite no coding access.

Edwin Chen

Edwin Chen is founder and CEO of Surge AI.

Founded Surge AI, which bootstrapped to over $1 billion in revenue with under 100 employees.

  • Dan Shipper, Host · Co-founder & CEO, Every

    Sold his first startup, Firefly, to Pegasystems; writes Every's Chain of Thought.

From “Building a School Where AI Models Learn About Humanity”, Jun 24, 2026. Watch the full episode

Transcript

From the transcript AI & I publishes with the episode.

  1. 29:16

    I talked at the very beginning about the data game, and I feel like the data game went from getting interesting data sets to getting environments and giving labs environments. Do you think that that's... Is that accurate? And if so, can you explain why? Yeah. So certainly the trend and the new research direction in the past year has been this concept of our environments. And what I would say is, I mean, you certainly need the fundamentals.

  2. 29:48

    Like before the model can operate in this environment, it needs to know basic things. Like it needs to know how to follow instructions. It needs to know how to avoid hallucinating. It needs to know how to write code and how to use tools. It needs to know how to write and so on and so on. But as models are becoming more agentic, And yeah, they will have access to tools. They will have access to all of our documents.

  3. 30:15

    They will be able to operate browsers. As that becomes almost a default way that models interact with us, our environments are basically just sort of like a more on distribution way of training them, which is why they're becoming more and more popular. As the models get more powerful, then the way we train them is getting more powerful as well. What would be an example? So I guess the obvious environment is like using a computer, but what would be an example of an environment that's non-obvious, that's teaching models things we might not think of?

  4. 30:50

    So I can give an example where... A lot of our environments are a combination of tools that the models need to learn to use. Like this might be an MCP server, or it might be calling a Google Drive API or the Slack API. In combination with a bunch of documents, like here are 30 PDFs and 20 Word document files. And you might give it a prompt like, hey, can you... Go update or 2026 forecasted revenue numbers.

  5. 31:28

    And what the model needs to do is it needs to learn how to... find the right PDFs and documents and needs to learn when should it search through SAC. It needs to learn when is some information outdated. Like maybe there's an email with, uh, with some early forecasts. And then later on, there's another email from the same person or, you know, maybe a different person who was saying like, Oh, whoops, I actually made a mistake in those earlier numbers.

  6. 31:51

    So here's a, here's an updated version. And so that is a, I think fairly canonical version of an environment. And then one of the interesting things we found, so I think we're actually going to publish a paper on this soon, but even when we didn't give this kind of environment any access to coding, when we trained a model on this environment, we actually found that it improved on coding a lot. And the reason was because we were basically teaching it these generalized forms of instruction following, generalized forms of tool use, generalized forms of understanding documents, which you can think of as fairly analogous to the way a model needs to look through various files in your repository and understand that some documents things supersede others.

  7. 32:43

    Or, you know, just the way it uses tools is obviously very analogous to the way that a model might write unit tests and execute them and iterate over and over again until it passes them. So I thought that was actually a really, really interesting find. Really interesting. Did you see Taki?