๐Ÿฟ Your AI keeps killing your dev server, here's the fix


Hey Reader,

Confession: i've lost count of how many times an agent has killed my running dev server and started a new one on a different port. it's the single most annoying thing about coding with AI right now.

Turns out Next.js 16.2 just fixed it so dig into the snack below.

let's dig in ๐Ÿฟ

PRESENTED BY SUPABASE

Supabase is the backend for your app: it gives you a database plus the โ€œboring but necessaryโ€ stuff around it (user sign-in, file storage, background functions, and real-time updates) in one place.

Itโ€™s built on Postgres (a widely used database), so your data is portable and youโ€™re not locked into a proprietary system.

For founders and PMs building with AI, itโ€™s the fastest way to go from prototype to a real, working app, all without stitching together five different services or learning a bunch of infrastructure first.

๐Ÿฟ Our Weekly Snack: Ever had an Agent start a New Dev Server when itโ€™s already running?

Next.js 16.2 stops this with one quick change.
โ€‹
โ€‹๐Ÿ’ก Why it happensโ€‹
Your AI doesn't know the server is already running. So it tries to start a new one and kills the existing process
โ€‹
โ€‹๐Ÿง  The Fixโ€‹
โ€‹โ†’ Next.js 16.2 creates a .next/dev/lock file automatically
โ€‹โ†’ It locks the port
โ€‹โ†’ Your agent sees the lock and leaves the server alone
โ€‹
No more duplicate processes.
No more killed dev servers.
Aka NEVER EVER try to start a new dev server when one is already running.

๐Ÿš€ The Takeaway

One tiny lock file solves one of the most annoying AI agent behaviours when working with Next.js.

--

๐ŸŽ If you're interested, you can download this free cheatsheet covering 29 common mistakes just like this one in React and Next.js.

๐Ÿš€ Latest Frontend News

LIBRARY UPDATES

TanStack AI now speaks AG-UI client to server.

โ€‹Pass a Zod schema to useChat and get a typed `partial` and `final` for free using TanStack AI.

โ€‹Tailwind CSS v4.3 is out with first-party scrollbar styling, even more logical property utilities, new zoom and tab-size utilities, better @variant support and all the v4.2 stuff we shipped while forgetting blogs existed.
โ€‹
โ€‹ AI

โ€‹Composer 2.5 is now the most-chosen model in Cursor

How to Build a Team of AI Agents That Actually Work Together (Full Course)

Just tell your agent: "publish to here.now and get a URL back in 5 seconds.

โ€‹Modern Web Guidance by Google is an expert-vetted skills for web development, it ensures your agent/coding harness doesnโ€™t default to older and out of date patterns to build sites.

YOUTUBE VIDEOS

โ€‹Build a Production-ready Tiktok Feed like a Senior Engineer

โ€‹Stop sleeping on Open Coding Models (try these 4 models that are great)

โ€‹
โ€‹ SECURITY VULNERABILITIES

โ€‹Next.js just got it's worst vulnerabiities, make sure to upgrade if you haven't already.


๐Ÿค” What did you think of the Newsletter?

โ€‹๐Ÿ”ฅ Love it!โ€‹

โ€‹๐Ÿ˜ Itโ€™s okayโ€‹

โ€‹๐Ÿ‘Ž Not goodโ€‹

If youโ€™ve published a blog post or shipped something, feel free to reply to this email and it comes straight to my inbox. Iโ€™m always looking for great community work to consider featuring.

All past newsletters can be found here. You can email me at me@kulkarniankita.com to advertise/sponsor the newsletter.

For those curious, I write all my emails using Convertkit.

See you next week!

Ankita Kulkarni

Join 9200+ subscribers reading by weekly personalized Newsletter that helps developers level up their skills through weekly Frontend and Leadership Snacks. You get a deep dive into a Tech topic, Actionable tips to excel in your career and a toolbox!

Read more from Ankita Kulkarni
cut ai bill in half

Hey Reader, I checked my Claude usage last week and found out Iโ€™d been paying max-effort prices to rename variables. Three small changes later, my bill is half what it was. This week: the 3 fixes that saved me the most, a Next.js patch you need today, and Opus 5.5 making motion graphics by writing code. One small favour first: Iโ€™m building my AI course and need your help. It will only take 60 seconds. โ†’ Click here for feedback PRESENTED BY SONARQUBE We all hate security scanners that flood...

Hey Reader, I've been heads down focusing on crafting my AI course. I'm still in early stages and need your help. Can you fill this quick survey that should take less than a minute and give me your feedback? โ†’ Click here for feedback PRESENTED BY SONARQUBE We all hate security scanners that flood our PRs with false positives. It's the quickest way to get a dev to ignore alerts altogether. SonarQube Hunter Agent is different. Itโ€™s an AI-powered agent that hunts for business logic flaws and...

Hey Reader, The biggest challenge with AI right now isn't building from scratch or brainstorming, it's great at both. It's building real intuition for how things should work. Take how TikTok and YouTube handle video. If they served the same file to every device, tablet, mobile, desktop, even a slow 3G connection, users would drop off fast. So how would you solve that? Don't worry, let me show you. Here's how to architect for exactly this challenge. PRESENTED BY IMAGEKIT Don't throw raw MP4s...