eca icon indicating copy to clipboard operation
eca copied to clipboard

A way to break down what's in the context

Open lockie opened this issue 6 months ago • 3 comments

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

It'd be great to have some kind of built-in observability tools which clearly show what is the current content of the context window, what was sent previously and what will be sent. Kind of like Claude's /context command.

lockie avatar Jun 03 '26 16:06 lockie

Sure, the problem with that is that each model/provider count differently tokens, right now we rely only on the post request, when the provider said how much we used, this is assertive, otherwise we would need to have a way to genericly count tokens or specific by provider, which something I'm considering adding support somehow.

ericdallo avatar Jun 03 '26 17:06 ericdallo

Nice. To cover 80% of this, the exact token counts are not needed I think, just the files/pieces of text representation, perhaps with just indicated word count (which still gives a good approximation of how much tokens there will be).

lockie avatar Jun 03 '26 18:06 lockie

I implemented this on master! soon in next release as soon as I finish other clients

Image

ericdallo avatar Jun 18 '26 01:06 ericdallo