vector-memory
Smart memory search with automatic vector fallback. Uses semantic embeddings when available, falls back to built-in search otherwise. Zero configuration - works immediately after ClawHub install. No setup required - just install and memory_search works immediately, gets better after optional sync.
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- vector-memory
- description
- Smart memory search with automatic vector fallback. Uses semantic embeddings when available, falls back to built-in search otherwise. Zero configuration - works immediately after ClawHub install. No setup required - just install and memory_search works immediately, gets better after optional sync.
02 资源文件 14
- 参考文档_meta.json288 B
- 参考文档AGENTS.md2.3 KB
- 参考文档CHANGELOG.md1.2 KB
- 脚本install.sh2.3 KB
- 参考文档MEMORY_STRUCTURE.md2.3 KB
- 参考文档README.md5.6 KB
- 参考文档skills/vector-memory/README.md5.3 KB
- 参考文档skills/vector-memory/skill.json2.2 KB
- 脚本vector-memory/memory.js4.2 KB
- 参考文档vector-memory/package.json254 B
- 参考文档vector-memory/references/integration.md3.0 KB
- 参考文档vector-memory/references/pgvector.md1.1 KB
- 脚本vector-memory/smart_memory.js8.9 KB
- 脚本vector-memory/vector_memory_local.js8.9 KB
03 SKILL.md 正文
Vector Memory
Smart memory search that automatically selects the best method:
- Vector search (semantic, high quality) when synced
- Built-in search (keyword, fast) as fallback
Zero configuration required. Works immediately after install.
Quick Start
Install from ClawHub
npx clawhub install vector-memory
Done! memory_search now works with automatic method selection.
Optional: Sync for Better Results
node vector-memory/smart_memory.js --sync
After sync, searches use neural embeddings for semantic understanding.
How It Works
Smart Selection
// Same call, automatic best method
memory_search("James principles values")
// If vector ready: finds "autonomy, competence, creation" (semantic match)
// If not ready: uses keyword search (fallback)
Behavior Flow
- Check: Is vector index ready?
- Yes: Use semantic search (synonyms, concepts)
- No: Use built-in search (keywords)
- Vector fails: Automatically fall back
Tools
memory_search
Auto-selects best method
Parameters:
query(string): Search querymax_results(number): Max results (default: 5)
Returns: Matches with path, lines, score, snippet
memory_get
Get full content from file.
memory_sync
Index memory files for vector search. Run after edits.
memory_status
Check which method is active.
Comparison
| Feature | Built-in | Vector | Smart Wrapper |
|---|---|---|---|
| Synonyms | ❌ | ✅ | ✅ (when ready) |
| Setup | Built-in | Requires sync | ✅ Zero config |
| Fallback | N/A | Manual | ✅ Automatic |
Usage
Immediate (no action needed):
node vector-memory/smart_memory.js --search "query"
Better quality (after sync):
# One-time setup
node vector-memory/smart_memory.js --sync
# Now all searches use vector
node vector-memory/smart_memory.js --search "query"
Files
| File | Purpose |
|---|---|
smart_memory.js |
Main entry - auto-selects method |
vector_memory_local.js |
Vector implementation |
memory.js |
OpenClaw wrapper |
Configuration
None required.
Optional environment variables:
export MEMORY_DIR=/path/to/memory
export MEMORY_FILE=/path/to/MEMORY.md
Scaling
- < 1000 chunks: Built-in + JSON (current)
- > 1000 chunks: Use pgvector (see references/pgvector.md)
References
- Integration - Detailed setup
- pgvector - Large-scale deployment
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.