Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Run automatically on Claude Code events. Claude doesn't decide.
1 critical · 2 cautions to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it runs programs; writes files; reads environment variables (USAGE_AWARENESS_STATE_DIR).
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
This plugin tells Claude when the plan usage of your account is high. It reads the 5-hour limit and the 7-day limit, the same numbers that /usage shows. When a limit gets to a threshold, the plugin adds your rule text to the session.
Your rules are in ${CLAUDE_PLUGIN_DATA}/rules/. On the first run, the plugin copies the default rules into this directory. After that, the plugin does not change the files.
The filename gives the limit and the threshold: <limit>_<threshold>.md.
5h_ is the 5-hour limit. 7d_ is the 7-day limit.Examples: 5h_80.md, 5h_95.md, 7d_90.md.
The plugin examines each limit separately. For each limit, it uses the file with the highest threshold that is equal to or less than the current percent. Thus, a maximum of 2 rules apply at the same time: 1 for the 5-hour limit and 1 for the 7-day limit.
To change a threshold, rename the file. To change a rule, edit the file. To add a stricter rule, add a file with a higher threshold. The plugin ignores files with other names.
The default rules are 5h_80.md and 7d_90.md. They tell Claude to send the work to the Codex plugin.
Each session keeps its own state. Subagents do not get notices.
Each session has its own usage file: /tmp/claude_usage_awareness/sessions/<session id>.usage.json. Thus each session sees only the usage of its own account, also when the desktop app and the terminal use different accounts.
hooks/register.ts) writes the file. It reads the usage from the Claude Code session ($.session.usage()): the same numbers that each reply of the model gives. It writes the file when the session starts, after each reply of the model, and after each turn. It sends no request. The mod runs in the terminal and in the Code tab of the desktop app.The plugin does not call the usage API and does not read a token.
./test.sh
claude plugin test .
test.sh tests the shell hook. claude plugin test tests the mod.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub harkairt/harkairt-claude-marketplace --plugin usage-awarenessPlugins from other owners that cover similar ground