r/coolgithubprojects • u/rodrigues_92 • 23h ago
I open-sourced the skill I use to run several Claude Code chats on one repo without them stepping on each other
I run 5 to 10 AI coding chats on the same repository at once. Without rules they collide: one switches branches under another, two green PRs break main when merged back to back, and review by the same model misses the same things.
So I wrote it down as an Agent Skill with small Node scripts (no dependencies):
- each chat gets its own git worktree, outside the main checkout
- a machine-wide queue limits how many test suites run at once
- PR through gh; critical paths get reviewed by a different model (Codex or Gemini, Claude as fallback), and the reviewer can fix, not only approve
- merges go one at a time, only with the branch up to date with main
- deploy and health check after merge, then cleanup
On first run it detects your setup and asks a few questions (who reviews, where it deploys, how many chats at once).
Install: npx skills add mestrecs/skills
Repo: https://github.com/mestrecs/skills
It works on Windows, macOS and Linux. Feedback welcome, especially from people running Codex or Gemini CLI.
7
Upvotes
1
u/PhroznGaming 10h ago
The native skill does this well on its own
1
u/jM2me 5h ago
This has been something I try, fail, and always fallback to having multiple agents do a research and supporting work in parallel with the actual implementation agent. The whole thing is still limited to just a single implementation agent.
I tried Matt Pocock skills and I am still doing something wrong because multiple implementation agents in their own worktrees still step on each other and each of their own tests.
So I’ll check this out, why not. Thank you for sharing