mem-rescue

mem-rescue is a skill for Claude Code from jontsai/claude-plugins. It costs 143 tokens per session (1,093 once invoked), scanned A, original, MIT.

A Mac-focused troubleshooting skill for diagnosing and relieving memory pressure, with best-effort Linux support. It reports memory use, large browser processes, possible leaks, recent crashes, and suggested restart actions.

In plain words
What is it for?
Use it when memory is low, swap is full, the machine is lagging, or apps fail or crash. It can produce a human-readable or JSON report and, after confirmation, restart selected apps.
Why use it?
It replaces scattered commands and guesswork when a computer is slow, swapping, or killing apps and browser tabs. It separates a read-only diagnosis from actions that quit and relaunch applications.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the mem-rescue plugin — 1 skill shipped together

Good fit Use it when memory is low, swap is full, the machine is lagging, or apps fail or crash. It can produce a human-readable or JSON report and, after confirmation, restart selected apps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jontsai/claude-plugins/mem-rescue
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jontsai/claude-plugins --skill mem-rescue
Clone the repo
git clone --depth 1 https://github.com/jontsai/claude-plugins

Made for: Claude Code.

Or install mem-rescue, the plugin that ships this one along with the rest of its 1 skill.

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 mem-rescue

README.md
[![agentmods](https://agentmods.dev/badge/skills/jontsai/claude-plugins/mem-rescue/github.svg)](https://agentmods.dev/skills/jontsai/claude-plugins/mem-rescue)
Your own site
<a href="https://agentmods.dev/skills/jontsai/claude-plugins/mem-rescue"><img src="https://agentmods.dev/badge/skills/jontsai/claude-plugins/mem-rescue/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 mem-rescue

Your own site · 80×15
<a href="https://agentmods.dev/skills/jontsai/claude-plugins/mem-rescue"><img src="https://agentmods.dev/badge/skills/jontsai/claude-plugins/mem-rescue.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 143 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,093 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.
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.00143 $0.01093
Opus 5.5 $0.00057 $0.00437
Sonnet 5.5 $0.00029 $0.00219
Haiku 4.5 $0.00014 $0.00109

Measured 1mo ago against content hash 49046b1c382c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mem-rescue 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 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/memcheck.sh, scripts/rescue.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/mem-rescue/skills/mem-rescue/SKILL.md · 74 lines

How it starts

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

mem-rescue

Two bundled scripts replace the dozen ad-hoc top, ps, and vm_stat calls a memory diagnosis normally takes. Both live in this skill's scripts/ directory; run them from the directory this skill was loaded from (the loader tells you where that is). Running them by path, with no shell pipeline around them, also lets the user allowlist them once in their agent so they never prompt.

1. Diagnose (read-only, always safe)

scripts/memcheck.sh          # human report
scripts/memcheck.sh --json   # same data, machine-readable

Output: a verdict (OK / STRAINED / CRITICAL), the headline numbers, memory by app family, Chromium/Electron process counts, the largest renderer processes, leak suspects, crash reports from the last 24h, and ranked restart actions with estimated recoverable memory.

Run it once, read it, and go straight to the answer. Don't re-derive the numbers with your own top or ps calls unless the report is missing something specific.

2. Rescue (quits and relaunches apps; confirm first)

scripts/rescue.sh --dry-run brave slack   # shows what would happen
scripts/rescue.sh brave slack             # does it
scripts/rescue.sh all                     # brave slack notion calendar

Quits are graceful. Chromium browsers are relaunched with --restore-last-session, so tabs come back as unloaded placeholders whatever the browser's "On startup" setting is; Slack and Notion reopen where they were on their own. The script never force-kills unless given --force; with it, an app that ignores the quit for 45s gets SIGKILL, and if it somehow survives that the script says so and does not relaunch it. Swap is reported before and after.

Quitting the user's browser or chat client interrupts their work. Unless the user already told you to restart things ("restart brave", "go ahead and rescue it"), show the ranked actions from the report and ask which ones to run. When they say yes, run rescue once, then run memcheck again and show the before/after.

Read the full file on GitHub · 74 lines

Files

What ships with it

2 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. 1mo ago Changed · +4 lines 49046b1c382c
  2. 1mo ago First seen · 70 lines · 143 tokens per session scan A 3cbeef78587d

Subscribe to this mod's changes

mem-rescue is a skill published in the GitHub repository jontsai/claude-plugins (6 stars, last pushed 1mo ago), licensed MIT. It adds 143 tokens to every session and 1,093 once invoked, about $0.0006 per session on Opus 5.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-10-17.

Related

mem-rescue compared with skills from other repositories

mem-rescue next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mem-rescuejontsai/claude-pluginsSkill61mo agoMITA143Claude Code
visual-explainerNikiforovAll/claude-code-rulesSkill14329d agoApache-2.0A84Claude Code
reflect-solutionNikiforovAll/claude-code-rulesSkill14329d agoApache-2.0A0Claude Code
structured-plan-modeNikiforovAll/claude-code-rulesSkill14329d agoApache-2.0A64Claude Code
reflect-treeNikiforovAll/claude-code-rulesSkill14329d agoApache-2.0A0Claude Code
update-component-referenceNikiforovAll/claude-code-rulesSkill14329d agoApache-2.0A38Claude Code
dotnet-analyzersNikiforovAll/claude-code-rulesSkill14329d agoApache-2.0A45Claude Code