-
Performance
Find and fix memory leaks in my app
Hunt down the leaks that make pages slow over time and servers crash at 3am: listeners, timers, subscriptions, and unbounded growth.
Free Prompt
What This Does / How This Helps
This audits your client and server code for the classic leak patterns (orphaned listeners, uncapped caches, unclosed resources) and fixes them with teardown logic and eviction caps. Memory leaks don't show up in development because you restart constantly and test for minutes at a time. In production they announce themselves as a server that crashes every three days or a page that gets sluggish the longer a user stays on it. The server-side unbounded Map is especially common in generated code, because 'just cache it in a module-level object' is the AI's favorite performance fix.
Want to skip doing this by hand?
Fortivibe audits your app for all of the areas these prompts cover (and more).