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.
npx skills add Bumblebiber/hmem --skill hmem-writegit clone --depth 1 https://github.com/Bumblebiber/hmemWrote 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.
[](https://agentmods.dev/skills/bumblebiber/hmem/hmem-write)<a href="https://agentmods.dev/skills/bumblebiber/hmem/hmem-write"><img src="https://agentmods.dev/badge/skills/bumblebiber/hmem/hmem-write/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.
<a href="https://agentmods.dev/skills/bumblebiber/hmem/hmem-write"><img src="https://agentmods.dev/badge/skills/bumblebiber/hmem/hmem-write.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00077 | $0.07461 |
| Opus 5.5 | $0.00031 | $0.02984 |
| Sonnet 5.5 | $0.00015 | $0.01492 |
| Haiku 4.5 | $0.00008 | $0.00746 |
Grade A, and why
hmem-write 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.
How it starts
The opening of the file, as written. The whole thing — 614 lines — stays where its author put it; the contents beside it link to each section on GitHub.
How to use write_memory
Call the MCP tool write_memory to save lessons, errors, decisions, or project insights to long-term memory.
If write_memory is not available:
- Tell the user: "write_memory tool not found. Please reconnect the MCP server (in Claude Code:
/mcp, in other tools: restart the tool)." - NEVER write directly to the .hmem SQLite file via shell commands. The database has WAL journaling, integrity checks, and tree-structure logic that raw SQL INSERT will bypass — causing corruption or data loss.
Syntax
write_memory(
prefix: "E",
content: "Short Title (~50 chars)\n\nL1 body — detailed explanation, can span multiple lines\nsecond body line with more context\n\tL2 node title\n\n\tL2 body text (supports newlines)\n\tmore L2 body\n\t\tL3 detail (2 tabs)\n\t\t\tL4 raw data (3 tabs — rarely needed)"
)
Title + Body convention (git-commit style): Every node has a title (short navigation label) and an optional body (detailed content loaded on drill-down). Separate them with a blank line — just like a git commit message.
- Title: The first line (L1) or first line at a given indent level (L2+). ~50 chars, like a chapter title.
- Body: Everything after the blank line at the same indent level. Freetext, no special prefix needed. Shown only when the node is drilled into, not in listings.
- Legacy
>prefix: Still works for backward compatibility, but blank-line separation is preferred. - Without body: The full text is stored as
contentand the title is auto-extracted from the firstmaxTitleCharscharacters.
L1 example with body:
Short Error Title
SQLite connection failed because .mcp.json used a relative path.
The fix was to use an absolute path in the HMEM_PATH env var.
Details about reproduction
Steps: 1. Set HMEM_PATH=./hmem 2. Run hmem serve 3. Observe SQLITE_CANTOPEN
L1 example without body (still works):
SQLite connection failed due to wrong path in .mcp.json
Fix: use absolute path in env var
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.
- 3mo ago First seen · 614 lines · 77 tokens per session scan A 531295803fab
hmem-write is a skill published in the GitHub repository Bumblebiber/hmem (24 stars, last pushed 1mo ago), licensed MIT. It adds 77 tokens to every session and 7,461 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.
hmem-write compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| hmem-writeBumblebiber/hmem | Skill | 24 | 1mo ago | MIT | A | 77 | Claude Code, Codex |
| kayba-acekayba-ai/agentic-context-engine | Skill | 2.6k | 2mo ago | Apache-2.0 | A | 0 | Claude Code, Codex |
| nornweave-apiDataCovey/nornweave | Skill | 31 | 2d ago | Apache-2.0 | A | 77 | Claude Code, Codex |
| post-cortex-memoryjulymetodiev/post-cortex | Skill | 23 | 3d ago | MIT | A | 194 | Claude Code |
| faf-expertWolfe-Jam/grok-faf-mcp | Skill | 19 | today | MIT | A | 95 | Claude Code, Codex |
| alice-memorysamrusani/AliceMemory | Skill | 7 | today | MIT | A | 28 | Claude Code, Codex |
| alice-project-memorysamrusani/AliceMemory | Skill | 7 | today | MIT | A | 33 | Claude Code, Codex |