I just update my opencode and found that I'm now getting some extra uninterpreted json being inserted into the shell buffer. It corresponds to a feature they've recently implemented to allow tracking session and context usage:
https://agentclientprotocol.com/rfds/session-usage
Here's the opencode PR, where you can see a screenshot of how it renders in an alternate ACP client:
anomalyco/opencode#12299
Is support for that something you'd be interested in having in agent-shell? Presumably we could display the session usage status in the header somewhere.
Small example traffic file including the usage_update notification:
agent-shell-opencode-usage-traffic.txt
I just update my
opencodeand found that I'm now getting some extra uninterpreted json being inserted into the shell buffer. It corresponds to a feature they've recently implemented to allow tracking session and context usage:https://agentclientprotocol.com/rfds/session-usage
Here's the opencode PR, where you can see a screenshot of how it renders in an alternate ACP client:
anomalyco/opencode#12299
Is support for that something you'd be interested in having in agent-shell? Presumably we could display the session usage status in the header somewhere.
Small example traffic file including the
usage_updatenotification:agent-shell-opencode-usage-traffic.txt