[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:

  1. Implement lines range syntax e.g. @file.go:[12-24,…], might require update of ACP to support it in the editors.
  2. 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_

View original on GitHub ↗

8 Comments

github-actions[bot] · 11 months ago

Found 1 possible duplicate issue:

  1. https://github.com/anthropics/claude-code/issues/5962

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

dennypenta · 11 months ago

It seems like a duplicate to above, but it’s completely different

github-actions[bot] · 10 months ago

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.

dennypenta · 10 months ago

yes it is

github-actions[bot] · 9 months ago

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.

dennypenta · 9 months ago

I did a freaking comment

marcindulak · 9 months ago

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.

github-actions[bot] · 8 months ago

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.