Get 60% OFF Pro! Ends In
Days
Hours
Minutes
Seconds

Git Blog

Releasing the Power of Git

One Graph, Every Worktree, No Context Lost

Five worktrees for five agents sounds like organization. In practice, it’s five contexts to keep straight, five places history could live, five spots for a WIP that gets left behind or diffed against the wrong branch.

GitLens 19.2’s fix isn’t a second graph. It’s making the one graph you already trust point wherever the work actually is.

Scope to Worktree re-points the entire Commit Graph at a worktree: its working changes become the primary WIP row, its status drives the ahead/behind counts and markers, and every action (commit, pull, push, switch) runs with it as the working directory. History is never re-walked, so scoping and unscoping are immediate, and your scroll position, selection, search, and filters all survive the switch. Scope it from a worktree row in the side bar, a double-click on a WIP row, or the Focus in Commit Graph commands, and a tinted title bar with a named pill tells you at a glance which worktree you’re looking at.

Scope and Focus now do two different jobs, and the distinction is worth knowing. Focus narrows the rows to a single branch’s history. Scope re-centers the graph on a worktree’s perspective. A scoped graph still shows every commit unless you focus it as well, and two settings, gitlens.graph.scopeBehavior and gitlens.graph.doubleClickWorktreeAction, decide whether the two travel together by default.

Agent Sessions You Can Pick Back Up

19.1 gave Codex, GitHub Copilot CLI, and OpenCode the same visibility Claude Code already had in the graph. 19.2 lets you resume them, too, not just watch them. Every Resume action names exactly where it’s headed, in a terminal or in the agent’s own extension, and shows both when a session can open either way. Pick a default under gitlens.agents.resumeTarget, or let GitLens ask the first time and remember your answer.

A Few More Things Worth Knowing

The graph can now save your column layout, sizing, grouping, and panels as the default for new workspaces, run your default VS Code task on any worktree in one click, and rebind or disable its own keyboard shortcuts. The Home view has been retired now that the Commit Graph covers everything it did, and GitLens itself now follows your VS Code display language, with experimental Spanish and Chinese (Simplified and Traditional) translations shipping today.

Get It

Update to GitLens 19.2. If you’re already running agents across worktrees, Scope to Worktree is the setting to try first, it’s the fastest way to see what changed. Read the full release notes for every fix and setting.

Like this post? Share it!

Read More Articles

Visual Studio Code is required to install GitLens.

Don’t have Visual Studio Code? Get it now.

Team Collaboration Services

Secure cloud-backed services that span across all products in the DevEx platform to keep your workflows connected across projects, repos, and team members
Launchpad – All your PRs, issues, & tasks in one spot to kick off a focused, unblocked day. Code Suggest – Real code suggestions anywhere in your project, as simple as in Google Docs. Cloud Patches – Speed up PR reviews by enabling early collaboration on work-in-progress. Workspaces – Group & sync repos to simplify multi-repo actions, & get new devs coding faster. DORA Insights – Data-driven code insights to track & improve development velocity. Security & Admin – Easily set up SSO, manage access, & streamline IdP integrations.
winget install gitkraken.cli