Frontend CI under 2 minutes: the full playbook plus the agent prompt that did it
AccBalanced · x · 2026-11-16
Developer pontusab shares how he got frontend CI under 2 minutes: swap tsc for bun check, replace ESLint/Prettier with oxlint/oxfmt, standardize on bun, run lint/typecheck/build/tests in parallel, shard tests by measured duration, only run diff-reachable tests per PR, seed caches from main to hit 95%+ cache hits, and cancel superseded runs.
The attached image is the full agent prompt he used: audit the last 150 runs, split each job into waiting/setup/running buckets at p50/p95 and fix the biggest bucket first, then set explicit time budgets (waiting <10s, setup <30s, lint <5s, tests <60s per shard). Two rules outrank speed: the full suite still runs in a merge queue before anything lands, and you never get faster by hiding failures—no retries, wider timeouts, or skipped tests. The prompt is directly reusable for your own pipeline.
More from coding & agent
- Qwen4-Max debuts #6 in Code Arena WebDev, makes Alibaba the top Chinese lab at #5 overall — arena · 2026-11-16
- LMArena launches Agent Arena leaderboard for comparing AI agents — arena · 2026-11-16
- New Maggie talk: design engineers are best positioned to prototype the future with LLMs — manosaie · 2026-11-16
- Automate finding viral Douyin videos with one prompt via a Skill — songguoxiansen · 2026-11-16
- Turn Gemini Ultra's $100 credit into a dev VPS: 4-core 16GB box via Orca — mazzaTalk · 2026-11-16
- Dev ships AI jam game built with Claude Code, Tripo, GPT Image and ElevenLabs — chongdashu · 2026-11-16