Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Darkbelg's avatar

Darkbelg wrote a comment+100 XP

3mos ago

Leveraging AI for Laravel Development: Ep 17, Worktrees, Agents, Peas, and Carrots

@frosev Not exactly. You need to do some finagling.

Well it depends if you only run one docker sail at a time, no problem.

But the moment you put two Claudes to work you will have port conflicts.

I solved that by just changing the IP address of the containers and then adding a loopback in Mac. I'm still looking for better ways.

The problem with the work trees versus herd is that resources aren't shared.

So if youhave two Claudes working they ca use the same DB. there might be some conflicts with running tests since they will make the same DB which is another conflict.

But if you have two Claudes and you run sail. The command won't work because there are no containers linked or up. Unlike just running PHP artisan on herd.

It requires a larger bash script for creating worktree. And you need one to remove the worktree.

At least that's how I'm doing it currently.