Skip to content

Instantly share code, notes, and snippets.

@Morpheus0x
Morpheus0x / claude-code-2.1.273-auto-attach-fix.md
Last active September 17, 2026 08:16
Claude Code Extension: Fix Auto-Attach (Version 2.1.273+)

Claude Code Extension: Fix Auto-Attach (Version 2.1.273+)

This is the latest fix for the stupid, annoying file attachment "feature" in claude code. I tested if it only is a visual fix by asking claude for the important information inside the open file in vs code. The following is the readme and python script for the fix (created by claude code, using caveman plugin).

patch.py — stop Claude Code VS Code extension auto-attaching the open file

Minimal patcher. Verified on anthropic.claude-code-2.1.273.

What it does