Guzzle can do this out of the box! This technique is also used to power some of the checks in Oh Dear.
PHP
Creating The Perfect Claude Code Status Line
A walkthrough of building a useful Claude Code status line that shows your current repo, git branch, staged/unstaged changes, and context window usage percentage. The context percentage is the most valuable part: it helps you Read more…