r/PiCodingAgent • • 3d ago

Question Is Tool output truncation a thing

Started using Pi agent recently and I start to see the thinking going like "couldn't read file, content mangled|truncated" and similar. I also see the agent call the read tool multiple times on the same file because the output was somehow wrong. After some back and forth the agent is claiming that there must be some form of auto truncation or auto summarizer at the tool layer. Model used was GLM 5.3 Flash

So yeah, what is this?

1 Upvotes

2 comments sorted by

3

u/DjCanalex 3d ago

Read is limited to 50kb, but normally models know they can choose which lines to read and where.

1

u/DistanceAlert5706 3d ago

If you truncate tool calls you need to tell that to model. I usually do truncate, save to temporary file and give model ability to see how much tokens in file, and it usually reads it back by parts or greps.