Skip to content

FR: Session usage tracking #267

@Lenbok

Description

@Lenbok

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions