hmem-dispatch

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

Instructions for sending isolated tasks to a separate agent that returns a result in a fixed format. They cover searches, lookups, calculations, isolated writing, and code changes.

In plain words
What is it for?
Use it when searching a codebase, checking whether something exists, looking up information, doing a calculation, writing an independent section, or delegating a code modification.
Why use it?
They keep exploration or self-contained work separate from the main conversation and require clear inputs, tasks, and output formats. They also define extra safeguards for delegated code changes.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/bumblebiber/hmem/hmem-dispatch.svg)](https://agentmods.dev/skills/bumblebiber/hmem/hmem-dispatch)
Your own site
<a href="https://agentmods.dev/skills/bumblebiber/hmem/hmem-dispatch"><img src="https://agentmods.dev/badge/skills/bumblebiber/hmem/hmem-dispatch.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 551 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.00050 $0.00551
Opus 5 $0.00025 $0.00275
Sonnet 5 $0.00010 $0.00110
Haiku 4.5 $0.00005 $0.00055

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

Security

Grade A, and why

hmem-dispatch 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-dispatch/SKILL.md · 53 lines

How it starts

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

hmem-dispatch

TRIGGER

Always dispatch for:

  • Searching — "does a spec exist?", "find the plan for X", "search the codebase for Y", "check if skill Z covers this", "read the docs for W", "is there already a file that does X?" — any exploration or lookup task
  • Calculation or lookup — deterministic, context-free
  • Writing an isolated section or document — no conversation history needed
  • Writing or modifying code — never write code directly in the main context. Pass the project ID and relevant node IDs (e.g. .2 Codebase) in the task so the sub-agent can sync them after completing the work. Always include in the task: "Invoke superpowers:coding-discipline before writing code."

Never dispatch for tasks that require knowing the conversation context.

The key rule for searching: if you're about to run grep, find, read, or search_memory to answer a question — dispatch instead. The sub-agent explores, you synthesize the result.

STEP 1: Define the task

Write out before dispatching:

  • INPUT: exactly what the sub-agent needs — no more, no less
  • TASK: what to do with the input
  • OUTPUT FORMAT: what to return
  • VERIFY (optional): a concrete shell command that proves completion (e.g. npx tsc --noEmit, grep "pattern" file.ts). Use for tasks that produce code or file changes.

STEP 2: Dispatch

Send the sub-agent ONLY this prompt — no conversation history, no project context unless the task explicitly requires it:


Task: Input: [If VERIFY set:] After completing the task, run: <VERIFY_CMD> Return your answer in exactly this format: [RESULT] [/RESULT] [If VERIFY set:] [VERIFY_RESULT] pass | fail: [/VERIFY_RESULT] Max 200 words. Use the hmem-subagent skill.

STEP 3: Inject result

Take ONLY the content between [RESULT] and [/RESULT]. If [VERIFY_RESULT] is present: check pass/fail. On fail, report the verification error instead of declaring the task complete. Discard all sub-agent reasoning and preamble. Use the result directly in the main conversation.

Read the full file on GitHub · 53 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 · 53 lines · 50 tokens per session scan A 4708ba56f615

Subscribe to this mod's changes

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