Ajanlar ve Orkestrasyon İleri
Worktree'lerle Çoklu Ajan
Dosya çakışmalarını önlemek için izole git worktree'lerde paralel Claude oturumları çalıştırın
Komut
"color:#9CA3AF;font-style:italic"># Create worktree and run Claude in tmux $ "color:#7C5CFC">claude "color:#d97757">--worktree feature-auth "color:#d97757">--tmux "color:#9CA3AF;font-style:italic"># In another terminal: $ "color:#7C5CFC">claude "color:#d97757">--worktree feature-api "color:#d97757">--tmux
Yanıt
{
"result": "Created src/api/health.ts with GET /health endpoint...",
"total_cost_usd": 0.089,
"session_id": "a4e71c3f-..."
} Ayrıştırma Kodu
059669">">// Each worktree is a separate checkout 059669">">// Sessions 059669">">in different worktrees can't conflict on file writes // Share the same .git directory (git ops can still conflict)
Tuzaklar
! Her worktree ayrı bir checkout'tur — oturumlar arasında dosya çakışması olmaz
! Claude oturumları iç içe geçirilemez — CLAUDECODE ortam değişkeni Claude içinden Claude başlatmayı engeller