3 ms·
Many agents can send diffs. Whole file reading and writing burns tokens and pollutes context.
by faangguyindia 1y ago
Many agents can send diffs. Whole file reading and writing burns tokens and pollutes context.
- lifthrasiir 1y agoThe replace tool is a form of diff (although it's rudimentary), and the read_file tool can be called with line ranges. I do wish robust patching but it is not the "whole" file reading/writing. Maybe you wanted to say about subagent file handling? I can agree then. (Also I think Gemini is significantly better when it comes to the context rot, in my experience 100K--300K tokens were required for symptoms to appear. So burning tokens is less problematic with Gemini.)