2 ms·
I've noticed that too. Maybe the normal Write tool has to output the entire file and this is an attempt to reduce token usage?
by rcfox 1mo ago
I've noticed that too. Maybe the normal Write tool has to output the entire file and this is an attempt to reduce token usage?
- pjm331 1mo agoThe Edit tool has been notoriously tricky to get right - it seems they have maybe branched out but I think morphllm started specifically with the pitch that they trained a small model to be good at editing files - most of their testimonials are about that But I think it’s mostly a solved problem in frontier models and the bash tool usage is more likely an attempt to be more token efficient - I’ve noticed it used for making mechanical bulk edits that would be numerous “edit” tool uses otherwise
- troupo 29d ago> this is an attempt to reduce token usage? Wouldn't generating a Python script to edit files waste more tokens than using the built-in tool?
- sznio 29d agodepends on the breadth of the edit. anything that involves multiple files might be better done with python (e.g. renaming a function, along with changing all call sites.)