hmem-wipe

hmem-wipe is a skill for Claude Code from Bumblebiber/hmem. It costs 64 tokens per session (1,409 once invoked), scanned A, original, MIT.

A context-wipe checklist that saves important session knowledge and project next steps before asking you to clear the conversation.

In plain words
What is it for?
Use it before /clear or when starting fresh after a long session. It helps record handoff notes and update the project's next steps.
Why use it?
It reduces the risk of losing track of unfinished work or decisions when the context is full. It also checks for uncommitted changes in repositories touched during the session.

Skill for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: mentions subagents; names the NotebookEdit tool.

Good fit Use it before /clear or when starting fresh after a long session. It helps record handoff notes and update the project's next steps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bumblebiber/hmem/hmem-wipe
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 Bumblebiber/hmem --skill hmem-wipe
Clone the repo
git clone --depth 1 https://github.com/Bumblebiber/hmem

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 hmem-wipe

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bumblebiber/hmem/hmem-wipe"><img src="https://agentmods.dev/badge/skills/bumblebiber/hmem/hmem-wipe.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,409 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.00064 $0.01409
Opus 5.5 $0.00026 $0.00564
Sonnet 5.5 $0.00013 $0.00282
Haiku 4.5 $0.00006 $0.00141

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

Security

Grade A, and why

hmem-wipe 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 3mo 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.

skills/hmem-wipe/SKILL.md · 133 lines

How it starts

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

Wipe — Prepare & Clear Context

Follow these steps in order.

Step 0: Abort if repos touched this session have uncommitted changes

Hard gate — must complete before any other step. Wiping context with unfinished local work risks losing track of why those changes exist. The post-clear session has no memory of the chat that produced them.

Scope this check to only the repos the session actually touched — not every repo on the machine. Unrelated work on other projects is not your concern here.

  1. Look back over this session's tool history and identify every file path you've modified (Edit, Write, NotebookEdit, or any Bash commands that wrote to a tracked file). If no files were modified at all, skip Step 0 entirely and proceed to Step 1.

  2. For each unique path, resolve its git repo root:

    git -C <path> rev-parse --show-toplevel 2>/dev/null
    

    Dedupe to a set of repo roots. Drop any path that isn't inside a repo.

  3. For each repo root, check status:

    git -C <repo-root> status --porcelain
    
  4. If any repo has non-empty status output:

    • Do not proceed to Step 1 or beyond. Do not tell the user to /clear.
    • Print the dirty file list per repo so the user sees exactly what's at risk.
    • Reply with:

      Wipe aborted — uncommitted changes in repo(s) you worked on this session. Commit, stash, or discard the listed files first, then re-run /wipe. (If the changes are intentional WIP you want to keep across the wipe, stash them with a clear message: git stash push -m "WIP: <what + why>".)

    • End the skill.

Only proceed to Step 1 when every session-touched repo is clean.

Why session-scoped, not whole-machine: other repos may have intentional WIP unrelated to this conversation — those aren't your responsibility to gate on. The risk this guard prevents is losing the why behind changes you just helped make.

Step 1: Optionally save high-value knowledge

Check checkpointMode in hmem.config.json to decide what to do:

Read the full file on GitHub · 133 lines

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. 3mo ago First seen · 133 lines · 64 tokens per session scan A d73308249958

Subscribe to this mod's changes

hmem-wipe is a skill published in the GitHub repository Bumblebiber/hmem (24 stars, last pushed 1mo ago), licensed MIT. It adds 64 tokens to every session and 1,409 once invoked, about $0.0003 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-08-30.

Related

hmem-wipe compared with skills from other repositories

hmem-wipe next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hmem-wipeBumblebiber/hmemSkill241mo agoMITA64Claude Code
kayba-acekayba-ai/agentic-context-engineSkill2.6k2mo agoApache-2.0A0Claude Code, Codex
nornweave-apiDataCovey/nornweaveSkill312d agoApache-2.0A77Claude Code, Codex
post-cortex-memoryjulymetodiev/post-cortexSkill233d agoMITA194Claude Code
faf-expertWolfe-Jam/grok-faf-mcpSkill19todayMITA95Claude Code, Codex
alice-memorysamrusani/AliceMemorySkill7todayMITA28Claude Code, Codex
alice-project-memorysamrusani/AliceMemorySkill7todayMITA33Claude Code, Codex