Remix.run Logo
bingemaker 12 hours ago

I have a question: How do you manage web servers running parallely for 10 coding agents?

avipeltz 12 hours ago | parent | next [-]

Thanks for the question. For most traditional web apps using frameworks like Next.js, Vite, etc they'll automatically try the next port if its in use (3000-> 3001 -> 3003). We give a visualization of which ports are running from each worktree so you can see at a glance whats where.

For more complex setups if your app has hardcoded ports or multiple services that need coordination you can use setup/teardown scripts to manage this. Either dynamically assigning ports or killing the previous server before starting a new one (you can also kill the previous sever manually).

In practice most users aren't running all 10 agent's dev servers at once (yet), you're usually actively previewing 1-2 at at time while the other are working (writing code, running tests, reviewing, etc). But please give it a try and let me know if you encounter anything you want us to improve :)

normie3000 12 hours ago | parent | prev [-]

Run them on different ports?

saddlepaddle 10 hours ago | parent [-]

Yep, for now that's how we do it! We're looking into remote sandboxes and tunneling soon though :)