hmem-new-error

hmem-new-error is a skill for Claude Code, Codex from Bumblebiber/hmem. It costs 69 tokens per session (875 once invoked), scanned A, original, MIT.

A procedure for creating a structured hmem error record, with sections for analysis, attempted fixes, solution, cause, and lessons.

In plain words
What is it for?
Use it when logging a bug or error, recording what happened, documenting fixes tried, and preserving the final cause and lesson.
Why use it?
It keeps bug reports consistent and avoids malformed records caused by formatting mistakes such as tabs in descriptions.

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-new-error
Any agent
npx skills add Bumblebiber/hmem --skill hmem-new-error
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-new-error

README.md
[![agentmods](https://agentmods.dev/badge/skills/bumblebiber/hmem/hmem-new-error.svg)](https://agentmods.dev/skills/bumblebiber/hmem/hmem-new-error)
Your own site
<a href="https://agentmods.dev/skills/bumblebiber/hmem/hmem-new-error"><img src="https://agentmods.dev/badge/skills/bumblebiber/hmem/hmem-new-error.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 875 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.00069 $0.00875
Opus 5 $0.00034 $0.00438
Sonnet 5 $0.00014 $0.00175
Haiku 4.5 $0.00007 $0.00088

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

Security

Grade A, and why

hmem-new-error 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 5d 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-new-error/SKILL.md · 103 lines

How it starts

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

/hmem-new-error — New Error Entry

E-entries use a fixed 6-section schema (Analysis → Possible fixes → Fixing attempts → Solution → Cause → Key Learnings). The server auto-scaffolds all sections — you only need to provide a title and a flat description.

The one rule: NO TABS in the description

The parser treats every tab-indented line as a structural node. Tabs in the description accidentally create invalid L2 nodes. Write the description as flat text after a blank line:

✅ write_memory(
  prefix="E",
  content="Short bug title\n\nFlat description of what went wrong. No tabs here.",
  tags=["#project", "#area", "#open"],
  links=["P00XX"]
)

❌ write_memory(
  prefix="E",
  content="Short bug title\n\nDescription:\n\tStep 1 caused X\n\tStep 2 failed",
  ...
)

The ❌ example creates invalid L2 nodes (Step 1 caused X, Step 2 failed) that fail schema validation.


Step 1: Collect the information

Ask the user (or extract from context):

Field Notes
Title Short, descriptive. Max ~50 chars. Format: What broke / where
Description What happened, what was observed. Flat text, no tabs.
Tags At least #open + 2–3 topic tags.
Links Which P-entry does this belong to? (P00XX)

Step 2: Write the entry

write_memory(
  prefix="E",
  content="<title>\n\n<flat description>",
  tags=["#open", "#tag1", "#tag2"],
  links=["P00XX"]
)

The server auto-creates:

  • .1 Analysis (your description moves here automatically)
  • .2 Possible fixes
  • .3 Fixing attempts
  • .4 Solution
  • .5 Cause
  • .6 Key Learnings

The write response shows the created ID (e.g. E0149) and a #open tag.


Step 3: Fill in what you know

Use append_memory to add detail to the sections you can already fill:

append_memory(id="E00XX.1", content="Root cause hypothesis: ...")  # Analysis
append_memory(id="E00XX.2", content="Try X first, then Y")        # Possible fixes

Read the full file on GitHub · 103 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. 5d ago First seen · 103 lines · 69 tokens per session scan A 12a664687850

Subscribe to this mod's changes

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