[FEATURE] Possibility to send lines to context from more than one file

Resolved 💬 2 comments Opened Mar 24, 2026 by simon-godefroid-deel Closed Apr 21, 2026

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

Claude code generated 2 test files. Say A and B.
Some tests in B.spec.tsx were already covered in A.spec.tsx
So I told claude about it... however doing so I had to select the diff in B.spec.tsx and then copy the relative path of A.spec.tsx to indicate that "{selection} was already covered in {path}"

When you think about it, this means that claude code does poorer than Cursor's agent chat which is very sad.

Proposed Solution

I told Claude to tell Dario... he told me to do it myself...

<img width="1457" height="97" alt="Image" src="https://github.com/user-attachments/assets/f8adebca-d1ad-462f-8683-7ace3dd370c4" />

I don't have a proper solution but I'd assume this is doable given claude code is a tui that can achieve pretty much whatever is achieved in an electron IDE.

Could it be that you can option+click several areas and the terminal tells you how many lines from wherever? by combining "in B.spec.tsx" and "x lines"

<img width="272" height="33" alt="Image" src="https://github.com/user-attachments/assets/3db70c00-6696-4898-8e4b-7df4e02b2d95" />

<img width="154" height="33" alt="Image" src="https://github.com/user-attachments/assets/3c34c56e-bd83-4013-a7e1-1c79f03d8676" />

Alternative Solutions

Mixed approach of context highlight and then pasting the path of the other file... but that sucks... you're anthropic and you do poorer than Cursor... Don't start with the Claude Code extension in Cursor...

Priority

High - Significant impact on productivity

Feature Category

CLI commands and flags

Use Case Example

I have a branch with 2 test files that overlap in coverage.
I advocate for MECE testing (Mutually Exclusive Commonly Exhaustive) so I don't want those 2.
I want to nudge the agent into removing either the test or the test file.
I have to select 2 places to prompt it and I can't.

This can happen anywhere during the code generation/prompting.

Additional Context

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗