29 ms·
For what reason are they encouraging it to use bash over the purpose-specific tools?
by cedws 2mo ago
For what reason are they encouraging it to use bash over the purpose-specific tools?
- DannyBee 2mo agoIf i'm trying to steel-man why, I presume because the read/write/edit tools use more context tokens because they don't support reading part of a file/etc. So the agent is going to put less into context when it uses sed to see 15 lines of a file than using read and putting the entire file into context. That is my best charitable guess at what they are hoping to achieve. Of course, there is an obvious set of solutions for this problem that don't involve pushing the agent to use bash.
- olejorgenb 2mo agoSurely the read and update tools support ranges
- DannyBee 2mo agoRead does, but it rarely uses it. Part of the reason i assume is that to extract 5 line ranges is a single line very small sed call that it has to output, but 5 separate full read calls it has to output correctly and quickly. Who knows.
- MintPaw 2mo agoProbably because it makes distilling and external analysis/tracking harder.