clawmem-curator

clawmem-curator is an agent for Claude Code from BFLabsAI/clawmem-bf. It costs 62 tokens per session (3,321 once invoked), scanned A, a copy of clawmem-curator, MIT.

A maintenance agent for ClawMem, an on-device memory system for coding assistants. It checks stored memories and manages their lifecycle, such as keeping, snoozing, archiving, or forgetting them.

In plain words
What is it for?
Use it to inspect memory health, test retrieval, find duplicates, rebuild the memory graph, and clean up indexes.
Why use it?
It helps prevent a memory store from becoming stale, duplicated, poorly indexed, or difficult to search after long work sessions.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

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 agents/bflabsai/clawmem-bf/clawmem-curator
Clone the repo
git clone --depth 1 https://github.com/BFLabsAI/clawmem-bf

Made for: Claude Code.

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 clawmem-curator

README.md
[![agentmods](https://agentmods.dev/badge/agents/bflabsai/clawmem-bf/clawmem-curator.svg)](https://agentmods.dev/agents/bflabsai/clawmem-bf/clawmem-curator)
Your own site
<a href="https://agentmods.dev/agents/bflabsai/clawmem-bf/clawmem-curator"><img src="https://agentmods.dev/badge/agents/bflabsai/clawmem-bf/clawmem-curator.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,321 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 91% copy Near-identical to another mod 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.00062 $0.03321
Opus 5 $0.00031 $0.01661
Sonnet 5 $0.00012 $0.00664
Haiku 4.5 $0.00006 $0.00332

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

Security

Grade A, and why

clawmem-curator 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.

Origin

This is a copy

91% identical to clawmem-curator — 4 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/clawmem-curator.md · 391 lines

How it starts

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

You are the ClawMem Curator, a maintenance agent that keeps the memory vault healthy. You perform the Tier 3 operations that the main agent neglects: lifecycle management, retrieval testing, dedup sweeps, graph rebuilds, and index hygiene.

You do NOT handle:

  • Tier 2 hooks (automatic, handled by existing hooks)
  • Content authoring or retrieval for user tasks
  • Collection configuration changes (user decision)
  • Embedding pipeline runs (daily timer's job)

Execution Phases

Run all 6 phases in order. Collect results for the summary report at the end. A failure in one phase does NOT block subsequent phases.

Phase 0: Health Snapshot

Gather baseline data. All subsequent phases use these values.

  1. Call mcp__clawmem__status() — document counts, embedding coverage
  2. Call mcp__clawmem__index_stats() — content type distribution, stale count, avg access
  3. Call mcp__clawmem__lifecycle_status() — active/archived/forgotten/pinned/snoozed counts
  4. Bash (60s timeout): clawmem doctor 2>&1

Record all values. Then check:

doctor reports issues?
  YES → log in report, flag for user
  NO → continue

needsEmbedding > 20% of totalDocuments?
  YES → flag: "Embedding backlog: N docs. Run `clawmem embed` or wait for daily timer."
  NO → continue

Phase 1: Lifecycle Triage

Confidence State Mapping

Derive memory state from confidence + access patterns:

HARDENED:    confidence >= 0.9 AND accessCount >= 5  → auto-pin candidate
VALIDATED:   confidence >= 0.7                        → protect from archive
EMERGING:    confidence >= 0.3                        → normal lifecycle
NASCENT:     confidence < 0.3                         → decay candidate
DEPRECATED:  >90 days since last access               → snooze/archive candidate

Step 1a: Dry-Run Sweep

Call mcp__clawmem__lifecycle_sweep(dry_run=true).

Review candidates. Skip any with content_type of decision or hub (infinite half-life). Report count and recommend config change if needed.

Read the full file on GitHub · 391 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 · 391 lines · 62 tokens per session scan A fd4d0cfddc94

Subscribe to this mod's changes

clawmem-curator is an agent published in the GitHub repository BFLabsAI/clawmem-bf (0 stars, last pushed 2mo ago), licensed MIT. It adds 62 tokens to every session and 3,321 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to clawmem-curator, differing in 4 lines, and is treated as a copy.

Related

Other agents, from other repositories

context-manager

Use this agent when you need to manage context across multiple agents and long-running tasks, especially for projects exceeding 10k tokens. This agent is essential for coordinating complex multi-agent workflows, preserving context across sessions, and ensuring coherent state management throughout extended development…

czlonkowski/n8n-mcp · 0 tokens

context

You are the Context agent. Your job is memory and context-window management: decide what to keep, compact, or recall so the working context stays high-signal and within budget.

WrongStack/WrongStack · 0 tokens

starlight-repos-extractor

Tier: Phase 1 extractor Dispatched via: Agent tool Output contract: JSONL atoms appended to.

frankxai/Starlight-Intelligence-System · 7 tokens

portable-memory-parent-orchestrator

Top orchestrator for the portable-process-memory feature. Delegates to sync-transport (push/fetch folded into the verbs, plain-git, credential inheritance, offline-fail-safe) and event-fold (ownership events + the fail-closed divergence tripwire in the gate fold). Architect-only; coordinates portability/transport work…

seanrreid/RAD_framework · 77 tokens

context

Agent "context" from hannsxpeter/godpowers, covering scope, context, decisions, rules and workflows.

hannsxpeter/godpowers · 0 tokens

context-finder

Read-only, memory- and index-aware codebase search. Use for any investigation — "where is X", "how does Y work", "what calls Z", "is W still used", "where is V configured", "does this event/pattern get emitted anywhere" — BEFORE reaching for grep. Consults the knowledge graph, code index, and prior session memory…

futuregerald/futuregerald-claude-plugin · 111 tokens