---
title: "Type errors cost our coding agents under 1% of their time"
description: "Static typing does not measurably help coding agents finish more tasks."
url: "https://swe.quest/articles/type-errors-cost-our-coding-agents-under-1-of-their-time-fa7c6019d6e8a188"
canonical: "https://evilmartians.com/chronicles/type-errors-cost-our-coding-agents-under-one-percent-of-their-time"
source: "Evil Martians"
published: "2026-11-24"
difficulty: "medium"
kind: "Research"
reading_minutes: 27
tags: ["ai-coding","evals","type-systems","typescript","ruby"]
---

# Type errors cost our coding agents under 1% of their time

A post on [Evil Martians](https://swe.quest/sources/evil-martians.md), published 2026-11-24, 27 min read, Research. Original: [https://evilmartians.com/chronicles/type-errors-cost-our-coding-agents-under-one-percent-of-their-time](https://evilmartians.com/chronicles/type-errors-cost-our-coding-agents-under-one-percent-of-their-time)

## Summary

Static typing does not measurably help coding agents finish more tasks. Across SWE-bench Multilingual and Verified in ten languages, typed and dynamic languages both solve about 65% at matched patch difficulty. After relabeling 823 TypeScript/JavaScript benchmark tasks by the files their fixes actually edit, TypeScript never beat plain JavaScript. Even with Claude Code's typescript-lsp plugin plus a hook forcing its Edit tool, surfaced type errors didn't raise solve rates. In Evil Martians' own Rails and Rust runs, type errors took under 1% of agent time, and making agents run Sorbet or RBS on a Rails app left solve rates flat (57–61% vs 58%) while consuming 20–28% of agent time.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [Type systems](https://swe.quest/tags/type-systems.md) (Compilers & runtimes)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)
- [Ruby](https://swe.quest/tags/ruby.md) (Languages)

## Prerequisites

- static vs dynamic typing
- SWE-bench style benchmarks ([easy posts on Evaluation](https://swe.quest/tags/evals.md?difficulty=easy))
- coding agents ([easy posts on AI agents](https://swe.quest/tags/ai-agents.md?difficulty=easy))

## Keywords

SWE-bench Multilingual, Multi-SWE-bench, SWE-PolyBench, Claude Code, Sorbet, RBS, Steep, typescript-language-server

## Related posts

- [DevEx matters for coding agents, too](https://swe.quest/articles/devex-matters-for-coding-agents-too-3cf5bcfa910d65e5.md): incident.io · 2025-12-19 · Medium · 11 min read · Developer productivity, TypeScript, Build systems, AI for coding, Developer tools
  incident.io cut its typical lint-plus-compile feedback loop from over 90 seconds to under 10, arguing that fast toolchains matter even more when AI coding agents generate code faster than slow tools can validate it.
- [Adding the ESLint Tool to an AI Assistant: Improving Recommendations for JS/TS Projects](https://swe.quest/articles/adding-the-eslint-tool-to-an-ai-assistant-improving-recommendations-for-js-ts-d83ca2ba37ac984c.md): Docker · 2024-08-12 · Medium · 7 min read · AI for coding, Static analysis, JavaScript, TypeScript, Containers
  An AI assistant gets better at linting JavaScript and TypeScript projects when it is given ESLint tooling instead of relying on the LLM's built-in knowledge.
- [CoderForge-Preview: SOTA open dataset for training efficient coding agents](https://swe.quest/articles/coderforge-preview-sota-open-dataset-for-training-efficient-coding-agents-83e1f3c7a7bdb67a.md): Together AI · 2026-02-25 · Hard · 14 min read · Model training, AI for coding, AI agents, Evaluation, LLMs
  CoderForge-Preview is an open dataset of 258K test-verified coding agent trajectories (155K passing) covering 51K tasks across 1,655 repositories from R2E-Gym, SWE-Smith and SWE-Rebench.
- [Why coding agents fail in large codebases (and what to do about it)](https://swe.quest/articles/why-coding-agents-fail-in-large-codebases-and-what-to-do-about-it-67302cc99ae40bda.md): Sourcegraph · 2026-05-08 · Medium · 8 min read · AI for coding, AI agents, Search, Evaluation, RAG & retrieval
  Across 1,281 scored agent runs on 40+ large open-source repos (CodeScaleBench), coding agents fail in five repeatable ways: getting lost in exploration, picking the wrong file or symbol, partial completion, tool thrashing, and context overflow.
- [Testing AI coding agents (2025): Cursor vs. Claude, OpenAI, and Gemini](https://swe.quest/articles/testing-ai-coding-agents-2025-cursor-vs-claude-openai-and-gemini-4ba683d74eb76f3f.md): Render · 2025-08-12 · Medium · 16 min read · AI for coding, AI agents, Developer tools, Evaluation
  Four AI coding agents (Cursor with Claude Sonnet 4, Claude Code, Gemini CLI and OpenAI Codex) were compared on a one-prompt Next.js URL-shortener build with Postgres, Docker and Render MCP deployment, plus real tasks in a large Go API monorepo (Kubernetes pod leader election with go-quartz, NATS retry logic) and an Astro/Keystatic website.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
