check-usage-tui

check-usage-tui is a skill for Claude Code from leopu00/job-hunter-team. It costs 65 tokens per session (1,334 once invoked), scanned A, original, MIT.

A fallback tool that checks an AI provider's usage by opening its command-line interface in a temporary terminal session.

In plain words
What is it for?
It is for reading current and weekly provider usage, reset times, and status when the normal HTTP check is unavailable.
Why use it?
It provides a backup when the faster usage check fails or is rate-limited, though it takes longer and uses command-line tokens.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 /app/shared/skills/usage_record.py --manual \.

Good fit It is for reading current and weekly provider usage, reset times, and status when the normal HTTP check is unavailable.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/leopu00/job-hunter-team
agentmods
npx agentmods add skills/leopu00/job-hunter-team/check-usage-tui

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for check-usage-tui

README.md
[![agentmods](https://agentmods.dev/badge/skills/leopu00/job-hunter-team/check-usage-tui/github.svg)](https://agentmods.dev/skills/leopu00/job-hunter-team/check-usage-tui)
Your own site
<a href="https://agentmods.dev/skills/leopu00/job-hunter-team/check-usage-tui"><img src="https://agentmods.dev/badge/skills/leopu00/job-hunter-team/check-usage-tui/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for check-usage-tui

Your own site · 80×15
<a href="https://agentmods.dev/skills/leopu00/job-hunter-team/check-usage-tui"><img src="https://agentmods.dev/badge/skills/leopu00/job-hunter-team/check-usage-tui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,334 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.01334
Opus 5 $0.00032 $0.00667
Sonnet 5 $0.00013 $0.00267
Haiku 4.5 $0.00006 $0.00133

Measured 9d ago against content hash bfd0f05f705d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

check-usage-tui scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/sentinella/_skills/check-usage-tui/SKILL.md · 142 lines

How it starts

The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill — Check usage via TUI worker (robusto, ~30s, costoso in token)

QUANDO USARLA

Solo come L2 dopo che L1 (HTTP) ha fallito. È robusta perché bypassa il rate-limit Anthropic (legge dal CLI locale), ma costa:

  • ~30s di tempo (spawn worker + boot CLI + render modal)
  • alcuni token Claude (apertura sessione + /usage)
  • rischio di TUI in stato anomalo (Loading, scaduto, etc.)

Ordine di fallback: HTTP → TUI → FATAL.

Workflow

Step 1 — Provider attivo

python3 -c "import json; print(json.load(open('/jht_home/jht.config.json'))['active_provider'])"

Step 2 — Spawn sessione tmux EFFIMERA

Nome unico col timestamp (no collisione):

SESS="SENTINELLA-WORKER-$(date +%s)"
tmux new-session -d -x 220 -y 50 -s "$SESS" -c /jht_home
tmux send-keys -t "$SESS" "export HOME='/jht_home'" C-m
tmux send-keys -t "$SESS" "export PATH='/app/agents/_tools:/jht_home/.npm-global/bin:\$PATH'" C-m
tmux send-keys -t "$SESS" "export KIMI_CLI_NO_AUTO_UPDATE=1" C-m

Step 3 — Lancia il CLI provider

Provider Comando
claude / anthropic claude --dangerously-skip-permissions
kimi / moonshot kimi --yolo
codex / openai codex --yolo
tmux send-keys -t "$SESS" "<comando>" C-m
sleep 18   # boot + eventuale trust dialog auto-accept

Step 4 — Slash command

Provider Slash command
claude / anthropic /usage
kimi / moonshot /usage
codex / openai /status (NON /usage!)
tmux send-keys -t "$SESS" "<slash>" Enter
sleep 4   # render modal

⚠️ NIENTE Esc preventivo prima del slash command: rompe Kimi (interpreta /usage come testo) e per gli altri è inutile in sessione fresh.

Step 5 — Capture pane

tmux capture-pane -t "$SESS" -p -S -100

Leggi il pane coi tuoi occhi LLM, estrai usage, reset, weekly.

Format Claude
Current session
████████  45% used
Resets 8:10pm (UTC)

Current week (all models)
████  25% used
Resets Apr 27, 5am (UTC)

→ usage=45, reset=20:10 UTC, weekly=25

Read the full file on GitHub · 142 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 142 lines · 65 tokens per session scan A bfd0f05f705d

Subscribe to this mod's changes

check-usage-tui is a skill published in the GitHub repository leopu00/job-hunter-team (49 stars, last pushed yesterday), licensed MIT. It adds 65 tokens to every session and 1,334 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.