Tool calls that look like same in the UI should be compacted to counters. For example, right now, we do this:
Read tools.go
Read llm.go
Read llm.go
Read llm.go
Read tools.go
Read tools.go
Under the hood, agent is likely checking various parts of the file through offset and limit params. Agent is not actually reading the same file again and again.
We should improve the above to:
Read tools.go
Read llm.go (x3)
Read tools.go (x2)
So a counter will update if two consecutive tool calls appear same in the UI.
Tool calls that look like same in the UI should be compacted to counters. For example, right now, we do this:
Under the hood, agent is likely checking various parts of the file through
offsetandlimitparams. Agent is not actually reading the same file again and again.We should improve the above to:
So a counter will update if two consecutive tool calls appear same in the UI.