jagp

Claude Auto Split Fix — Development skill for Claude Code

Development community

Fixes the annoying VSCode bug causing new Claude Code TUI tabs to open in separate, locked editor groups, by automatically collapsing them -- without interfering in ones you manually create.

How to install Claude Auto Split Fix

This entry records only its repository, not the path inside it, so there is no exact command to give. Open jagp/claude-auto-split-fix and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Auto Split Fix does

Fixes the annoying VSCode bug causing new Claude Code TUI tabs to open in separate, locked editor groups, by automatically collapsing them -- without interfering in ones you manually create.

Alternatives in Development

  • Claude Coder — Kodu is an autonomous coding agent that lives in your IDE 5.2k ★
  • /discover — Run a full discovery loop without manually stitching together skills 2.3k ★
  • Icpg Intent — Manually create or update an iCPG intent (ReasonNode) for a file before implementing 705 ★

README

Claude Code — VSCode: Fix for New-Tab Auto-Splitting

This VSCode extension provides a simple workaround for a longstanding bug in Anthropic's Claude Code extension. It immediately shifts new, stranded Claude tabs back where they belong. As seen here:

![Demo: the tab jumping back to the original editor group](.github/demo.gif)

Purpose

Claude's VS Code toolbar button has a weirdly opinionated behavior: when creating a new CC conversation, it first creates a new Editor group (splitting your working space in half) -- puts the new conversation tab in it, then *locks* the group.

Standard UX would place the new tab as a sibling of your current tab, in the same Editor group. While I'm comfortable calling this a bug, several GitHub issues tracking this problem were recently designated *"closed-as-unplanned"* -- suggesting this won't change any time soon.

Hence, this extension which simply fixes that odd behavior. It unlocks the group, and moves the freshly created tab back into your active group automatically; the superfluous editor group then dies automatically.

Notes

Mechanics

It also catches the sibling annoyance ([anthropics/claude-code#33884](https://github.com/anthropics/claude-code/issues/33884)): with Claude Code docked in the sidebar, clicking a file link — a `Read` tool result, say — opens that file in a brand-new editor group instead of the one you were working in. A file that opens alone in a fresh group gets moved back too, unless the same document is already visible in another group, since that layout is what a deliberate split-to-the-side looks like. This half is controlled by `claudeAutoSplitFix.moveFileTabs`.

Kill Switch

A few plausible scenarios exist in which you'd want the above detection disabled (if you often spawn blank tabs into new editor group) try toggling `claudeAutoSplitFix.moveFileTabs`.

How to Use

From the Marketplace

  • VS Code: search the Extensions view for "Auto-split Fix for New Claude Code Tabs",