claw-memory-manager

claw-memory-manager is a skill for Claude Code, Codex from Songhonglei/better-agent-skills. It costs 153 tokens per session (1,861 once invoked), scanned A, original, MIT.

A command-line tool for configuring OpenClaw Agent's built-in memory features. OpenClaw Agent is an AI agent; its memory features consolidate older information and add relevant memories to new conversations.

In plain words
What is it for?
It helps enable, disable, preview, and tune Dreaming and Active Memory settings, including memory style, age limits, half-life, and timezone.
Why use it?
It avoids editing deeply nested configuration files in several locations by hand and can make backups before changes and restart the gateway.

Skill for Claude CodeCodex

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

Good fit It helps enable, disable, preview, and tune Dreaming and Active Memory settings, including memory style, age limits, half-life, and timezone.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/songhonglei/better-agent-skills/claw-memory-manager
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.

Any agent
npx skills add Songhonglei/better-agent-skills --skill claw-memory-manager
Clone the repo
git clone --depth 1 https://github.com/Songhonglei/better-agent-skills

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 claw-memory-manager

README.md
[![agentmods](https://agentmods.dev/badge/skills/songhonglei/better-agent-skills/claw-memory-manager/github.svg)](https://agentmods.dev/skills/songhonglei/better-agent-skills/claw-memory-manager)
Your own site
<a href="https://agentmods.dev/skills/songhonglei/better-agent-skills/claw-memory-manager"><img src="https://agentmods.dev/badge/skills/songhonglei/better-agent-skills/claw-memory-manager/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.

agentmods 80×15 button for claw-memory-manager

Your own site · 80×15
<a href="https://agentmods.dev/skills/songhonglei/better-agent-skills/claw-memory-manager"><img src="https://agentmods.dev/badge/skills/songhonglei/better-agent-skills/claw-memory-manager.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 153 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,861 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00153 $0.01861
Opus 5 $0.00077 $0.00931
Sonnet 5 $0.00031 $0.00372
Haiku 4.5 $0.00015 $0.00186

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

Security

Grade A, and why

claw-memory-manager 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 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/agent_memory.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/claw-memory-manager/SKILL.md · 190 lines

How it starts

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

Claw Memory Manager

Manage OpenClaw Agent's built-in memory features through one safe CLI: enable/disable, tune parameters, preview with dry-run, auto-backup, and auto-restart.

What it does

OpenClaw Agent has two built-in memory features:

  1. Dreaming — scheduled job (default 03:00 local time) that scans your daily memory signals, scores them, and auto-promotes high-recall items to long-term MEMORY.md.
  2. Active Memory — lightweight sub-agent that runs before every turn, retrieves relevant memories, and injects them into the model context window for better recall.

Both require editing nested config trees, syncing to multiple paths in managed environments, and restarting the gateway. This skill does it all in one command, safely.

Supported features

Feature What CLI flags
dreaming Light→REM→Deep three-phase memory consolidation --half-life, --max-age, --timezone
active-memory Proactive memory injection with style presets --style {conservative,balanced,aggressive}

See references/features.md for full schema details.

Quick start — Dreaming

# Check OpenClaw support
python3 scripts/agent_memory.py check dreaming

# See current state
python3 scripts/agent_memory.py status dreaming

# Enable with defaults (half-life 30d, max-age 60d, timezone UTC)
python3 scripts/agent_memory.py enable dreaming

# Custom tuning
python3 scripts/agent_memory.py enable dreaming --half-life 14 --timezone America/New_York

# Preview only
python3 scripts/agent_memory.py enable dreaming --dry-run

# Disable
python3 scripts/agent_memory.py disable dreaming

Quick start — Active Memory

# Enable with default style (balanced)
python3 scripts/agent_memory.py enable active-memory

# Pick a style preset
python3 scripts/agent_memory.py enable active-memory --style conservative
python3 scripts/agent_memory.py enable active-memory --style aggressive

# Inspect current style + parameters
python3 scripts/agent_memory.py status active-memory

# Preview only
python3 scripts/agent_memory.py enable active-memory --style aggressive --dry-run

# Disable
python3 scripts/agent_memory.py disable active-memory

Read the full file on GitHub · 190 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 190 lines · 153 tokens per session scan A 0ccec9c0417b

Subscribe to this mod's changes

claw-memory-manager is a skill published in the GitHub repository Songhonglei/better-agent-skills (3 stars, last pushed 4d ago), licensed MIT. It adds 153 tokens to every session and 1,861 once invoked, about $0.0008 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.