cd /news/ai-agents/why-typed-languages-win-in-the-agent… · home › topics › ai-agents › article
[ARTICLE · art-178514] src=zyvop.com ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Why Typed Languages Win in the Agent Era

Typed languages are winning adoption in the agent era but not agent performance, according to a November 24, 2026 analysis by Rails consultancy Evil Martians of public benchmarks. On SWE-bench Multilingual, with 13 models and the same agent, typed and dynamic languages both solved about 65% of tasks at the same difficulty, and TypeScript did not beat plain JavaScript in any of three benchmarks; agents ran tsc in just 1 of 10 TypeScript runs. GitHub's Octoverse 2026 report separately found more than 40% of pull requests in September started with an agent's first draft, up from 17% in March, with TypeScript first by contributors and Rust growing fastest at 162%.

recommendation

Don't assume a type checker improves agent solve rates: agents ran tsc in only 1 of 10 TypeScript runs and often silenced it with casts, so rely on hidden tests and review rather than compiler output alone.

more in playbook: Working with AI coding agents
by read4 min views8 publishedNov 30, 2026
Why Typed Languages Win in the Agent Era
Image: Zyvop (auto-discovered)

Short answer: Typed languages are winning on adoption, and agents are plausibly part of the reason. They are not winning on agent performance: in public benchmarks, typed and dynamic languages solve about the same share of tasks. What types do win is cheap, mechanical checking of code nobody on your team wrote.

That is a narrower answer than the title promises, so here is the evidence for each half.

Where typed languages are winning #

In March, 17% of pull requests on GitHub started with an agent's first draft. By September it was more than 40%, or 110 million pull requests in a single month. In the same Octoverse 2026 report, TypeScript is first by contributors, ahead of Python and JavaScript, and Rust grew fastest at 162%, with TypeScript at 134% and Python at 118%.

AI also shows up most in those languages: TypeScript (44.1%), Python (41.1%) and Rust (40.4%) lead the share of merged pull requests with detected AI involvement, while Java is lowest at 21.2%. Among repositories created in 2026, TypeScript was the main language in 35% of those with an agent signal and 24% of those without. GitHub reads this as agent users leaning toward languages whose output is easier to verify. It is a suggestion, and GitHub says its agent signal is a floor.

Why types should help #

The mechanism is easy to see. Say an agent changes a lookup function so it can return undefined instead of throwing:

type User = { id: string; email: string };

const users = new Map<string, User>();

// The agent changes this from `User` (throws if missing) to `User | undefined`
function getUser(id: string): User | undefined {
  return users.get(id);
}

function sendReceipt(id: string) {
  const user = getUser(id);
  console.log(`Sending receipt to ${user.email}`);
}

With strict on, the build fails with 'user' is possibly 'undefined', and it flags every other caller that relied on the old behavior. Rust goes further: in safe code, ownership and borrowing rules rule out use-after-free bugs and data races at compile time.

Research agrees about where the errors land. In a 2025 study of open-weight models writing TypeScript, 94% of compile errors were type-check failures, a figure GitHub's own explainer on typed languages quotes. The same paper found that constraining generation with the type checker cut compile errors by more than half.

What the data does not show #

That 94% tells you which errors break a typed build. It does not tell you whether agents finish more work. Evil Martians, a Rails consultancy, tested that directly in a November 24, 2026 analysis of public benchmarks, and found no measurable gain from types.

On SWE-bench Multilingual, with 13 models and the same agent, typed and dynamic languages both solved about 65% of tasks at the same difficulty. The spread inside the typed group (Rust 72%, Go 53%) was bigger than the gap between the groups. TypeScript did not beat plain JavaScript in any of three benchmarks once tasks were labeled by the files each fix edited.

Agents also barely used the checker. They ran tsc in 1 of 10 TypeScript runs. In Ruby runs on one Rails app, adding Sorbet or RBS left the solve rate at 57% to 61%, against 58% for plain Ruby, while the type tools took 20% to 28% of agent time. Told to type-check, agents did, then often quieted the checker with casts or untyped signatures, and the checker caught no bug the tests had missed.

Treat this as strong but not final. The benchmark agents had only a bash shell and no language server, the Ruby runs were small, and the authors sell benchmarking, though they publish their data and scripts. The analysis also measures whether agents pass hidden tests, not how much human review effort types save.

So what do typed languages win? #

Two things. They win adoption, because TypeScript and Rust are growing fastest and agents show up most in them. And they win cheap checking: a compiler tells you in seconds whether a change fits the rest of the code, whoever wrote it.

What they have not shown is that agents finish more tasks. In the Ruby and Rust runs, verifying work took 30% to 55% of agent time and reading project code 14% to 44%, while fixing type or compiler errors took under 4%.

If you already use TypeScript, nothing here says to leave. If you use Python or JavaScript, nothing here says to migrate for the agents' sake. Either way, keep a fast test suite as the gate, and if you use types, turn on strict and block any, @ts-ignore and type assertions so an agent cannot silence the checker.

Sources: GitHub, Octoverse 2026 and Why AI is pushing developers toward typed languages; Evil Martians, Type errors cost our coding agents under 1% of their time (November 24, 2026); Mündler et al., Type-Constrained Code Generation with Language Models.

── more in #ai-agents 4 stories · sorted by recency
── more on @github 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/why-typed-languages-…] indexed:0 read:4min 2026-11-30 · —