This is a big contributor to long-running sessions. I built a small CLI that opens in a tmux popup and shows what my Cursor agents cost: https://github.com/rishabhBudhouliya/tend.
It uses a ridgeline chart to show how big each chat's context has grown and what it's spending.