Context-chip for claude code
Hi everyone 👋
While working with Claude Code in VS Code, I ran into a small but frustrating workflow issue.
For months I’ve been using Antigravity, which allows you to select code and press Ctrl + L to instantly send that snippet as context to the agent. Even better, you can repeat this multiple times in the same message, and the UI provides context chips that let you trace the referenced code easily.
However, when I started using the Claude Code VS Code extension, I noticed two limitations:
Selecting code gives Claude some context, but you can’t reference multiple snippets within the same message.
The alternative is providing the entire file as context, which often leads to unnecessary context pollution.
So, as a curious developer, I decided to build a solution.
I created two VS Code extensions designed to improve how code context is collected and shared with AI coding agents.
1. Context Collector
A generic extension for collecting multiple code snippets and sending them to your preferred AI coding assistant.
Workflow
Select a code section → press Ctrl + Shift + L to collect it
Repeat for multiple snippets
Press Ctrl + Shift + ; to send all collected references to Claude Code
Or copy them directly from the Context Collector UI
VS Code Marketplace
https://marketplace.visualstudio.com/items?itemName=KrishnaGupta0405.context-collector
2. Context Collector – Claude Code
A version specifically designed to integrate with Claude Code.
Workflow
Select a code snippet
Press Ctrl + Shift + L
The snippet reference is automatically added to the Claude Code message context
VS Code Marketplace
https://marketplace.visualstudio.com/items?itemName=KrishnaGupta0405.context-collector-claude-code
Open VSX
https://open-vsx.org/extension/KrishnaGupta0405/context-collector-claude-code
Current Limitation
Right now, references appear as plain text instead of interactive context chips like Antigravity.
Unfortunately, this is due to a limitation:
VS Code and the Claude Code extension currently don’t expose APIs that allow extensions to create those interactive context chips.
But I’m optimistic that a better solution will emerge as the ecosystem evolves.
If you’re interested in contributing or improving this further, feel free to open a PR:
GitHub
https://github.com/KrishnaGupta0405/ContextCollectorClaude
A small tool solving a small problem — but hopefully useful for developers working with AI-assisted coding workflows.

Replies