Auto Memory Distiller

WarnAudited by ClawScan on May 18, 2026.

Overview

The skill’s purpose is coherent, but it can silently read all OpenClaw main-session logs, send raw conversation chunks to Gemini, and save long-lived memory cards without clear limits.

Review before installing. Use this only if you are comfortable with a background process reading OpenClaw session logs and sending them to Gemini. Run it manually first, use a dedicated Gemini key, add local redaction and session/path exclusions, and review or delete generated memory cards before relying on them.

Findings (6)

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

What this means

Private conversations, mistakes, secrets, or misleading content from old sessions can become long-lived memory and influence future agent behavior.

Why it was flagged

The code scans all main-session conversation logs and writes derived Markdown memory topics, but the artifacts do not show allowlists, exclusions, retention limits, or review before persistence.

Skill content
SESSIONS_DIR = HOME_DIR / ".openclaw" / "agents" / "main" / "sessions" ... session_files = list(SESSIONS_DIR.glob("*.jsonl")) ... TOPICS_DIR = WORKSPACE_DIR / "memory" / "topics"
Recommendation

Add explicit opt-in session/path selection, exclusion patterns, retention and deletion controls, and user review before memory cards are reused.

What this means

Sensitive conversation content, including secrets accidentally present in logs, may be sent to Google/Gemini during automatic distillation.

Why it was flagged

Raw conversation text is embedded in the prompt sent to the Gemini API; redaction is requested from the remote model rather than performed before transmission.

Skill content
【待处理的对话内容 ...】\n{conversation_text}\n... client.models.generate_content(model=DISTILL_MODEL, contents=prompt, ...)
Recommendation

Perform local secret redaction before any provider call, clearly disclose external processing, and require user-controlled scope or approval for which sessions are sent.

What this means

Once scheduled, the skill may continue silently distilling future conversations without per-run awareness.

Why it was flagged

The documentation encourages unattended recurring execution, which can keep processing and transmitting new session data after initial setup.

Skill content
无需人工干预。建议把该脚本绑定到系统的 crontab 或者通过 OpenClaw 的 heartbeat 在闲暇时自动触发
Recommendation

Do not schedule it silently by default; add visible run logs, pause/disable controls, dry-run mode, and explicit consent for recurring operation.

What this means

Users may overestimate how well secrets are protected during processing.

Why it was flagged

The skill presents redaction as a safety feature, but users should understand that model-based redaction means sensitive text may reach the model provider before it is redacted.

Skill content
安全过滤 (Redaction):利用大模型清洗真实的 API Key 和无关痛痒的报错日志。
Recommendation

Clarify that redaction is remote/model-based unless local pre-redaction is added.

What this means

The configured API key can be used for model calls and may incur provider charges or quota usage.

Why it was flagged

The skill uses a Gemini/Google API key from the environment or workspace .env. This is purpose-aligned, but the registry metadata declares no required env vars or primary credential.

Skill content
load_dotenv(WORKSPACE_DIR / ".env"); API_KEY = os.getenv("GEMINI_API_KEY") or os.getenv("GOOGLE_API_KEY")
Recommendation

Declare the credential requirement, use a dedicated limited key if possible, and monitor provider usage.

What this means

Installation depends on whatever package versions are resolved at install time.

Why it was flagged

The documented setup requires external Python packages, but no install spec, pinned versions, or lockfile are provided.

Skill content
pip install google-genai python-dotenv
Recommendation

Provide a pinned requirements file or install spec and verify packages before installation.