r/PiCodingAgent • • Sep 17 '26

Question Does Anyone Else Keep Track of Their Tool/Instructions Bloat in Their Setup?

Post image

I'm curious if anyone else tracks their setup in order to keep things as lean as possible while still having tools needed to complete your typical workflows etc..

I have my own personal Pi setup (SpecPi) and it's been a fun experiment keeping it contained and lean to prevent the context bloat seen in some of the other harnesses.

I'm interested to see how other setups here might compare.

Edit - Added charts broken down by tokens instead of overall characters

83 Upvotes

31 comments sorted by

View all comments

8

u/fell_ware_1990 Sep 17 '26

But my pi, start with about 200/300 in context. It uses deferred tools and explicit caching to load. It also uses a specific set of placeholder strings in system prompt. If with a user message i can do appending to that ( not to top of cache )

1

u/Equivalent_Idea8839 Sep 17 '26

how to defer new tool loads without breaking model cache?

2

u/fell_ware_1990 Sep 17 '26

https://developers.openai.com/api/docs/guides/prompt-caching thats the starting point to understand.

1

u/Equivalent_Idea8839 Sep 17 '26

says openai now supports append tool laoding

is that standard for all models?

I'll try it and find out, thanks

1

u/fingerthief Sep 17 '26

Really interesting, I have look into and played with some of this but deferred tool calling spotty across the industry as a standard, so I haven't gone all in yet.

Definitely next on my list to look at further!

1

u/Seangles 20d ago

Deferred tool descriptions sounds good in theory until you realize your tool descriptions are cached in the same fixed prefix across your whole workday, while with deferred tools the model will have to query them dynamically every time, meaning extra requests, extra output tokens, extra cache miss input tokens - in every single session.

IMO only rarely used big toolsets should be deferred. Stuff like MCP tools, browser tools, computer use tools etc.