midmem-orchestrator

midmem-orchestrator is a skill for Claude Code, Codex from U4CSolutions/MidMem. It costs 121 tokens per session (821 once invoked), scanned A, original, Apache-2.0.

A coordinator for large MidMem knowledge-base jobs, where MidMem is a system for storing and curating information for later use.

In plain words
What is it for?
It helps bulk-ingest documents, recheck stored knowledge, remove duplicates, review promotions, and verify the generated vault.
Why use it?
It organizes multi-item work and adds planning, mechanical execution, review, and verification so large changes are not handled as unchecked one-off edits.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

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/u4csolutions/midmem/midmem-orchestrator
Any agent
npx skills add U4CSolutions/MidMem --skill midmem-orchestrator
Clone the repo
git clone --depth 1 https://github.com/U4CSolutions/MidMem

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 midmem-orchestrator

README.md
[![agentmods](https://agentmods.dev/badge/skills/u4csolutions/midmem/midmem-orchestrator.svg)](https://agentmods.dev/skills/u4csolutions/midmem/midmem-orchestrator)
Your own site
<a href="https://agentmods.dev/skills/u4csolutions/midmem/midmem-orchestrator"><img src="https://agentmods.dev/badge/skills/u4csolutions/midmem/midmem-orchestrator.svg" alt="Measured on agentmods" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 821 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.1 $0.00121 $0.00821
Opus 5 $0.00060 $0.00411
Sonnet 5 $0.00024 $0.00164
Haiku 4.5 $0.00012 $0.00082

Measured 5d ago against content hash 614497952331, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

midmem-orchestrator 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/midmem-orchestrator/SKILL.md · 51 lines

How it starts

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

MidMem Orchestrator — curation pipelines, frontier-planned + QA'd

This is the hermes-build-orchestrator loop (read that skill for the kanban CLI, the issue-resolution decision tree, autonomy/reporting policy, and the DELEGATE-52 long-horizon defenses) specialized for MidMem knowledge work. You (frontier) plan + QA; Hermes/qwen does the bulk mechanical work via kanban; the QA gate is the midmem-ingest-review skill.

When to use

Multi-item knowledge-store work that's too much for one session: ingesting a batch of sources, re-grounding/auditing existing entries, deduping, reviewing tier promotions, or verifying the vault projection after a large change. Single recall/store/ingest = just use midmem-ops (OpenClaw) or the midmem CLI directly; don't orchestrate.

The contract (what every curation card must respect)

  • state.db is the source of truth; the vault is a deterministic, regenerable projection — never edit the vault; if it looks wrong, midmem project rebuilds it. Curate the store, not the projection.
  • Grounding holds: ingest deterministically quarantines extracted concepts/claims not present in the source. A card must not bypass it (no MIDMEM_GROUNDING=0 in curation).
  • Scope discipline: writes default to the agent's scope; publish cross-agent facts as shared; never write another stack's private scope.
  • Tiers are earned, not asserted: promotion runs on usage/feedback (quantitative), never LLM judgment. Curation should add feedback/usage signals, not hand-promote.
  • Supersede on reingest: re-ingesting a changed source archives its prior entries — prefer re-ingest over manual edits.

Card patterns (decompose to these — small, verifiable)

  • Ingest one sourcemidmem ingest <path> --scope <s>; acceptance: success, grounding report shows acceptable summaryScore and no unexpected quarantine.
  • Re-ground / audit a slice → run midmem-ingest-review over a topic; acceptance: report has no unresolved contradictions/ungrounded entries (or they're flagged for forget/supersede).
  • Dedup / cleanup → identify duplicates via query; supersede by re-ingest or forget (soft); acceptance: brief counts reconcile.
  • Vault verifymidmem project then confirm projection matches state.db counts.

Read the full file on GitHub · 51 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 · 51 lines · 121 tokens per session scan A 614497952331

Subscribe to this mod's changes

midmem-orchestrator is a skill published in the GitHub repository U4CSolutions/MidMem (2 stars, last pushed 11d ago), licensed Apache-2.0. It adds 121 tokens to every session and 821 once invoked, about $0.0006 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-31.

Related

Other skills, from other repositories

lemmalog

Externalize working memory and logical state into the lemmalog Datalog engine (MCP). Use for ANY multi-step task where state should outlive one context window or span agents: long investigations, debugging sessions, audits, multi-agent searches, systematic explorations, planning with many interdependent constraints…

JordyZomer/lemmalog · 105 tokens

dbrain-processor

Personal assistant for processing daily voice/text entries from Telegram. Classifies content, saves thoughts to Obsidian with wiki-links, generates HTML reports. Integrates Your Business context (clients, projects, CRM). Triggers on /process command or daily 21:00 cron.

smixs/agent-second-brain · 60 tokens

autograph

Schema-as-code enforcement for any Obsidian vault. Zero hardcoded domains. Use when creating vault cards, checking vault health, running schema compliance, deduplicating entities, generating MOC indexes, running decay cycles, bootstrapping a vault, fixing wikilinks, finding orphans or backlinks, extracting entities…

smixs/agent-second-brain · 89 tokens

braindb

Memory recall and save. Use at every conversation start and whenever the user shares personal information, expertise, project context, preferences, or decisions worth remembering long-term.

dimknaf/braindb · 36 tokens

braindb-agent

Persistent memory across sessions via the BrainDB agent. Use at conversation start and whenever you need to recall what you know about the user or save new information to long-term memory.

dimknaf/braindb · 40 tokens

braindb-custom-profile

How to author a BrainDB custom profile — prompt add/replace fragments and an optional keyless ingestor — that shapes wiki naming/structure and feeds a custom ingestion source, with zero effect on defaults when inactive.

dimknaf/braindb · 49 tokens