Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Git BrainNew to Visual Studio Code? Get it now.
Git Brain

Git Brain

git-brain

|
991 installs
| (3) | Free
git-brain is the JetBrains-grade Git UI for VS Code and Cursor - featuring quiet high-density line blame, 3-way merge conflict surgery, and parallel worktrees - backed by a local MCP server that gives AI coding agents deterministic git history context.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git Brain 🧠

Your Git. Clear at a glance.

Visual commits, branches, diffs, conflicts, and worktrees - right inside your editor.

Your AI agent writes the code. Git Brain helps you understand what happened.

git-brain is the JetBrains-grade Git UI for VS Code and Cursor - featuring quiet high-density line blame, 3-way merge conflict surgery, and parallel worktrees - backed by a local MCP server that gives AI coding agents deterministic git history context.

Install from VS Marketplace · Install from Open VSX · Explore Git Brain · View on GitHub

Three ways Git Brain fits modern development

Alternative to GitLens and Git Graph

Choose Git Brain when you want a focused visual workspace for everyday changes, commits, branches, stashes, worktrees, history, on-demand blame, and three-way conflict resolution. GitLens provides a broader code-history and collaboration surface; Git Brain keeps the core repository workflow together.

JetBrains Git UX in VS Code and Cursor

Keep visual history, branch context, guided conflicts, and discoverable Git operations when moving from IntelliJ, PyCharm, WebStorm, or another JetBrains IDE to a VS Code-compatible editor.

Agentic Git and local MCP extension

Git Brain bundles a local MCP bridge with typed tools for repository status, comparisons, commits, branches, worktrees, conflicts, and guarded Git actions. It accepts no raw Git arguments, shell commands, credentials, or absolute repository paths.

Telemetry is disabled by default. When enabled, anonymous analytics exclude code, file paths, repository content, diffs, commit messages, raw branch names, and raw remote URLs.

Git Brain Git Log showing a visual branch graph alongside commit details and changed files

AI can change hundreds of lines in minutes. Git Brain gives you a visual layer for understanding and controlling the repository those changes leave behind. See what changed, decide what belongs in a commit, follow the branch history, and resolve conflicts without leaving your editor.

See your repository clearly

Explore commits, branches, merges, tags, and history without decoding Git commands or jumping between tools.

  • Follow every branch and merge in the visual commit graph.
  • Filter history by commit text, branch, author, date, or path.
  • Inspect commit metadata and changed files, then open a side-by-side diff.
  • Find the pull request or merge request linked to a commit on GitHub or GitLab.
  • Open commits and files on GitHub, GitLab, Azure DevOps, or Bitbucket.
  • Trace a file or selected lines through history and compare multiple revisions.

Explore the visual Git graph

Finish everyday Git work in one place

Git Brain keeps the common workflow together so you can move from change to push without losing context.

  • Review changed, untracked, and conflicted files in clear groups.
  • Select files, reuse a recent commit message, run Git hooks, and commit or commit-and-push.
  • Compare, create, rename, merge, rebase, check out, pull, and push branches from a searchable branch picker.
  • Create and inspect stashes with file-level diffs, then apply, pop, drop, or clear them.
  • Use Smart Checkout and Smart Pull to protect local changes around branch switches, merges, and rebases.
Git Brain everyday workflow for reviewing changes and preparing a commit

Resolve conflicts without the headache

See Local, Result, and Remote together in a real three-way merge editor. Git Brain connects matching changes across all three panes and keeps the editable result in the center.

Git Brain three-way merge editor with local changes, an editable result, and incoming changes

Navigate each conflict, accept either side or both, edit the result directly, and undo any decision. Apply non-conflicting changes in one action, resolve simple conflicts automatically, collapse completed sections, and finish the merge from the editor.

Explore visual conflict resolution

Everything you use Git for every day

  • Branches: create, compare, switch, merge, and rebase visually.
  • Stashes: save work, inspect file-level diffs, and restore it when ready.
  • Worktrees: keep parallel Git workspaces organized inside your editor.
  • Cherry-pick: move the commits you need between branches.
  • Revert: undo a commit with a new, traceable commit.
  • Compare: compare files with branches, tags, or your working tree.
  • History and blame: understand when, where, and why a line changed.
  • Sync: pull, push, and track remote state without changing context.

Git Brain worktrees panel showing registered checkouts and their status

AI assistance you review and control

Git Brain uses AI where it can remove repetitive work while keeping you in the review loop.

  • Commit messages: generate Conventional, Descriptive, or Concise messages from large diffs of up to 1 MiB and 300 text files.
  • Explain changes: summarize uncommitted work, commits, and pull requests with client-side secret redaction.
  • Split changes: turn a complex working tree into an editable, ordered commit plan and optional branch stack.
  • Resolve a whole merge: generate proposals for up to 300 supported conflicted files, then edit or deselect each result before applying it.

Git Brain is free to install. Verified accounts can try the current interactive hosted-AI features with a one-time complimentary allowance, subject to shared daily availability. Git Brain never promises a fixed number of free actions: usage depends on the size of each request. When today's complimentary capacity or the account's daily limit is reached, the extension explains when to try again; when the one-time allowance is finished, users can buy AI coins and continue. Purchased coins remain available even when the complimentary pool is full.

Complimentary access is currently limited to extension UI entry points. Hosted AI invoked through MCP remains coin-funded.

AI features require a free Git Brain sign-in. In addition to complimentary and coin-funded hosted AI, users can connect an existing Codex, Claude Code, Cursor Agent, GitHub Copilot, or Gemini CLI subscription. Connected subscriptions run through the provider's local authenticated client and charge 0 Git Brain coins. Git Brain never stores the provider credential.

Explore AI workflows

Connect coding agents to Git with MCP

The bundled MCP server gives supported coding agents structured access to repository status, diffs, commits, branches, worktrees, and unpushed changes. Agents use registered Git Brain capabilities rather than raw Git arguments, shell access, credentials, or arbitrary filesystem access.

VS Code and Cursor connect automatically. The Git Brain Activity view can also configure Codex CLI, Claude Code, GitHub Copilot CLI, or Gemini CLI, and can copy configuration for another MCP client. Mutating operations use guarded inputs and explicit confirmation where the client supports MCP elicitation.

Explore Git Brain MCP

Works where you code

Install Git Brain in VS Code, Cursor, Kiro, CodeBuddy, Trae, VSCodium, Windsurf, Antigravity, Firebase Studio, and Theia IDE. Git Brain also supports the Trae CN and Kiro CN variants.

  • VS Code Marketplace
  • Open VSX

Open a Git repository after installation, then launch Git Brain from the Activity Bar. Start with the Changes view, open the visual Git Log, or select a conflicted file to use the merge editor.

Coming from WebStorm or another JetBrains IDE? Read the JetBrains migration guide. Looking for a more focused GitLens alternative? See the Git Brain and GitLens comparison.

Privacy

Git Brain uses anonymous analytics to improve product quality. Analytics never include your code, file contents, file paths, diffs, commit messages, raw branch names, or raw remote URLs.

Provider lookup may reuse an existing VS Code GitHub session or an optional, host-scoped GitLab token stored in VS Code SecretStorage. Git Brain does not start an interactive sign-in without an action from you.

Read the privacy policy

Learn more and get help

  • Report a bug
  • Suggest an idea
  • Git Brain blog

If you report a problem from the Commit tab, Git Brain can include useful extension and platform details without including repository content.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft