In this categoryAutomation · 38
- How to Self-Host n8n with Docker for AI WorkflowsStart
- How to Extract Structured Data from PDFs with n8n
- How to Add OpenAI Credentials to n8n
- How to Connect Anthropic Claude as the Model in n8n Workflows
- How to Build an AI Messaging / Chatbot Automation (No Code)
- How to Build an AI Agent with Tools in n8n
- How to Build an n8n Workflow That Summarizes New Emails with AI
- How to Build a RAG Chatbot Over Your Docs in n8n
- How to Auto-Classify and Route Support Tickets with AI in n8n
- How to Schedule Daily AI Content Generation in n8n
- How to Extract Structured Data from PDFs with AI in n8n
- How to Add Error Handling and Retries to n8n AI Workflows
- How to Transcribe and Summarize Audio with AI in n8n
- How to Summarize Incoming Emails with AI in Make.com
- How to Auto-Classify Support Tickets with AI in Make.com
- How to Turn RSS Headlines into AI Blog Drafts in Make.com
- How to Build an AI Telegram Chatbot in Make.com
- How to Answer Questions from Your Docs with AI in Make.com
- How to Auto-Transcribe Audio Files with Whisper in Make.com
- How to Extract Invoice Data from PDFs with AI Vision in Make.com
- How to Generate Images from a Spreadsheet with AI in Make.com
- How to Run AI Sentiment Analysis on New Reviews in Make.com
- How to Auto-Translate Content into Multiple Languages in Make.com
- How to Handle AI Errors and Rate Limits in Make.com Scenarios
- How to Build Your First Zap with an AI Step
- How to Use Your Own OpenAI API Key in Zapier
- How to Auto-Summarize Form Submissions and Post Them to Slack
- How to Auto-Generate Social Media Captions From New Blog Posts
- How to Extract Structured Data From Emails Using a Zapier AI Step
- How to Call the Claude API From Zapier Using Webhooks
- How to Build a Simple AI Chatbot with Zapier Interfaces and Tables
- How to Build a Multi-Step AI Research Agent in Zapier
- How to Auto-Categorize and Route Support Tickets with AI and Paths
- How to Cut AI Task Usage in Zapier With Filters and Formatter
- How to Debug AI Steps in Zapier Using Zap History
How to Run Two Agents in Parallel with Git Worktrees
Use git worktrees to give each agent its own checked-out folder so two tasks run at once without stepping on each other.
Running two agents in the same folder is a recipe for conflicts: they edit the same files and overwrite each other's work. Git worktrees solve this by giving each branch its own working directory backed by one shared repo. Point an agent at each folder and they run in parallel, cleanly. This guide sets that up.
What you need
- A git repository
- Two independent tasks that touch different areas
- About 12 minutes
Step 1: Create a worktree per task
From the repo, add a worktree for each task. Each one is a real folder on its own branch, sharing history with the main checkout.
Step 2: Launch an agent in each folder
Open a terminal in each worktree and start an agent there. Because the directories are separate, their edits never collide.
# terminal 1
cd ../app-feature-a && claude
# terminal 2
cd ../app-feature-b && claudeStep 3: Keep tasks non-overlapping
Parallelism pays off only when the tasks touch different code. Give each agent a scope that does not overlap the other so the eventual merge is trivial.
Step 4: Merge and clean up
When both finish, merge each branch as usual, then remove the worktrees so they do not linger.
git checkout main
git merge feature-a
git merge feature-b
git worktree remove ../app-feature-a
git worktree remove ../app-feature-bResult: two agents make progress at the same time in isolated folders, and the work merges back cleanly because nothing overlapped.
Watch related tutorials
32:08
28:30
65:00
138:00
22:10
24:45New guides in your inbox
Fresh step-by-step how-to guides as we publish them. One email a week, no more.