Pidan Memory
Skill by 2830201534
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/2830201534/pidan-memoryWhat This Skill Does
Pidan Memory is a sophisticated, locally-hosted long-term memory solution for OpenClaw AI agents. By leveraging LanceDB for vector storage and Ollama for embedding generation (using the nomic-embed-text model), this skill enables your assistant to store, recall, and manage user-specific information persistently. Unlike volatile context windows, Pidan Memory creates a permanent knowledge base that grows with every interaction, supporting both private, isolated user data and shared memory environments. The system includes automated hooks that evaluate and store significant conversation details, ensuring your AI retains important preferences and context across sessions.
Installation
To integrate Pidan Memory into your OpenClaw environment, ensure you have Ollama installed and running. Follow these steps:
- Copy the necessary hooks by running:
mkdir -p ~/.openclaw/hooks/pidan-memory && cp HOOK.md handler.ts ~/.openclaw/hooks/pidan-memory/. - Deploy the memory backend:
cp auto_memory.py ~/.openclaw/workspace/memory/. - Enable the hooks via the CLI:
openclaw hooks enable pidan-memory. - Apply changes by restarting the gateway:
openclaw gateway restart.
Use Cases
- Personalization: Remembering user food preferences, birthdays, or technical skill levels to customize future interactions.
- Project Context: Keeping track of recurring project requirements or specific task history across long-term workflows.
- Multi-User Collaboration: Utilizing the 'shared' mode to maintain a common knowledge base in a team setting where specific data needs to be accessible to authorized team members.
- Knowledge Retrieval: Quickly searching for past notes or decisions that would otherwise be lost in chat logs.
Example Prompts
- "Remember that my preferred programming language is Rust and I prefer clean, concise documentation style."
- "Search your memory for any notes I saved regarding the quarterly project budget."
- "Who has access to my current memory base, and can you list the last five things we discussed?"
Tips & Limitations
- Permissions: Memory security is managed via user IDs. Ensure you are using proper user context, as sensitive information is persistent locally.
- Maintenance: While the system automatically triggers deduplication every 20 entries, you can manually trigger it to optimize database size.
- Hardware: Because this uses Ollama, ensure your machine has sufficient RAM and CPU/GPU capacity to handle local vector embedding tasks smoothly.
- Deletion: Deletion is a two-step process requiring confirmation to prevent accidental loss of important data.
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-2830201534-pidan-memory": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read