ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

smart-memory

Persistent local cognitive memory for OpenClaw via a Node adapter and FastAPI engine.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/chenghaifeng08-creator/smart-memory-automaton
Or

Smart Memory v2 Skill

Smart Memory v2 is a persistent cognitive memory runtime, not a legacy vector-memory CLI.

Core runtime:

  • Node adapter: smart-memory/index.js
  • Local API: server.py (FastAPI)
  • Orchestrator: cognitive_memory_system.py

Core Capabilities

  • Structured long-term memory (episodic, semantic, belief, goal)
  • Entity-aware retrieval and reranking
  • Hot working memory
  • Background cognition (reflection, consolidation, decay, conflict resolution)
  • Strict token-bounded prompt composition
  • Observability endpoints (/health, /memories, /memory/{id}, /insights/pending)

Native OpenClaw Integration (v2.5)

Use the native OpenClaw skill package:

  • skills/smart-memory-v25/index.js
  • Optional hook helper: skills/smart-memory-v25/openclaw-hooks.js
  • Skill descriptor: skills/smart-memory-v25/SKILL.md

Primary exports:

  • createSmartMemorySkill(options)
  • createOpenClawHooks({ skill, agentIdentity, summarizeWithLLM })

Tool Interface (for agent tool use)

  1. memory_search
  • Purpose: query long-term memory.
  • Input:
    • query (string, required)
    • type (all|semantic|episodic|belief|goal, default all)
    • limit (number, default 5)
    • min_relevance (number, default 0.6)
  • Behavior: checks /health first, then retrieves via /retrieve and returns formatted memory results.
  1. memory_commit
  • Purpose: explicitly persist important facts/decisions/beliefs/goals.
  • Input:
    • content (string, required)
    • type (semantic|episodic|belief|goal, required)
    • importance (1-10, default 5)
    • tags (string array, optional)
  • Behavior:
    • checks /health first
    • auto-tags if missing (working_question, decision heuristics)
    • commits are serialized (sequential) to protect local CPU embedding throughput
    • if server is unreachable, payload is queued to .memory_retry_queue.json
    • unreachable response is explicit:
      • Memory commit failed - server unreachable. Queued for retry.
  1. memory_insights
  • Purpose: surface pending background insights.
  • Input:
    • limit (number, default 10)
  • Behavior: checks /health first, calls /insights/pending, returns formatted insight list.

Reliability Guarantees

  • Mandatory health gate before each tool call (GET /health).
  • Retry queue flushes automatically on healthy tool calls and heartbeat.
  • Heartbeat supports automatic retry recovery and background maintenance.

Session Arc Lifecycle Hooks

The v2.5 skill supports episodic session arc capture:

  • checkpoint capture every 20 turns
  • session-end capture during teardown/reset

Flow:

  1. Extract recent conversation turns (up to 20).
  2. Run summarization with prompt:
    • Summarize this session arc: What was the goal? What approaches were tried? What decisions were made? What remains open?
  3. Persist summary through internal memory_commit as:
    • type: "episodic"
    • tags: ["session_arc", "YYYY-MM-DD"]

Passive Context Injection

Metadata

Stars3840
Views0
Updated2026-04-06
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-chenghaifeng08-creator-smart-memory-automaton": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.

Related Skills

us-stock-analysis

Comprehensive US stock analysis including fundamental analysis (financial metrics, business quality, valuation), technical analysis (indicators, chart patterns, support/resistance), stock comparisons, and investment report generation. Use when user requests analysis of US stock tickers (e.g., "analyze AAPL", "compare TSLA vs NVDA", "give me a report on Microsoft"), evaluation of financial metrics, technical chart analysis, or investment recommendations for American stocks.

chenghaifeng08-creator 3840

smart-memory-lite-automaton

Lightweight cognitive memory system for AI agents by Automaton. Auto-save conversations, quick recall, session management.

chenghaifeng08-creator 3840

market-analysis-cn

市场分析服务 | Market Analysis Service. 企业市场趋势分析 | Enterprise market trend analysis. 竞品分析 | Competitor analysis. 用户行为洞察 | User behavior insights. 触发词:市场分析、竞品分析、market analysis、趋势.

chenghaifeng08-creator 3840

memory-hygiene

Audit, clean, and optimize Clawdbot's vector memory (LanceDB). Use when memory is bloated with junk, token usage is high from irrelevant auto-recalls, or setting up memory maintenance automation.

chenghaifeng08-creator 3840

data-visualization-pro

AI-powered data visualization tool with 6 chart types (bar, line, pie, scatter, heatmap, radar), CSV/JSON import, AI-driven chart recommendations, interactive dashboards, and export to PNG/SVG/PDF. Use when creating charts, visualizing datasets, generating reports, or building data dashboards. Triggers on "chart", "graph", "visualize data", "plot", "dashboard", "data viz".

chenghaifeng08-creator 3840