cache-prune

cache-prune is a skill for Claude Code from leopu00/job-hunter-team. It costs 103 tokens per session (1,286 once invoked), scanned A, original, MIT.

An automated cleanup routine for shared software-download and logging storage. It removes unused package files, old detailed log records, and temporary files when the team has been inactive long enough.

In plain words
What is it for?
Running periodic maintenance on a shared agent environment, reducing stored package and telemetry data, and reclaiming disk space during quiet periods.
Why use it?
It prevents shared caches and logs from steadily consuming disk space. Safety checks avoid cleanup while active work could be disrupted.

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 Bash(node /app/cli/bin/jht.js cache *), Bash(du *), Bash(df *).

Good fit Running periodic maintenance on a shared agent environment, reducing stored package and telemetry data, and reclaiming disk space during quiet periods.

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/cache-prune

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 cache-prune

README.md
[![agentmods](https://agentmods.dev/badge/skills/leopu00/job-hunter-team/cache-prune/github.svg)](https://agentmods.dev/skills/leopu00/job-hunter-team/cache-prune)
Your own site
<a href="https://agentmods.dev/skills/leopu00/job-hunter-team/cache-prune"><img src="https://agentmods.dev/badge/skills/leopu00/job-hunter-team/cache-prune/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 cache-prune

Your own site · 80×15
<a href="https://agentmods.dev/skills/leopu00/job-hunter-team/cache-prune"><img src="https://agentmods.dev/badge/skills/leopu00/job-hunter-team/cache-prune.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,286 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high YARA Match · line 3
    YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
    Fix: Remove offensive tool references and exploit code. Legitimate agent skills should not contain penetration testing tools, exploit frameworks, or reconnaissance utilities.
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.00103 $0.01286
Opus 5 $0.00051 $0.00643
Sonnet 5 $0.00021 $0.00257
Haiku 4.5 $0.00010 $0.00129

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

Security

Grade A, and why

cache-prune 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 10d 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/_skills/cache-prune/SKILL.md · 87 lines

How it starts

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

cache-prune — reclaim shared caches

The shared $JHT_HOME accumulates two caches that grow monotonically until reclaimed:

Path What it stores Typical growth (sample 2026-05-02)
$JHT_HOME/.cache/uv/ wheel cache for every uv pip install ~364 MB
$JHT_HOME/.codex/logs_2.sqlite Codex telemetry SQLite (71% TRACE rows) ~223 MB

Neither is needed on disk: uv re-downloads if it has to, Codex truncates TRACE rows safely. The numbers above came from a continuous run; on a fresh $JHT_HOME they start at 0 and reach hundreds of MB within a few days.

The single safe command

node /app/cli/bin/jht.js cache prune

Idempotent and no-op when there's nothing to reclaim. Internally:

  1. uv cache prune — drops stale wheels (keeps the active set referenced by current installs).
  2. SQLite VACUUM on logs_2.sqlite after deleting old TRACE rows.
  3. Cleanup of ephemeral Codex temp files.

Each step has a safety gate: idle > 1h on the operations that are destructive (VACUUM lock, TRACE delete) — if the team is actively burning tokens the step is skipped.

When to run

  • 👨‍⚕️ End of a routine Dottore round (~24h of continuous run, or at the start of an idle operational day).
  • 📉 On demand if du -sh $JHT_HOME/.cache $JHT_HOME/.codex shows growth > 800 MB total.
  • 🚫 NEVER mid-budget-critical (proj > 95%) — the VACUUM 30s blocks the Codex SQLite the Sentinel reads through the bridge.
  • 🚫 NEVER in reaction to a Sentinel [ORDINE] — orders demand pacing/scaling actions, not housekeeping.

Safety: what NOT to touch

The team has other caches that look similar but are NOT in scope here:

Path Why hands-off
.cache/ms-playwright/ browser binaries pinned by version — re-downloading is slow + flaky
.cache/claude-cli-nodejs/ Anthropic CLI runtime cache, recreated lazily but bigger when warm
$JHT_HOME/logs/ Sentinel state lives here. Wiping it loses the EMA window and several minutes of monitoring history.

Read the full file on GitHub · 87 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. 10d ago First seen · 87 lines · 103 tokens per session scan A ef8b64eaf5a9

Subscribe to this mod's changes

cache-prune is a skill published in the GitHub repository leopu00/job-hunter-team (49 stars, last pushed yesterday), licensed MIT. It adds 103 tokens to every session and 1,286 once invoked, about $0.0005 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-08-30.