TypeScript Performance Improvements
Last updated 2026-07-31What's new
- They built a programming language (a set of rules for giving instructions to computers) that minimizes errors and can't be easily changed later, fighting what they call "slop" (messy or unreadable code).
- To maintain standards without restricting engineers, they created an "architecture.md" file (a simple guide) that all AI tools (like Claude or Codex, which help write code) can understand.
- They developed a design tool (like a mix of Notion and GitHub) with a Slack (a messaging app) integration to encourage team engagement with design documents, ensuring high-quality writing.
- They built a tool to visualize their code's structure (dependency graph) and enforce rules, helping them maintain a stable code base and architecture (the way different parts of code work together).
- AI tools like Open Claw (a software development tool) are using "loops" (automated processes that repeat and improve) to write, review, and fix code, but this can lead to unmanageable amounts of code.
- Control theory (a way to manage and adjust systems) can help manage codebases by measuring current state, setting desired state, and making incremental changes.
- Real-world software development with AI tools requires careful design of loops and control systems to ensure code quality and manageability.
- While AI tools can speed up development, they also require significant resources and careful engineering to avoid costly mistakes.
- Opus 5, a new AI model from Anthropic, outperforms its predecessor Fable 5 in benchmarks and costs less, making it a strong contender for enterprise users and those needing advanced reasoning, coding, and long-term task management.
- Opus 5 is notable for its affordability, with lower input and output costs compared to Fable 5, and it excels in tasks like code review, bug finding, and visual analysis of documents.
- A new Reddit bot summarizes discussions about Opus 5, highlighting user excitement and skepticism, with many questioning the role of Fable 5 now that Opus 5 is available.
- Harbor Build, an upcoming feature in Harbor (a tool for building SEO and CRM-ready websites), will integrate with Opus 5, offering advanced AI capabilities for website creation and management.
- Code is becoming a primary way to create and communicate content, like videos, websites, or product updates, using tools like React and Remotion (a video creation tool using code).
- In the past, creating content required hiring experts or expensive software engineers, but now AI tools like Claude (an AI assistant) can help generate high-quality content quickly and cheaply.
- With AI, people with an engineering mindset can create various assets, such as videos, documentation, or websites, by understanding and using these AI systems effectively.
- Flu is a new, open-source tool (created by the team behind Astro) that lets you run thousands of AI agents (AI programs that can do tasks) at once, almost for free, by using a special in-memory sandbox (a safe, isolated space where the agents can work).
- Flu provides a "harness" (a set of tools and rules) that turns a basic AI model into a useful agent, and it can run these agents automatically, without needing a human to guide them.
- To use Flu, you install two packages, add an API key, and write a few lines of code to define your agent, then you can run it on different platforms like Node or Cloudflare.
- Flu's clever trick is that it skips the usual step of booting up a separate machine for each agent, which makes running many agents much cheaper, but the first time you use a new skill (a specific task for the agent), it will fail on purpose as a security measure.
Key points
What it is
- TypeScript 7 is a major update to the TypeScript programming language, making it up to 13 times faster by rewriting the compiler in Go (a language optimized for speed).
- The compiler is the program that checks your code for errors, and this update makes it run directly on your computer's hardware for faster feedback.
- TypeScript is a popular programming language, especially for AI coding agents (programs that write code for you), due to its strong typing support (rules that define what kind of data a variable can hold).
How to use it
- Upgrade to TypeScript 7 to get the performance improvements, but first test it in your development environment before deploying it to production (where your live website or app runs).
- Eliminate `any` types (a type that disables all checking) systematically from your codebase to maintain the benefits of type checking and avoid hidden bugs.
- Give AI coding agents a single `execute` tool that runs arbitrary TypeScript code, including calling backend APIs (a way for your app to talk to a server), to simplify their decision-making process.
Watch out for
- Don't assume that slow performance is due to your code; the old TypeScript compiler was the bottleneck in large projects.
- Avoid giving AI coding agents too many tools, as this can negatively impact their performance; instead, provide them with a single `execute` tool.
- Ensure that your project passes all TypeScript tests with zero errors before deploying TypeScript 7 to production.
Tools named
- TypeScript (a programming language with strong typing support), Go (a language optimized for speed), Visual Studio Code (a popular code editor), Canva (a graphic design platform), Sentry (a tool for monitoring and fixing errors in your code), n8n (a drag-and-drop tool for connecting apps)
Lesson 1: What is TypeScript Performance Improvements and why it matters
TypeScript just got 10 times faster. The compiler (the program that checks your code for errors) was rewritten from the ground up in Go, a language built for speed. The old compiler was itself written in TypeScript and ran on JavaScript, so every time you checked your code, the engine that checks your types was being interpreted line by line. In a big TypeScript project, the slowest part wasn't your code—it was waiting for the compiler to finish type checking. TypeScript 7 changes that with a native port (a version built to run directly on your computer's hardware). Benchmarks show a huge jump: one project went from 58 seconds of checking down to under five seconds.
This matters for AI development because AI coding agents (programs that write code for you) benefit from fast feedback. When an agent generates a suggestion, you want to see if it compiles immediately. The language is already a top choice for agentic coding because its typing support (rules that define what kind of data a variable can hold) helps the agent avoid misusing data types. But the old compiler was a bottleneck. Now, with the speed improvement, agents can iterate faster—generating code, checking it, and fixing errors in seconds instead of minutes.
Sources
- 2026-07-10 — TypeScript got 10x faster and here's why!
- 2026-05-27 — Why Rust is the Ideal Language for Vibe-Coding Daniel Szoke, Sentry
- 2026-07-08 — Teaching Coding Agents to do Spreadsheets - Nuno Campos, Witan Labs
- 2026-03-12 — Build & Sell with Claude Code (10+ Hour Course)
- 2026-03-03 — The One Skill AI Can't Replace -- Are You Developing It
- 2026-02-20 — The EASIEST Way to Host Your Claude Code Agents
- 2026-05-07 — Vibe Engineering Effect Apps Michael Arnaldi, Effectful
- 2026-05-27 — The AI Skill I Rely On Daily Priscila Andre de Oliveira, Sentry
- 2025-11-24 — Is Claude Opus 4.5 the END of Human Coding Jobs
Lesson 2: How to use TypeScript Performance Improvements: step-by-step
To get TypeScript performance improvements today, upgrade to TypeScript 7. The old compiler was written in TypeScript running on JavaScript, so every build interpreted the type-checking engine line by line—like reading a recipe aloud from the beginning each time. TypeScript 7 is a native port (rewritten in Go). It’s the same language and same rules, but running on a brand new engine.
The speed gain is dramatic. In the Visual Studio Code code base, opening a file with an error used to take about 17.5 seconds before the red underline appeared. In TypeScript 7, it’s under 1.3 seconds—over 13 times faster. Canva measured a full build dropping from 58 seconds to under 5. Memory usage also dropped. If you hand more CPU cores to the checker, Visual Studio Code jumps from 12 times faster to almost 17 times faster. Same code, same type errors caught.
The real question is whether TypeScript 7 is a clean drop-in or if it quietly breaks your existing setup. To test, upgrade in development first, then push to production. You should also ensure your project passes TypeScript tests with zero errors before deploying. If you use agent tooling, you can create a TypeScript type definitions file (a file describing your data shapes) and include it in the prompt to help AI agents work with your code. For simple execution, you can give an agent a single tool called “execute” that runs arbitrary TypeScript code.
Sources
- 2026-07-10 — TypeScript got 10x faster and here's why!
- 2026-03-12 — Build & Sell with Claude Code (10+ Hour Course)
- 2026-02-20 — The EASIEST Way to Host Your Claude Code Agents
- 2026-07-08 — Teaching Coding Agents to do Spreadsheets - Nuno Campos, Witan Labs
- 2026-07-08 — Building an ACP-Compatible Agent Live Bennet Fenner, Zed
- 2026-05-14 — Make your own event-sourced agent harness using stream processors Jonas Templestein, Iterate
- 2026-05-04 — DeepSeek V4 + Claude Code BEST AI Coder!
- 2026-05-07 — Vibe Engineering Effect Apps Michael Arnaldi, Effectful
- 2026-05-11 — How to Build Mobile Apps with Claude Code Full Course (2026)
Lesson 3: Best practices and pitfalls
# TypeScript Performance: Pitfalls, Mistakes, and Best Practices
Speed improvements in TypeScript come from its new native port (rewritten in Go), which made the entire compiler up to 13 times faster. The old compiler was written in TypeScript running on JavaScript, meaning every build required interpreting the type-checking engine line by line. The new TypeScript 7 drops full build times from 58 seconds to under five in real-world tests at companies like Canva, and editor error display drops from 17.5 seconds to under 1.3.
The biggest pitfall is treating performance as purely your code's fault. Waiting for TSC (the TypeScript compiler) to finish type checking was historically the slowest part of large projects, not your runtime logic. A common mistake is ignoring the editor experience — the delay before red underlines appear wastes hours daily. Best practice: upgrade to the native port immediately for massive speed gains, but verify it's a clean drop-in for your setup.
Another mistake is leaving `any` types (a type that disables all checking) scattered through your codebase. Sentry devoted an entire quarter to removing all `any` types and todos, proving that quality still matters even with faster tooling. Best practice: eliminate `any` types systematically — they defeat the purpose of type checking and create hidden bugs.
Avoid giving AI coding agents too many tools. Research shows reducing tool access improves results significantly. One effective pattern is giving agents a single `execute` call that runs arbitrary TypeScript code, including calling backend APIs. This simplifies the agent's decision space while maintaining full power. Finally, always apply performance improvements consistently across development and production environments to avoid discrepancies between your local experience and deployed behavior.
Sources
- 2026-07-10 — TypeScript got 10x faster and here's why!
- 2026-03-12 — Build & Sell with Claude Code (10+ Hour Course)
- 2026-02-20 — The EASIEST Way to Host Your Claude Code Agents
- 2026-07-08 — Teaching Coding Agents to do Spreadsheets - Nuno Campos, Witan Labs
- 2026-05-11 — How to Build Mobile Apps with Claude Code Full Course (2026)
- 2026-05-27 — The AI Skill I Rely On Daily Priscila Andre de Oliveira, Sentry
- 2026-07-08 — Building an ACP-Compatible Agent Live Bennet Fenner, Zed
- 2026-05-14 — Make your own event-sourced agent harness using stream processors Jonas Templestein, Iterate
- 2026-05-07 — Vibe Engineering Effect Apps Michael Arnaldi, Effectful