smart-memory
Context-aware memory for AI agents with dual retrieval modes — fast vector search or curated Focus Agent synthesis. SQLite backend, zero configuration, local embeddings.
Why use this skill?
Enhance OpenClaw with Smart Memory. A local, privacy-focused tool offering hybrid vector and keyword search with advanced Focus Agent synthesis for complex queries.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/getmolty/smart-memorycnWhat This Skill Does
Smart Memory v2.1 acts as a powerful, drop-in replacement for the standard OpenClaw memory system. It transforms how your agent interacts with historical data by leveraging a sophisticated hybrid search engine. Built upon a robust SQLite backend, it utilizes FTS5 for keyword-based BM25 ranking and local Transformers.js embeddings for semantic understanding. The key innovation is the 'Focus Agent' feature—a multi-pass retrieval system that doesn't just return raw data, but retrieves, ranks, and synthesizes information into a coherent, confidence-scored narrative for the user. Because it operates entirely locally, it maintains maximum privacy while removing the need for external database dependencies or API keys for vector generation.
Installation
To get started with Smart Memory, ensure you have your OpenClaw environment initialized. Open your terminal and run the following command to install the package directly from the hub:
clawhub install openclaw/skills/skills/getmolty/smart-memory
Once the installation finishes, initialize your local database by running the synchronization command:
node smart-memory/smart_memory.js --sync
This setup requires zero configuration, allowing the skill to begin indexing your local files and context immediately.
Use Cases
Smart Memory excels in scenarios where information density is high and accuracy matters. Use 'Fast Mode' for retrieving quick syntax references, code snippets, or routine facts. Switch to 'Focus Mode' when you are tackling high-level architectural decisions, planning projects, or need to synthesize information spread across disparate documents. It is particularly effective for teams maintaining long-term project history, as the system provides a persistent source of truth that remains localized and searchable within the agent's workspace.
Example Prompts
- "What was the agreed-upon design pattern for the authentication module discussed in last month's project meetings?"
- "Search through my technical notes to find the CLI command for the remote git sync we used during the Alpha phase."
- "Focus Mode: Synthesize the pros and cons of the database migration strategy we discussed last week for the main application core."
Tips & Limitations
For optimal performance, ensure your source files are consistently synced using the --sync flag after significant updates. While 'Focus Mode' provides superior, context-aware answers, it is more computationally intensive than 'Fast Mode' because it performs multi-pass ranking and narrative synthesis. Reserve 'Focus Mode' for complex queries requiring deep synthesis. Note that because this tool uses local Transformers.js models, your CPU usage may spike briefly during the embedding process, which is expected behavior for local, private AI processing.
Metadata
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-getmolty-smart-memorycn": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write
Related Skills
MarketPulse
Query real-time and historical financial data across equities and crypto—prices, market moves, metrics, and trends for analysis, alerts, and reporting.
automation-workflows
Design and implement automation workflows to save time and scale operations as a solopreneur. Use when identifying repetitive tasks to automate, building workflows across tools, setting up triggers and actions, or optimizing existing automations. Covers automation opportunity identification, workflow design, tool selection (Zapier, Make, n8n), testing, and maintenance. Trigger on "automate", "automation", "workflow automation", "save time", "reduce manual work", "automate my business", "no-code automation".
openclaw-security
Unified security suite for agent workspaces. Installs, configures, and orchestrates all 11 OpenClaw security tools in one command — integrity, secrets, permissions, network, audit trail, signing, supply chain, credentials, injection defense, compliance, and incident response.
sapi-tts
Windows SAPI5 text-to-speech with Neural voices. Lightweight alternative to GPU-heavy TTS - zero GPU usage, instant generation. Auto-detects best available voice for your language. Works on Windows 10/11.
moltycash
Send USDC payments to molty users via x402 protocol. Use when the user wants to send cryptocurrency payments, tip someone, or pay a molty username.