Latent Space: The AI Engineer Podcast

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

· Summarized

Share this episode
Anyone with this link can open it.
Share Link
Start at 0:00

Key takeaways

  • AI-native engineers still need foundational software-engineering knowledge, but the entry bar is rising toward traditional senior-level judgment.
  • CS146S shifted from surveying coding-agent use cases to teaching durable practices such as context engineering, agent-ready repositories, verification, and architecture.
  • The new course uses real open-source contributions so students work in complex repositories and receive feedback from maintainers instead of one-shotting toy assignments.
  • A basic coding agent can be built in roughly 200 lines, and inspecting a production harness reveals how prompts, tools, planning, and compaction actually work.
  • Agent-ready codebases and reliable verification must come before large-scale parallel agents or software factories.
  • As agents increase code-generation velocity, code review, intent, and cumulative understanding of the codebase become major human and organizational choke points.
  • Students can distinguish themselves by building ambitious systems and producing rigorous benchmarks or technical write-ups rather than merely generating small demos.

Summary

Why CS146S was created

Mihail Eric explained that Stanford’s CS146S, “The Modern Software Developer,” began as an idea in November 2024, when coding agents were already changing how developers worked but the relevant practices were scattered across blog posts. He spent roughly nine to ten months developing a formal proposal, drawing inspiration from his Stanford alma mater and from Chip Huyen’s experience designing a machine-learning-systems course. The class was approved and first taught in fall 2025, before the Opus 4.5/4.6 era. It was well received and even received coverage in a Business Insider article. The second run was substantially revised because autonomous coding agents had advanced dramatically.

From an AI survey course to a practitioner’s course

Eric said the first version of CS146S mainly surveyed where coding agents could be used across the software development life cycle: code review, specification, design, SRE, and other emerging categories. The purpose was exposure—an “odyssey” through everything AI was changing. The new version focuses on principles that appear more durable, especially context engineering, architectural thinking, and designing systems that agents can use effectively. It is not an introductory programming or algorithms course; students are expected to have traditional computer-science foundations. Eric described it as a practitioner’s course for graduates entering production environments and trying to become unusually productive engineers.

Why students still need computer science

When asked whether students should still study computer science or simply use Claude Code and Codex, Eric acknowledged significant student anxiety but argued that a well-trained, AI-native engineer could become one of a company’s most useful assets. The catch is that the entry bar is much higher: an engineer entering at an L3 level may need to perform closer to a traditional senior engineer. Students still need foundational software engineering, including how systems are built and the trade-offs behind them, but they can increasingly defer implementation details to models. The host added a sharper warning that many students outside elite schools may be “cooked,” though both treated that as a deliberately extreme framing.

Open-source contributions replace easy AI assignments

Eric redesigned the assignments because last year’s exercises—such as asking an AI code-review tool to review a repository—were too easy for agents to one-shot. This year, students work with open-source projects built around AI, coding agents, or agent infrastructure. They must learn unfamiliar, complex repositories and contribute real changes, with maintainers reviewing their code and helping them develop better mental models of software design. Eric sees this as a mentorship mechanism: senior engineers who already understand pre-agent software development should not pull further ahead while juniors merely consume tools. The open-source partners may also discover and recruit strong students.

The ten-week curriculum

The course begins with coding-agent internals and has students build a basic harness from scratch. It then covers context engineering, MCP and tool design, skills and procedural automation, configuration files such as AGENTS.md and CLAUDE.md, hooks and sub-agents, and agent-ready codebases. Later weeks address agentic code review, security and dependency risks, background agents triggered by repository or CI events, team infrastructure such as LLM gateways and MCP portals, changing engineering roles, and software factories. Eric stressed that not every topic is settled science: the course presents active patterns and open problems rather than pretending the industry has reached consensus.

Peeling back Claude Code’s harness

Eric teaches students a roughly 200-line coding-agent implementation to show that the core agentic loop is not mysterious and can be built with knowledge comparable to Stanford’s introductory algorithms course, CS106B. He then has students intercept a real Claude Code session with an HTTP proxy and inspect its requests, responses, system prompt, planning prompt, and compaction prompt. The host noted that Claude Code’s system prompt had once reached roughly 20,000 tokens, though Anthropic later reduced it by about 80 percent before expanding and revising it again. Eric said this evolution illustrates the shifting boundary between what belongs in the model’s weights and what belongs in the harness.

Context engineering for large codebases

Eric argued that most industry users still stop at vanilla prompting, which can work for small tasks but breaks down in million-line repositories. His preferred workflow adds a research phase, a proposal phase with alternative solutions, a human decision about the approach, and then a detailed implementation plan or specification with testing and verification. The host pushed the issue further: multi-agent systems must decide whether sub-agents inherit the parent’s entire context, receive a condensed version, or return summarized work to the main thread. Both agreed that fan-out, consolidation, context refresh, and avoiding bloated or misleading instructions remain partly an art rather than settled engineering science.

Skills should improve understanding, not turn brains off

The course introduces skills as reusable procedures that extend beyond individual tools or MCP calls. Eric cited examples such as a skill that explains a code diff visually and quizzes the user afterward, reinforcing that understanding is still required. The host warned that users often celebrate producing tens of thousands of lines from a one-line prompt without understanding the result. He also described maintaining and pruning skills because poorly written trigger conditions can cause an unrelated skill to activate unexpectedly. Eric added that skills can serve a second, longer-lived purpose: encoding an organization’s preferred APIs, boundaries, and engineering practices for agents.

Monaco’s AI-native sales platform

Eric described Monaco, where he is head of AI, as a Series B San Francisco company building an all-in-one, AI-native sales platform. It initially targeted startups from the spreadsheet stage through roughly Series A rather than trying to displace Salesforce inside large enterprises, then planned to move upmarket. Agents handle tasks such as defining and scoring ideal customer profiles, enriching companies and contacts, updating meeting notes and summaries, and managing pipeline workflows so salespeople can focus on closing deals. Monaco uses Parallel and Exa for search and enrichment, while maintaining its own database of companies, accounts, and contacts. A useful buying signal is a target executive moving to a new job.

Build versus buy inside Monaco

Monaco uses foundation-model services initially, but Eric said vertical AI companies eventually face cost, latency, and margin questions that may justify open-weight models and post-training with reinforcement learning. Internally, Monaco built a background-agent platform called Monocoder on Coder, using isolated development environments and long-running agent tasks. It also built HAL, a Slack-based system combining SRE, customer success, and QA functions; its behavior varies depending on whether it is assisting a salesperson or a developer. The company still buys tools when they are mature: after evaluating many code-review products, Monaco adopted Devin, while building other infrastructure when no external product crossed its usefulness threshold.

Agent-ready codebases and the code-review bottleneck

Eric called agent readiness the foundation for multi-agent systems and software factories. A repository must be understandable, well structured, documented, and verifiable before many agents can safely work in parallel. As generation speed rises—Eric said teams may create more than 30 pull requests a day—code review becomes the new choke point. The goal is not unrestricted merging or traditional line-by-line review of everything, but a calibrated system that auto-approves changes meeting strong architectural and verification criteria while reserving human attention for higher-risk work. Monaco keeps detailed pull-request descriptions with implementation summaries, file-level pointers, and service-boundary information, though the host noted that maintaining the codebase’s cumulative intent remains unresolved.

Security, dependencies, and the limits of generated code

Eric’s security week covers new attack vectors created by autonomous systems, including dependency and software-supply-chain risks. He recommends pinning dependencies rather than blindly running package-install commands. The host provocatively suggested that the safest codebase might have no dependencies and that cheap generated code makes rewriting components attractive; Eric and the host then acknowledged the counterargument that widely used open-source software benefits from many users discovering flaws. They agreed that generated code can contain fewer ordinary bugs while still creating an awareness problem: humans may not know what they deployed. Authentication, authorization, billing, data storage, and similar high-risk areas should not simply be vibe-coded, while less sensitive areas can tolerate more experimentation.

Background agents and the software factory

The course examines asynchronous agents triggered by repository events, CI, webhooks, or scheduled jobs, including systems inspired by Stripe Minions, Spotify’s tooling, Ramp Inspect, and Cloudflare’s agent adoption. Eric said this is where agent-ready repositories, verifiability, and operational feedback loops become prerequisites: agents should eventually read build logs, production signals, and incidents and then act on them. The software-factory section asks what happens when the machine builds the machine. Eric identified intent-setting and review as the current human choke points, while projects with Warp will let students help operate an agent-run factory. He expects companies to adopt such systems incrementally rather than buying an entire factory at once.

What engineers should become—and how students can stand out

Eric said future engineers may act more like managers of agents: people who understand product requirements, technical constraints, architecture, metrics, and when to course-correct automated systems. The host suggested that conventional measures such as pull-request counts will become meaningless, and that the role may move toward a product-engineering hybrid concerned with customer outcomes. Eric’s capstone encourages students to build ambitious projects from YC’s Requests for Startups rather than merely making a small app from a sketch. The host’s suggested “week 11” was to create rigorous benchmarks, evaluations, or engineering write-ups; such work can open doors at frontier model and agent companies. Both warned that experimentation must produce real products, not prolonged agent “psychosis.”

Show notes

What do you assign when a coding agent can finish last year’s homework in one prompt? In the second run of Stanford’s CS146S, Mihail Eric brought open-source maintainers into the course. Students have to learn an unfamiliar repo, propose a change, and ...

Follow this show on AudioBrevity and new episodes get summarized for you. Create a free account

Couldn't load the audio. A blocker may be stopping the show's tracking links. Open the file