Tech News
← Home  ·  All topics

Worktree

2 GoKawiil briefs on this topic

Claude Code adds built-in flags to auto-create tmux sessions for coding agents

Recent versions of Claude Code support a `claude --worktree --tmux` command that automatically creates both a git worktree and a tmux session for an AI coding agent, rather than requiring developers to wire this up manually. The guide explains that tmux's persistence, multi-session management, and external scriptability (via send-keys and capture-pane) are what make it a popular backbone for running and orchestrating multiple coding agents.

Git worktree and submodule interaction still forces manual --force after 11 years

A developer examining Git's command-line safety flags found that removing or moving a git worktree containing submodules requires the --force flag, a restriction dating back to git worktree's 2015 introduction. The analysis traces how git worktree add had to be patched to ignore submodule.recurse to avoid corrupting empty submodule paths, and argues that git submodules function as a de facto package manager, with the gitlink SHA acting as a lockfile entry and .gitmodules as the manifest.