rvachev.orgEN / RU / 🤖
← Back to essays
· Essay · 1 min

💡 #lifehack 20: Claude Code Limits Right in the Status Bar

You can display Claude Code limits in the terminal status bar instead of checking /usage every time.

If you regularly hit the limits of Claude Code (5-hour and weekly window), you can display them directly in the terminal status bar instead of checking /usage every time.

Claude Code allows you to replace the status bar with your own script: with each update, it receives JSON, and in it, besides the model and current directory, there is a rate_limits field - the percentage of usage for both windows. I displayed them in the right corner of the line: highlighted in yellow after 80% and in red after 95%. I also added the current model, reasoning effort level, and context size in tokens.

Script and installation instructions (along with the pitfalls I've already encountered):

https://github.com/rvnikita/claude-code-statusline

💡 #lifehack 20: Claude Code Limits Right in the Status Bar — illustration