Rida Al Barazi
3.3K posts

Rida Al Barazi
@rida
I build agent infrastructure and write about what goes wrong. Mostly what goes wrong.
Toronto Katılım Ekim 2007
1.7K Takip Edilen1.3K Takipçiler
Sabitlenmiş Tweet

I had to restructure my entire workspace folder to optimize it for other models. Split my tasks where 80% is done by MiniMax and GPT and the remaining 20% that’s critical is still using Opus. I’m still spending 2x the Max20 subscription in tokens but it’s a huge improvement from the 20x before.
Pro Tip: Open your workspace and .openclaw folders in Claude code and use Opus to help you do the restructuring.
English

I have full faith that @steipete is going to make GPT in OpenClaw amazing...
But the switch from Opus has been tough today.
Any other models people are liking that are worth trying? Minimax 2.7?
English

@ryancarson @DevinAI @openclaw I've been trying to get that working on my own for a while and it's really a pain if you have a complex app with integrations. How easily did it pick up your app stack (db, infra, etc..)? For example, will it be able to test 3rd party integrations with Google, Stripe, etc..?
English

This is how I’m currently running my startup with @DevinAI + @openclaw
The browser testing in Devin is mind-blowing. I was trying to duct tape and jerry-rig all this stuff together with Playwright + uploading videos to PRs and all sorts of stuff and Devin just does it all e2e. Wild.
I didn't show how I'm using @linear, which I am using for issue tracking.
I have a "land" skill that I tell Devin to use whenever all the browser testing is done and all the CI goes green and it just merges the PR
English

@rachelnabors Port conflicts are the visible symptom. The silent killer is two worktrees running migrations against the same database in parallel. Portless + per-worktree containers covers both layers.
English

If you're running more than one coding agent, you're running into localhost conflicts. Portless will fix that for you AND it works with git worktrees! github.com/vercel-labs/po…
English

@kovyrin Same. I tried to use OpenClaw to orchestrate a bunch of Claude Code and Codex sessions in separate worktrees but it was way too clunky.
English

Solid L7, working on getting to L8 over the next couple of weeks, hoping that will finally allow me to feel a little bit less behind 😅
Juri Strumpflohner@juristr
What's your AI adoption level? (according to Steve Yegge)
English

@andrewmichaelsa @meetblueberry The worktree support is the standout feature here. File-level isolation is step one though. When each worktree needs its own ports, DB, and Docker network, that's where most setups still fall apart.
English

@meetblueberry a modern IDE for product builders.
- Terminal, editor, and preview browser in one app
- Your model of choice sees your entire project, code, browser, and tools
- Full Git worktrees support built in, work on multiple branches at once
- Flow mode, Hyprland inspired tiling layouts, ambient music
Stop juggling tools.
Build and ship from one workspace with Blueberry.
English

@dgalarza The .env.local per worktree is solid for DB isolation. Where I ran into trouble was ports and Docker networks. Two worktrees both wanting port 3000, or sharing the same Redis. Ended up wrapping the whole environment in per-worktree containers.
English

WorktreeCreate hook is the answer.
It was designed for developers not using git — so it replaces the entire setup workflow. You can use it to:
- Create the worktree
- Copy .env via .worktreeinclude
- Write a .env.local with dedicated database URLs per worktree
Genuine isolation. No collisions.
English

Claude Code’s native worktree support is great. But there’s a piece of it I haven’t seen documented anywhere — and it solves a problem that’ll bite you when running parallel agents.
Watch first: youtu.be/hEE0mc-3D_c

YouTube
English

@alexandertweak @aarondfrancis The env var thing kills you silently too. Two worktrees pointing at the same DB, running migrations in parallel. I built isolated containers per worktree with dedicated tunnels for preview. Check it out at branchbox.dev
English

@aarondfrancis The only issue with this is having proper preview models, like when you do a pr with vercel you see a preview of that PR, env vars and other setup tools are hard to get right with worktrees, could only work with proper e2e in place or crazy workflows
English

This is the second time I hear about dagger this month. I gotta check it out.
I ended up building BranchBox.dev to solve the same problem. Each worktree gets its own container, ports, DB, tunnel. Right now it’s coupled to dev containers. Dagger sounds like it could be a good alternative
English

@M4XMXM That's exactly what I ended up building BranchBox for. Each worktree gets its own container, ports, DB, tunnel. The file isolation is the easy part, it's everything else that collides.
English

@rida Glad you enjoyed it Rida! Unfortunately I dont have a solution for that as I mostly do frontend & strategy work, so it hasn’t been an issue I’ve run into yet.
English

ICYMI, here's a writeup (I haz blog now) of my demo: an attempt to augment my design process with tirelessness & parallelism by leveraging multiple AI coding agents in Git worktrees 😵💫 maximin.design/blog/designing…
JohnPhamous@JohnPhamous
designing with ai demos next thursday at the vercel sf office
English

@teknopawn We hit the same .env pain. Solved it by auto-mounting dotfiles into each worktree's container. The isolation is in the runtime, not the filesystem. Keeps everything local and fast.
English

Git worktrees sound great until your .env is in .gitignore and nothing works.
Tests fail, configs are missing, you're debugging your tooling instead of building.
We built Evolve so agents run in isolated sandboxes --not fragile local worktrees.
github.com/evolving-machi…
English

@drewdil @andrewchen That M1 Pro holding up multiple agents is impressive. What are you using for the orchestration layer? I ended up building a CLI that handles worktree + container + DB + tunnel creation in one command.
English

@andrewchen it finally killed Cursor for me, just a very smart orchestration of git worktrees. I can run as many agents as my wheezing M1 Pro can handle from a single repo clone.
English

@garybasin @runaway_vol 'Shifting the problem left' resonates. For me that meant: don't try to coordinate agents on shared state. Give each one a fully isolated environment. The merge is the only coordination point.
English

@runaway_vol The agents are not reliable enough yet but if you try this you’ll find many cases of trying to batch edit files that conflict another agent’s batch edits. You can branch and merge or use worktrees or whatever but shifting the problem left seems to be optimal.
English


@MingtaKaivo @jpschroeder The merge conflict piece is real. What helped me was giving each agent its own container + DB + ports via worktrees, so they can't collide on shared state. File conflicts still happen but are way easier to resolve when the runtime environment isn't also tangled.
English

@jpschroeder worktrees + hooks is exactly my setup. the unsolved part is merge conflicts when 3 agents touch the same util file simultaneously
English

I can't be the only dev that doesn't want a GUI for my CLI...
I made dmux.ai because I didn't want to re-invent the interface. tmux is great, worktrees + hooks just work, and CLIs have been the go-to interface for nerds since before the moon landing.
English

@nearestnabors @aarondfrancis @joelhooks I automated this with BranchBox `branchbox feature start` creates the worktree, container, DB, ports, Docker network. One command. The missing piece for me was that worktree file isolation isn't enough.. agents still collide on ports and database state.
English

@aarondfrancis @joelhooks This conversation confirms my own research. I've been moving to worktrees. Haven't yet let my agents spin up their own. How are you doing that, @joelhooks ?
English

This is exactly the problem that pushed me to build BranchBox. Same pattern: worktrees are perfect for parallel agent work until the environment falls apart. We auto-isolate everything: DB, ports, Docker network, even Cloudflare tunnels. Stack-agnostic, so it works for Laravel, Rails, Node, whatever. The setup tax per worktree should be zero.
English




