From fd8b0174f4c9a9c11c266bea8c6c63cde63cdaf4 Mon Sep 17 00:00:00 2001 From: Nickolay Kondratyev Date: Thu, 16 Oct 2025 12:09:40 -0600 Subject: [PATCH] [README-only-change]: Add section for git worktree usage (#680) --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 07c92081..63ac9567 100644 --- a/README.md +++ b/README.md @@ -164,6 +164,7 @@ Several videos and blog posts have talked about Serena: * [Prompting Strategies](#prompting-strategies) * [Running Out of Context](#running-out-of-context) * [Serena's Logs: The Dashboard and GUI Tool](#serenas-logs-the-dashboard-and-gui-tool) + * [Serena and GIT worktrees](#serena-and-git-worktrees) - [Comparison with Other Coding Agents](#comparison-with-other-coding-agents) * [Subscription-Based Coding Agents](#subscription-based-coding-agents) * [API-Based Coding Agents](#api-based-coding-agents) @@ -723,6 +724,12 @@ In addition to viewing logs, both tools allow to shut down the Serena agent. This function is provided, because clients like Claude Desktop may fail to terminate the MCP server subprocess when they themselves are closed. +### Serena and GIT worktrees +[git-worktree](https://git-scm.com/docs/git-worktree) can be an excellent way to parallelize your work. More on this in [Anthropic: Run parallel Claude Code sessions with Git worktrees](https://docs.claude.com/en/docs/claude-code/common-workflows#run-parallel-claude-code-sessions-with-git-worktrees). + +When it comes to serena AND git-worktree AND larger projects (that take longer to index), the recommended way is to COPY your `$ORIG_PROJECT/.serena/cache` to `$GIT_WORKTREE/.serena/cache`. After you have performed pre-indexing of your project described in [Project Activation & Indexing](#project-activation--indexing) section. To avoid having to re-index per each git work tree that you create. + + ## Comparison with Other Coding Agents To our knowledge, Serena is the first fully-featured coding agent where the