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.
A Song of Types and Agents
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.
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.
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.
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.
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
- foundedRoberto Stagi founded
RatelCo-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
“last December, Anthropic acquired Bun”
YouTube Unverified1 source· Talk
- featurenpm: 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
- featureTypeScript: can use one schema across backend, model, and UIcan use one schema across backend, model, and UI
“you can use Zod as a single schema throughout your application”
YouTube Unverified1 source· Talk
- metricVercel 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
- featureRoberto Stagi: advocates building AI agents and applications in TypeScriptadvocates building AI agents and applications in TypeScript
“it makes sense to build AI agents in TypeScript”
YouTube Unverified1 source· Talk
- featureJeff Atwood: predicted that applications writable in JavaScript would eventually be written in JavaScriptpredicted 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












