[FEATURE] Lines Range Syntax to memory query
Status Closed — not planned
Maintainer reply None cached
Activity 8 comments · opened Nov 14, 2025 · closed Jan 15, 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
When I need to update a small portion of a file I have to provide the entire file memory.
At the moment Claude forces to keep files small in order not to waste context.
Cursor has the feature to limit the files memory from the very beginning.
Proposed Solution
There are 2 options to make it:
- Implement lines range syntax e.g. @file.go:[12-24,…], might require update of ACP to support it in the editors.
- implement tree sitter based matchers syntax as ‘@file.go:[c:myStruct]’ to provide a class/function, not the best, because a query in Go for a class provides only a struct definition and doesn’t include its methods.
Alternative Solutions
_No response_
Priority
High - Significant impact on productivity
Feature Category
API and model interactions
Use Case Example
_No response_
Additional Context
_No response_
8 Comments
Found 1 possible duplicate issue:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
It seems like a duplicate to above, but it’s completely different
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
yes it is
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
I did a freaking comment
This issue was closed incorrectly despite recent human comments. This behavior of the bot is reported at https://github.com/anthropics/claude-code/issues/16497. Please upvote that issue, so maybe it gets noticed.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.