Skip to content

The "read before editing" rule seems too broad #2849

@cmeerw

Description

@cmeerw

Description

coder.md.tpl has a critical rule to "READ BEFORE EDITING"

I think that should be narrowed to something like "READ THE CONTEXT BEFORE EDITING". In it's current form it will likely result in the full file being read before applying (potentially small edits in a large file). Just did a small test with a sample lorem.txt file (around 140 kB) and the prompt:

In lorem.txt, put quotes around all occurrences of "vitae sociosqu"

Ideally, that should result in a grep and then 2 small edits, but at the moment the whole file is being read first, needlessly wasting lots of tokens (likely because of the above mentioned critical rule).

This is somewhat related to #2784, also another reason to want #2677

Version

v0.66.1

Environment

NetBSD / DeepSeek V4 Flash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions