Original Reddit post

Last week I discovered this library: https://github.com/vercel-labs/portless It creates consistent dev urls like this: http://myapp.localhost:1355/ http://worktree-name.myapp.localhost:1355/ My favorite things about it: When I’m doing work in multiple worktrees, I can tell from the URL which worktree I’m on. It errors if you try to spin up another dev server without killing the other. This prevents your agent spinning up a million servers. If you use something like playwriter to have your agent test your UI, it will just go to the url once it sees this error instead of spinning its own server up. I don’t need to remember port numbers This has been my favorite project for working with agents since: https://www.npmjs.com/package/knip Hope others find it helpful too! submitted by /u/theben9999

Originally posted by u/theben9999 on r/ClaudeCode