WhoBuilt

A Song of Types and Agents

Jul 12, 2026· 14 min· 1.4K views·Watch on YouTube

Speaker

Roberto Stagi, CTO and co-founder of Ratel, discusses why he thinks TypeScript is becoming the main language for building AI agents and applications at an AI Engineer event.

AI moves into applications

Stagi describes AI shifting from model training and infrastructure into features shipped inside applications. He argues that Python remains central to research, training, and GPU serving, while TypeScript has long been prominent in the application layer.

Coding agents favor TypeScript

Stagi says TypeScript passed Python as GitHub’s most used language in August 2025, and attributes the shift in part to coding agents such as Lovable, Claude Code, Cursor, and Codex. He argues these tools commonly build applications in TypeScript, increasing demand for AI integrations in that ecosystem.

Reasons to build agents in TypeScript

Stagi sees potential benefits in coding agents’ growing familiarity with TypeScript, access to npm packages for areas such as authentication and payments, and using one language across an application. He contrasts this with a Python backend and a separate React frontend, whose contracts and types need to stay aligned.

Shared types and a growing ecosystem

Stagi says TypeScript can use Zod schemas across an agent, backend, model, and UI. As an example of ecosystem growth, he reports that Vercel AI SDK downloads rose from 1.6 million to 15.1 million per week in one year.

Python for models, TypeScript for agents

Stagi predicts the difference between TypeScript and Python will widen at the application layer. He expects Python to remain important for inference and training, while agents that call models may increasingly ship through npm. He recommends continuing to train models in Python while considering TypeScript for agents and applications.

Takeaways

  • Choose TypeScript for an AI application when sharing types across its agent, backend, and UI would simplify maintenance.
  • Keep Python in the stack for model training and inference where it fits existing workflows.
  • Evaluate coding agents in the language your team plans to ship, since their output quality may improve with greater use.
  • Check whether npm packages can cover your application's AI integrations, payments, authentication, and UI needs.

Mentioned in this talk

Search inside this talk

What was claimed 9

  • founded
    Co-founder and CTO
    “I'm the CTO and co-founder of Ratel”
    YouTube
    Verified2 sources· Talk, Web· archived
  • metric
    GitHub: In 2024, Python became the most popular language on GitHub
    In 2024, Python became the most popular language on GitHub
    “Python became the most popular language on GitHub”
    YouTube
    Unverified1 source· Talk
  • metric
    GitHub: In August 2025, TypeScript passed Python as the most used language on GitHub
    In August 2025, TypeScript passed Python as the most used language on GitHub
    “TypeScript passed Python as the most used language on GitHub”
    YouTube
    Unverified1 source· Talk
  • acquired
    Anthropic acquired Bun
    “last December, Anthropic acquired Bun”
    YouTube
    Unverified1 source· Talk
  • feature
    npm: Package ecosystem includes tools for authentication, payments, UI, and infrastructure
    “NPM comes with pretty much everything: authentication, payments, UI, and infrastructure”
    YouTube
    Unverified1 source· Talk
  • feature
    TypeScript: can use one schema across backend, model, and UI
    can use one schema across backend, model, and UI
    “you can use Zod as a single schema throughout your application”
    YouTube
    Unverified1 source· Talk
  • metric
    Vercel AI SDK: Downloads grew from 1.6 million to 15.1 million per week in one year, between 9 and 10 times growth
    “in just one year, it went from 1.6 million to 15.1 million downloads per week”
    YouTube
    Unverified1 source· Talk
  • feature
    Roberto Stagi: advocates building AI agents and applications in TypeScript
    advocates building AI agents and applications in TypeScript
    “it makes sense to build AI agents in TypeScript”
    YouTube
    Unverified1 source· Talk
  • feature
    Jeff Atwood: predicted that applications writable in JavaScript would eventually be written in JavaScript
    predicted that applications writable in JavaScript would eventually be written in JavaScript
    “Any application that can be written in JavaScript will eventually be written in JavaScript.”
    YouTube
    Unverified1 source· Talk

Related talks