[FEATURE] Support Multiple Pinned Code Selections in Claude CLI
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Hi,
It would be great if we could select and pin multiple instances of code lines in Claude. For example, when working on a large task, I may want to reference several code blocks located in different parts of the codebase. Currently, this isn't possible.
In GitHub Copilot, I can select and pin multiple lines or code snippets from different locations and provide them as context simultaneously. Having a similar feature in Claude would make it much easier to work on larger tasks and provide relevant context efficiently.
<img width="188" height="62" alt="Image" src="https://github.com/user-attachments/assets/f21637f4-83a9-4863-aa8d-07ff94f3ee05" />
Proposed Solution
Allow users to pin multiple code selections or snippets from different files and locations within Claude CLI. These pinned snippets could remain in a dedicated context panel and be automatically included in the conversation until unpinned, making it easier to provide relevant context for large or multi-file tasks.
Alternative Solutions
_No response_
Priority
Medium - Would be very helpful
Feature Category
CLI commands and flags
Use Case Example
Use Case Example:
While debugging a production issue, I may need to provide:
The error stack trace from app.log
The API function from api.py
The database query from db.py
The Docker configuration from Dockerfile
These snippets often exist in different files and locations. Being able to pin multiple code selections at once would allow Claude CLI to understand the complete context without requiring me to copy and paste everything into a single prompt. This would be especially useful for debugging, code reviews, refactoring, and large-scale implementation tasks.
Additional Context
_No response_