🍿 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?

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
View Transitions in Next.js

Hey Reader, I'm working on a new course on AI and I know there are a million courses out there but honestly, I'd like to work on something that can help you ship things. However, I need your help. Can you please answer what type of a course on AI would you want me to work on? Click here to reply ↗ Anyway, let's get into this week's newsletter. 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...

Two code snippets contrasting the placement of `redirect()` in a Next.js function, highlighting functional differences and best practices.

Hey Reader, Last week, I gave a talk at React Paris about Building your own AI minion, basically an AI Agent Toolkit for modern apps. I show my workflow and how I have automated a lot. The room was full, the energy was electric ⚡, and it turned into one of my favourite talks I’ve given. You can 🎥 watch the video here and the slides are here. 🍿 Our Weekly Snack: Stop calling "redirect()" inside a try/catch block in Next.js Stop calling "redirect()" inside a try/catch block in Next.js 💡 Here's...

A terminal interface displays commands for a tool called next-browser, designed for AI agents to analyze and monitor Next.js applications.

Hey Reader, This week, Next.js 16.2 gave AI agents something they never had "a browser". Your agent can now see your app, find the problem, and fix it without asking you. This along with GPT-5.4 mini & nano (2 small models), TanStack Start going 5x faster, why you should ban useEffect, and more. Let's dive in. 🍿 Our Weekly Snack: Your AI agent can finally see what your users see (Next.js 16.2 is here) Next.js 16.2 dropped yesterday (deep dive here) and it just gave AI agents a browser. It's...