The Best Fluffy Pancakes recipe you will fall in love with. Full of tips and tricks to help you make the best pancakes.
CHEAPUNO guide
How to run multi-agent coding teams with free models and git worktrees
Use isolated git worktrees for each agent to prevent code conflicts and keep free open-weight models running in parallel.
Cover

Photo: StockSnap (CC0)
What you are probably seeing
Your local logs show agents overwriting files and failing to finish tasks because they are writing to the same directory simultaneously.
You see your subscription costs rising or your free tier hitting rate limits when trying to run more than one agent at a time.
Why it happens
Agents share the same working directory by default, so concurrent writes cause race conditions and corrupted state that break the next step.
Paid APIs throttle parallel requests for free tiers, forcing you to serialize tasks or pay extra to keep multiple agents active at once.
What changed recently
Step by step
1. Create a separate git worktree for each agent process to isolate their file systems and prevent cross-contamination of code changes.
2. Configure your environment to use local open-weight models instead of remote paid APIs to eliminate subscription fees and rate limit issues.
3. Set up a simple queue or loop that assigns one task per worktree and waits for that agent to finish before starting the next batch.
4. Add a script that merges completed worktree branches back into the main branch only after unit tests pass to ensure code quality.
5. Monitor disk usage and clean up empty worktrees after merging to keep your project directory manageable over time.
Ways to go further
Affiliate links: CHEAPUNO may earn a commission if you buy through them, at no extra cost to you.
Other problems readers raise
Gemini 3.8 Flash vs Claude: Accuracy vs Speed
Why does Claude’s Skill Creator ask for input?
Why does Docker Agent break on large outputs over 10k characters?
Can I run Codex review prompts on Gemini or Claude?
How to replace SaaS with local AI agents on low-cost hardware?