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
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.txtfile (around 140 kB) and the prompt: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