villager-hp
Your Claude usage limits as a game health card, drawn above the prompt in Claude Code.
villager-hp is a Claude Code mod (a plugin). It turns your 5-hour session limit and your weekly limit into two health bars, shows whether the week is on pace to run out early, and puts an animated villager beside them who feels every point you spend.


How to install
You paste one line. It works even if you only have the Claude desktop app.
Windows
-
Press the Start button, type powershell and press Enter. A window opens.
-
Copy this line, paste it into that window and press Enter:
irm https://raw.githubusercontent.com/Ashley-Pettit/villager-hp/prod/install.ps1 | iex
-
Wait until it says Done. Then close Claude and open it again.
Mac
-
Press Command and Space, type terminal and press Enter. A window opens.
-
Copy this line, paste it into that window and press Enter:
curl -fsSL https://raw.githubusercontent.com/Ashley-Pettit/villager-hp/prod/install.sh | bash
-
Wait until it says Done. Then close Claude and open it again.
Try it
In the Claude desktop app, open the Code tab. The health card sits above where you type. Type /hp 40 and press Enter to see it at 40 HP.
Good to know:
- The line gets Claude Code's command-line tool if you don't have it, then adds the mod. It asks no questions and needs no admin password.
- It keeps itself up to date: once a day it checks for a newer version and installs it, then tells you to restart Claude. Type
/hp update to check now, or /hp autoupdate off to be told instead. Pasting the line again also updates it.
- Only a copy installed with this line updates itself. A copy from the Claude directory or claude.ai is kept up to date there: it makes no update check and runs no update command.
- The full animated card shows in the desktop app's Code tab. If you run Claude Code in a terminal you get a simpler text version.
- It needs Claude Code 2.1.287 or later. This version was tested on 2.1.295.
- Already use Claude Code in a terminal? You can type
/plugin install villager-hp --marketplace Ashley-Pettit/villager-hp there instead.
What you see
Three bars: SESSION (your 5-hour limit) and WEEKLY (your weekly limit across all models) show the hit points you have left, and PACE shows whether this week's rate gets you to the reset. On Ultra, SESSION is hidden (see below). HP is 100 minus the percent used, with the time each one resets. An Age of Empires–style villager watches over them, and his mood follows your lowest bar.
Weekly pace bar
PACE sits under WEEKLY:
- The middle line is on track: at this rate you use exactly your weekly limit by the reset.
- The marker sits right of the middle when you have plenty spare, and left when you'll hit the cap before the reset.
- Beside it, where the week lands at this rate: "42% spare", "on track", or "23% over" when you'd need 23% more than your weekly limit.
Ultra accounts
On an Ultra plan the 5-hour window doesn't apply, so the card hides SESSION and shows just WEEKLY and PACE. The card works this out by itself (a weekly limit with no 5-hour one, or "ultra" in the account's plan name). To set it by hand, type /ultra on, /ultra off or /ultra auto.
Open: your artifacts, docs and videos
Type /open to open a pane listing your claude.ai artifacts, and the Word docs and videos in your Desktop, Documents, Downloads, Movies, Videos and OneDrive folders.
- Most recently edited at the top.
- Press ☆ to pin something; pinned things stay at the top, across sessions. Press ★ to unpin.
- Tabs narrow the list to Artifacts, Docs or Videos. Refresh looks again.
- An artifact opens in your browser; a doc or video opens in its own app.
At the right end of the card, LAST PROMPT and TODAY show the rough cost at API rates of your most recent prompt and of today so far, in your currency (AUD by default; change it in /hp settings or /config). It's Claude Code's own estimate (what /cost shows) where it gives one, else worked out from the tokens at published API prices, converted at a daily exchange rate. On a subscription you aren't billed it.
AI usage and settings
The pane /open opens has three tabs: