hmem-search

hmem-search is a skill for Claude Code, Codex from Bumblebiber/hmem. It costs 79 tokens per session (1,282 once invoked), scanned A, original, MIT.

A memory-search procedure for finding past discussions, definitions, schemas, or decisions when no exact hmem entry ID is provided.

In plain words
What is it for?
Searching with keywords and date ranges, dropping restrictive filters, trying related wording, and locating relevant hmem records.
Why use it?
It searches documented project knowledge before asking the user for information that may already be stored.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Searching with keywords and date ranges, dropping restrictive filters, trying related wording, and locating relevant hmem records.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bumblebiber/hmem/hmem-search
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-search
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-search

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/bumblebiber/hmem/hmem-search"><img src="https://agentmods.dev/badge/skills/bumblebiber/hmem/hmem-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,282 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.00079 $0.01282
Opus 5.5 $0.00032 $0.00513
Sonnet 5.5 $0.00016 $0.00256
Haiku 4.5 $0.00008 $0.00128

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

Security

Grade A, and why

hmem-search 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-search/SKILL.md · 82 lines

How it starts

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

When the user references past context without pinning it to an ID, or when looking up definitions, schemas, or decisions stored in hmem — convert the intent into a targeted read_memory query.

Workflow

  1. Extract from the prompt:

    • Keywords — distinctive nouns, project names, error fragments, schema names. Skip filler like "wir", "neulich", "besprochen", "Schema für".
    • Time hint — map to after/before range using the current date as anchor. "gestern" → narrow (−1 to 0d), "letzte Woche" → medium (−10 to −3d), "neulich"/"vor kurzem" → generous (−21d). No time hint → skip the range.
  2. First search:

    read_memory({ search: "<keywords>", after: "<ISO>", before: "<ISO>" })
    

    Keywords as a single space-separated string. Use ISO dates (2026-04-11), not relative forms.

  3. If results are empty or off-topic — work through this sequence immediately, without waiting:

    a) Drop time filter, keep keywords Time hints from humans are fuzzy; the memory may sit just outside the window.

    b) Try term variations — systematically, not just once The stored entry may use a different phrasing than what the user said. Try all that apply:

    • German ↔ English: "Schema" → "schema", "Entscheidung" → "decision", "Fehler" → "error"
    • Abbreviations or expansions: "H-Schema" → "H-Entry Schema", "O-Eintrag" → "O-entry"
    • Compound splits: "Standardschema" → "Standard Schema", "Checkpoint-Strategie" → "checkpoint strategy"
    • Synonyms: "Kollision" → "conflict", "Struktur" → "structure", "Vorlage" → "template"
    • Broader category: "H-Standardschema" → "H-entry", "entry schema", "Human schema"
    • Related prefix: if the topic is about a specific entry type (H, P, E, I…), search that prefix directly via read_memory({ prefix: "R", search: "H" })

    Don't try one variation and stop. Run 2–3 variations before concluding nothing was found.

    c) Switch store Default is personal. If the topic is work-related and personal turned up nothing, try store: "company".

Read the full file on GitHub · 82 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 · 82 lines · 79 tokens per session scan A 5954c5b67439

Subscribe to this mod's changes

hmem-search is a skill published in the GitHub repository Bumblebiber/hmem (24 stars, last pushed 1mo ago), licensed MIT. It adds 79 tokens to every session and 1,282 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-search compared with skills from other repositories

hmem-search next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hmem-searchBumblebiber/hmemSkill241mo agoMITA79Claude Code, Codex
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