Tagged articles
2 articles
Page 1 of 1
James' Growth Diary
James' Growth Diary
Jun 9, 2026 · Backend Development

The 12 ms Secret: How Claude Code Optimizes CLI Startup Performance

This article dissects Claude Code’s 12 ms --version response and its 1.1 MB lazy‑loaded footprint, explaining a four‑layer startup chain that uses fast‑path handling, parallel prefetch, selective lazy imports, memoized global initialization, and compile‑time dead‑code elimination to achieve near‑instant CLI launch.

BunCLILazy Loading
0 likes · 15 min read
The 12 ms Secret: How Claude Code Optimizes CLI Startup Performance
James' Growth Diary
James' Growth Diary
Apr 26, 2026 · Backend Development

Fast Path and Parallel Prefetch: The Secret to Sub‑Second CLI Startup

The article dissects Claude Code's sub‑second startup by explaining how a beta header enables Fast Mode, how parallel prefetch of MDM configuration and macOS Keychain is orchestrated with Promise.all in a preAction hook, and how multi‑layer gating and a cooldown mechanism ensure safe, recoverable performance gains.

CLICooldownNode.js
0 likes · 16 min read
Fast Path and Parallel Prefetch: The Secret to Sub‑Second CLI Startup