{"slug": "why-typed-languages-win-in-the-agent-era", "title": "Why Typed Languages Win in the Agent Era", "summary": "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%.", "body_md": "**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.\n\nThat is a narrower answer than the title promises, so here is the evidence for each half.\n\n## Where typed languages are winning\n\nIn 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%.\n\nAI 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.\n\n## Why types should help\n\nThe mechanism is easy to see. Say an agent changes a lookup function so it can return `undefined` instead of throwing:\n\n``` js\ntype User = { id: string; email: string };\n\nconst users = new Map<string, User>();\n\n// The agent changes this from `User` (throws if missing) to `User | undefined`\nfunction getUser(id: string): User | undefined {\n  return users.get(id);\n}\n\nfunction sendReceipt(id: string) {\n  const user = getUser(id);\n  console.log(`Sending receipt to ${user.email}`);\n}\n```\n\nWith `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.\n\nResearch 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.\n\n## What the data does not show\n\nThat 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.\n\nOn 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.\n\nAgents 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.\n\nTreat 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.\n\n## So what do typed languages win?\n\nTwo 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.\n\nWhat 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%.\n\nIf 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.\n\n**Sources:** GitHub, [Octoverse 2026](https://github.blog/news-insights/octoverse/octoverse-commits-pushes-reach-new-highs-in-2026-as-developers-build-with-agents/) and [Why AI is pushing developers toward typed languages](https://github.blog/ai-and-ml/llms/why-ai-is-pushing-developers-toward-typed-languages); Evil Martians, [Type errors cost our coding agents under 1% of their time](https://evilmartians.com/chronicles/type-errors-cost-our-coding-agents-under-one-percent-of-their-time) (November 24, 2026); Mündler et al., [Type-Constrained Code Generation with Language Models](https://arxiv.org/abs/2504.09246).", "url": "https://wpnews.pro/news/why-typed-languages-win-in-the-agent-era", "canonical_source": "https://zyvop.com/why-typed-languages-win-in-the-agent-era-e1m1u", "published_at": "2026-11-30 10:14:48+00:00", "updated_at": "2026-11-30 10:45:10.826030+00:00", "lang": "en", "topics": ["ai-agents", "developer-tools", "ai-research"], "entities": ["GitHub", "Evil Martians", "TypeScript", "Python", "Rust", "JavaScript", "SWE-bench Multilingual", "Octoverse 2026"], "also_reported_by": [], "takeaway": "On SWE-bench Multilingual with 13 models, typed and dynamic languages both solved about 65% of tasks, and adding Sorbet or RBS to Ruby left the solve rate at 57% to 61% versus 58% for plain Ruby while consuming 20% to 28% of agent time.", "recommendation": {"advice": "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.", "playbook": "coding-agents", "playbook_url": "https://wpnews.pro/playbooks/coding-agents"}, "alternates": {"html": "https://wpnews.pro/news/why-typed-languages-win-in-the-agent-era", "markdown": "https://wpnews.pro/news/why-typed-languages-win-in-the-agent-era.md", "text": "https://wpnews.pro/news/why-typed-languages-win-in-the-agent-era.txt", "jsonld": "https://wpnews.pro/news/why-typed-languages-win-in-the-agent-era.jsonld"}}