hmem-activate

hmem-activate is a skill for Claude Code, Codex from Bumblebiber/hmem. It costs 54 tokens per session (736 once invoked), scanned A, original, MIT.

A session helper for switching between active projects and checking whether notes were recorded under the wrong project. It uses a project loader and project-specific memory entries.

In plain words
What is it for?
Use it when activating another project, reviewing the old project's recent notes, and moving misrouted entries to the correct project.
Why use it?
It reduces confusion when work moves between projects and helps find exchanges that may have been attached to the previous project.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/bumblebiber/hmem/hmem-activate
Any agent
npx skills add Bumblebiber/hmem --skill hmem-activate
Clone the repo
git clone --depth 1 https://github.com/Bumblebiber/hmem

Made for: Claude Code, Codex.

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-activate

README.md
[![agentmods](https://agentmods.dev/badge/skills/bumblebiber/hmem/hmem-activate.svg)](https://agentmods.dev/skills/bumblebiber/hmem/hmem-activate)
Your own site
<a href="https://agentmods.dev/skills/bumblebiber/hmem/hmem-activate"><img src="https://agentmods.dev/badge/skills/bumblebiber/hmem/hmem-activate.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 736 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00054 $0.00736
Opus 5 $0.00027 $0.00368
Sonnet 5 $0.00011 $0.00147
Haiku 4.5 $0.00005 $0.00074

Measured 4d ago against content hash f9c6203d496d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hmem-activate 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 4d 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-activate/SKILL.md · 80 lines

How it starts

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

hmem-activate

TRIGGER

Use when the user switches to a different project mid-session.

STEP 1: Note the currently active project

Before calling load_project, check which project is currently active. The active project is shown in every tool response as Active project: PXXXX <name>.

Note:

  • OLD_PROJECT: currently active project ID (e.g. P0043) — or none if no project was active
  • OLD_O: corresponding O-entry (same seq: P0043 → O0043) — if OLD_PROJECT = none, use O0000 (catch-all for unattributed sessions)
  • TARGET_PROJECT: the project the user wants to switch to
  • TARGET_O: corresponding O-entry (e.g. P0048 → O0048)

STEP 2: Activate the target project

load_project(id: "TARGET_PROJECT")

STEP 3: Check for misrouted exchanges

If OLD_PROJECT ≠ TARGET_PROJECT, exchanges from this session may have been logged to OLD_O instead of TARGET_O.

Check OLD_O for today's exchanges:

read_memory(id: "OLD_O")

Look for session nodes created today (check timestamps). If you find exchanges that belong to the TARGET project's context — i.e. they discuss TARGET project topics, not OLD_PROJECT topics — they are misrouted.

To move them:

move_nodes(node_ids: ["OLD_O.X.Y"], target_o_id: "TARGET_O")

Move at the batch or session level (e.g. O0043.3), not exchange by exchange.

If OLD_O has no today-exchanges, or all exchanges genuinely belong to OLD_PROJECT: skip this step.

STEP 3.5: Noise Check

Scan the load_project output:

  • >4k tokens → invoke hmem-curate first
  • ✓ DONE Roadmap itemsupdate_memory(id, { irrelevant: true })
  • Decommissioned / concept entries in Infrastructureupdate_memory(id, { irrelevant: true })

Fix immediately, do not defer.

STEP 3.6: Schema Check

Scan the load_project output for schema mismatches and fix them immediately.

[-] prefix sections — orphaned nodes outside the current schema (e.g. P0048.10 [-] Bugs (duplicate), P0048.21 [-] Protocol (stale artifact)):

update_memory(id="P00XX.YY", { irrelevant: true })

Mark every [-] section irrelevant. Do not skip, do not defer.

Read the full file on GitHub · 80 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. 4d ago First seen · 80 lines · 54 tokens per session scan A f9c6203d496d

Subscribe to this mod's changes

hmem-activate is a skill published in the GitHub repository Bumblebiber/hmem (23 stars, last pushed 1mo ago), licensed MIT. It adds 54 tokens to every session and 736 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-08-30.

Related

Other skills, from other repositories

ccg-guardian

Use this skill when working on code projects that need memory persistence, code validation, multi-agent coordination, or workflow tracking. Activates Claude Code Guardian MCP tools.

phuongrealmax/code-guardian · 37 tokens

kayba-ace

This skill ships learnfromtraces.py, a script that reads OpenClaw session transcripts, feeds them through the ACE learning pipeline, and writes an updated skillbook to disk.

kayba-ai/agentic-context-engine · 0 tokens

harness-design

Design and build multi-agent harness architectures for long-running AI application development. GAN-inspired Generator-Evaluator pattern, Sprint Contract negotiation, context management, quality criteria calibration. Based on Anthropic Engineering patterns. Use when: "build a harness", "multi-agent architecture"…

AnastasiyaW/codex-claude-code-config · 171 tokens

alive-bundle

Create, manage, and graduate bundles -- the unit of focused work within a walnut.

alivecontext/alive · 20 tokens

state-memory-mcp

Teaches the agent to use the state-memory-mcp MCP server to track workflow state, tasks, decisions, blockers, artifacts, plans, milestones, and their semantic relationships in a persistent graph database.

putervision/state-memory-mcp · 45 tokens

rekal-init

Bootstrap rekal memory for a project. Scans the codebase for architecture, conventions, dependencies, workflows, and config, then stores durable knowledge as properly typed, tagged, deduplicated memories. Use when starting rekal on a new project, or when user says "init rekal", "bootstrap memory", "populate rekal"…

janbjorge/rekal · 83 tokens