Skip to content

v7.2.0 — the status line follows the agent you are viewing

Choose a tag to compare

@ChanMeng666 ChanMeng666 released this 30 Oct 10:35
· 14 commits to master since this release

Switch to a subagent's transcript and the status line now shows that agent, not the main conversation. A subagent often runs a different model and always has its own context, and until now the line could not tell you either.

main      [Sonnet 5.5] | 🧠 medium … Context: 4% (40K/1M)  cache 99%
subagent  [▸ Haiku 5.5] | 🤖 ▸ general-purpose | 🧠 medium … ▸ Context: 14% (29K/~200K)  cache 84%

▸ marks whatever describes the viewed agent. Cost and quotas stay, because they are session-wide.

What to do after upgrading: run audio-hooks statusline install once, or set refreshInterval to 2 yourself. An existing registration keeps its old interval, and audio-hooks statusline show tells you when it is too slow.

How it works

Claude Code gives a status line script only the main conversation and does not re-run it on a switch of view. A small hooks module, hooks/view-sensor.ts, reads the view, writes one small file to the temp directory and draws nothing. The script then reads the agent's own transcript. The module and the new file are disclosed in PRIVACY.md and the plugin README.

Also in this release

  • A status line run no longer does slow work itself. Claude Code aborts a run still going at the next refresh, so a slow cache miss could freeze the line. That work now runs in a detached process, and git_dirty is omitted on the very first render.
  • A switched-off event no longer starts the whole runner, and other fixes listed in the changelog.

Verified

Live on Claude Code 2.1.314 on Windows, interactive, with --plugin-dir and from an installed 7.2.0, with a Sonnet main conversation and a Haiku subagent: main → agent → main → agent, each within about 3 seconds. The test suite passes on Ubuntu, Windows and macOS with Python 3.9, 3.12 and 3.13.

Not verified

  • A GitHub-source marketplace install, a teammate's or workflow agent's view, and macOS or Linux in a live session.
  • The Cursor auto-bridge reading a hooks.json with a modules key.
  • Whether the plugin directory accepts the module.

The context window of an agent on a different model from the main conversation is not recorded anywhere a script can read, so it is an estimate, shown as ~200K.