/network-tmp:cleanup-network-tmpfrom network-tmp
Report and clean the network-tmp overflow — show how full the share and the local /tmp are, what this machine has stored and how old it is, and delete it now instead of waiting for the automatic expiry. Use when the user says "clean up network temp", "clear the overflow", "how full is network tmp", "free space on nettmp", or when the share is filling up.
Ships in network-tmp. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Automatic expiry already runs hourly on the server: anything in scratch/
untouched for NETTMP_TTL is deleted, and the same goes for keep/ after
NETTMP_KEEP_TTL. This skill is the manual, immediate version.
nettmp status # human
nettmp status --json # for parsing
Report the share's used/free space, this host's usage and oldest file, and the
local /tmp percentage. If /tmp is a tmpfs (findmnt /tmp), say that it
lives in RAM.
To see what's taking the space before deleting:
du -sh "$(nettmp path)"/* 2>/dev/null | sort -h | tail -15
Always dry-run first and show the user the result:
nettmp clean --dry-run # files older than the TTL
nettmp clean --dry-run --older-than 6h
nettmp clean --dry-run --all # everything this host stored
Then run the same command without --dry-run. With no option, a dry run of
the default TTL needs no confirmation. Ask before running --all, or an
--older-than shorter than about 1h, if another session might be using the
files.
nettmp clean only touches this host's directories: scratch/<host>-<user>
on the share and the local fallback. It never touches keep/ or other
machines' files. To clear keep/ or the whole share, do it on the server
deliberately:
# on the server
systemctl start network-tmp-clean.service # apply the TTL rules now
find /srv/nettmp/scratch -mindepth 1 -delete # wipe all scratch, every host
If /tmp is full but the share is fine, the culprit is usually large files
that should have gone to network-tmp. Find them with:
du -xsh /tmp/* 2>/dev/null | sort -h | tail -10
On a machine running Claude Code, the usual cause is old session scratchpads
under /tmp/claude-<uid>/, which hold model files and recordings. List them
and ask before deleting any session directory that might still be running. A
directory modified within the last hour may belong to a live session.
What SKILL.md sets; muted values are Claude Code's defaults
network-tmp@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin network-tmp3 skills in this plugin
/setupSet up network-tmp end to end — a capped, self-cleaning overflow directory on a home server or NAS that a RAM-limited or small-disk machine uses when /tmp is full or too small. Creates the server-side image, NFS export and hourly expiry timer, then the client automount, config and `nettmp` helper, and verifies both. Use when the user says "set up network tmp", "add another machine to network-tmp", "change the overflow size or TTL", or when `nettmp` is missing./use-network-tmpRoute large temporary files — model weights, checkpoints, ONNX exports, audio and video, datasets, archives, build outputs — to the network-tmp overflow instead of /tmp or the session scratchpad, and fall back to local disk when the server is unreachable. Use before downloading or generating anything over about 50 MB on a machine with network-tmp configured (`/etc/network-tmp.conf` exists), when /tmp is a tmpfs or nearly full, or when a write fails with "No space left on device".