[One Million AI Engineer Special] How Stanford Teaches AI-Native Engineering - Mihail Eric, Monaco

Latent Space

Stanford's Mihail Eric on teaching AI-native engineering, from Claude Code internals to open-source maintainers

The Stanford adjunct and Monaco head of AI walks Latent Space through the ten-week CS146S syllabus, why he added open-source maintainers as reviewers, and what Monaco builds in house versus buys.

In a roughly two-hour interview marking one million subscribers on the AI Engineer YouTube channel, Mihail Eric explains how Stanford's CS146S, The Modern Software Developer, has changed in its second run. Eric teaches the course and leads AI at Monaco, a sales platform startup. The big change: last year's mostly pedagogical assignments could be finished with one prompt, so this year students contribute to open-source projects and have their code reviewed by the maintainers.

Why CS146S added open-source maintainers

Eric says last year's course had nine assignments and an open-ended capstone, and many assignments could be one-shotted by an agent. He notes that, in his survey, not a single student types code by hand anymore. His answer is to put students into large, AI-focused repos, where maintainers review their work and help them build mental models of good software. He frames this as mentorship, aimed at keeping a gap from opening between senior engineers who already use agents well and juniors who are unsure what to do now. He also says he secured extra credits from tool vendors so students are not held back by a $20 monthly plan.

He is blunt that the course is not for beginners. Algorithms and core computer science are prerequisites, and the goal is to make graduates productive quickly, closer to senior level than a typical entry role.

Interview frame in a studio as the guest discusses the course's open-source contribution assignments.
Eric explains why open-source partners and maintainer review now anchor the course assignments.

The ten-week syllabus

Eric runs through the weeks in order:

  • Week one: harness internals, including building a coding agent from scratch.
  • Weeks two to four: context engineering, tool design and MCP, skills, and agent customisation through config files, hooks and subagents.
  • Week five: agent-ready codebases, meaning repos with clear service boundaries, docs and verifiability.
  • Week six: agentic code review, now a bottleneck as code generation speeds up.
  • Week seven: security, especially supply-chain risk.
  • Week eight: background agents, with examples such as Stripe's Minions.
  • Weeks nine and ten: team infrastructure, changing roles and the software factory.

The hosts press the point that not all of this is settled. Eric agrees, and says his one principle is experimentation, even ten minutes a day on a new tool.

Inside Claude Code in 200 lines

Week one pairs a roughly 200-line agent loop, which Eric says needs no more than intro algorithms knowledge, with a look at the real thing. He used a proxy to intercept the requests Claude Code sends, then walked students through the system prompt, plan prompt and compaction prompt. He notes the system prompt has shrunk, with details such as git usage now left to the model itself, which raises the question of what belongs in the model and what in the harness.

Studio interview frame during a discussion of coding agent harnesses and system prompts.
Discussion of intercepting Claude Code requests to inspect its system prompt, and how the prompt has shrunk.

Context, skills and code review

For large codebases, Eric advocates a research, proposal, spec, implementation and testing flow, with a human choosing between proposed approaches. The hosts add that fanning work out to subagents and deciding what each inherits is still messy. On skills, the group agrees that people should write their own and prune them, and Eric recommends an explain-the-diff skill that ends with a quiz. On review, he describes the choke point as deciding what can be auto-approved and what needs a human, and points to Cloudflare's write-ups.

Monaco and building versus buying

Eric describes Monaco as a Series B all-in-one sales platform with its own agent harness for sales work, aimed first at startups up to Series A and now moving upmarket. He mentions it competes with incumbents such as Salesforce. Internally the team built a background-agent platform called Monacoder on Coder, plus a Slack bot named Hal for debugging and support. His rule is to buy to learn and build to keep. They still use Cognition's Devin for code review after surveying other tools.

Studio interview frame as the guest talks about internal tooling at Monaco.
Eric describes Monaco's build-versus-buy choices, including Monacoder and the Devin code review tool.

Eric ends with advice for students: aim at ambitious projects, such as writing a browser, since turning a photo into an app is no longer a high bar.

Questions and answers

What is Stanford's CS146S course, The Modern Software Developer, teaching in its second run?

Stanford's CS146S, The Modern Software Developer, is a ten-week course on AI-native engineering taught by Mihail Eric. It covers building a coding agent, context engineering, tool design and MCP, agent-ready codebases, agentic code review, security, background agents and team infrastructure.

What did Mihail Eric change in Stanford's CS146S course this year?

Mihail Eric added open-source contributions to Stanford's CS146S. Last year's course had nine mostly pedagogical assignments and an open-ended capstone, and many could be finished with one prompt by an agent. This year students contribute to large AI-focused repos and have their code reviewed by the maintainers.

Why does Mihail Eric have open-source maintainers review Stanford students' code?

Mihail Eric uses maintainers as reviewers to give students mentorship and help them build mental models of good software. He wants to stop a gap opening between senior engineers who use agents well and juniors who are unsure what to do. His survey found no student types code by hand anymore.

Is Stanford's CS146S suitable for beginners?

Stanford's CS146S is not for beginners, according to instructor Mihail Eric. Algorithms and core computer science are prerequisites. The goal is to make graduates productive quickly, closer to senior level than a typical entry role. He also secured extra tool-vendor credits so students are not limited by a $20 monthly plan.

What is Monaco and what does Mihail Eric do there?

Monaco is a Series B all-in-one sales platform with its own agent harness for sales work, and Mihail Eric leads AI there. It first targeted startups up to Series A and is now moving upmarket, competing with incumbents such as Salesforce.

How does Monaco decide what to build and what to buy for engineering?

Monaco follows Mihail Eric's rule to buy to learn and build to keep. The team built a background-agent platform called Monacoder on Coder, and a Slack bot named Hal for debugging and support. It still uses Cognition's Devin for code review after surveying other tools.

From the YouTube description

What do you assign when students can finish last year’s homework with one prompt? For the second run of Stanford’s CS146S, Mihail Eric brought open-source maintainers into the course. Students have to understand an unfamiliar repo, propose a change, and explain it to the person who will review their code.

Mihail teaches The Modern Software Developer at Stanford and leads AI at Monaco. We work through his ten-week syllabus, from watching the tool calls inside Claude Code to deciding what a subagent should return to its parent. At Monaco, his team chose to build its own agent workspaces, buy code review tools, and give an on-call agent access to Datadog and GitHub. Mihail explains the reasoning behind those decisions.

Mihail thinks open-source repos will become agent-run software factories. If the factory can produce a patch, what should a junior engineer be learning to do?

AI Engineer CODE Summit - https://aie.codes
AI Engineer on YouTube - https://www.youtube.com/channel/UCLKPca3kwwd-B59HNr-_lvA

Chapters
0:00 One million AI Engineer subscribers and the CODE Summit
0:51 Mihail Eric and Stanford CS146S
5:26 What junior engineers need to learn now
10:02 Open-source maintainers review the students’ code
15:04 A tour of the ten-week syllabus
24:04 The loop, tools and harness inside a coding agent
32:18 Context engineering for a large codebase
38:15 Skills that make you understand the diff
46:42 The Monaco.com dispute and the airplane banner
50:23 What Monaco does for sales teams
59:21 Inside Monaco’s engineering team
1:01:40 “You buy to learn, and you build to keep”
1:05:24 Making repos agent-ready and closing the on-call loop
1:12:37 When code review becomes the bottleneck
1:20:37 Security, dependencies and permissions
1:30:13 Background agents and Stripe’s Minions
1:34:16 MCP portals and why infrastructure converges
1:41:22 Building the software factory
1:45:24 What work is left for developers?
1:52:16 From personal adoption to team autonomy

Show notes
• Stanford CS146S syllabus and assignments - https://themodernsoftware.dev/
• Mihail builds a coding agent from scratch - https://www.mihaileric.com/The-Emperor-Has-No-Clothes/
• Mihail opens up the Claude Code harness - https://www.mihaileric.com/Demystifying-Claude-Code/
• Geoffrey Litt on understanding a diff - https://www.geoffreylitt.com/2026/07/02/understanding-is-the-new-bottleneck.html
• Monaco’s agent workspaces - https://www.monaco.com/blog/agent-developer-workspaces
• How to Kill the Code Review - https://latent.space/p/reviews-dead/
• Faros report on AI adoption and review time - https://www.faros.ai/blog/ai-software-engineering
• Basis’s Authority Map - https://www.getbasis.ai/blogs/how-we-made-our-monorepo-ergonomic-for-agents#canon-vs-not-canon
• Stripe’s Minions - https://stripe.dev/blog/minions-stripes-one-shot-end-to-end-coding-agents
• Boris Cherny’s Steps of AI Adoption - https://x.com/bcherny/status/2077929379661844559

Opening excerpt from Mihail Eric’s interview on The Thinking Mode, EO Studio - https://www.youtube.com/watch?v=wEsjK3Smovw

More Latent Space interviews - https://latent.space

Watch on YouTube

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.