🤖
Tinmem 记忆系统
为 OpenClaw AI 中的对话提供持久的内存管理,用于存储、检索、更新和删除用户相关信息。
安全通过
💬Prompt
技能说明
Tinmem Memory System
openclaw-tinmem provides persistent memory capabilities for the OpenClaw AI assistant.
Tools
memory_recall
Search and retrieve relevant memories from past conversations.
Use this tool when:
- The user references something from a previous conversation
- You need context about user preferences, background, or past decisions
- You want to check if a problem has been solved before
Parameters:
query(required): Search query to find relevant memoriesscope: Memory namespace (default: "global")categories: Filter by category: profile, preferences, entities, events, cases, patternslimit: Max results (default: 10)level: Detail level - L0 (headline), L1 (summary), L2 (full content)
Example:
{
"query": "user's preferred programming language",
"categories": ["profile", "preferences"],
"level": "L1"
}
memory_store
Store new information as a persistent memory.
Use this tool when:
- The user shares important personal information
- A significant decision is made
- A problem is solved in a novel way
- A new project or entity is introduced
Parameters:
content(required): The information to storecategory(required): profile | preferences | entities | events | cases | patternsscope: Memory namespaceimportance: 0.0-1.0 (default: 0.5)tags: Keywords for searchability
Example:
{
"content": "User is building a SaaS product called TaskFlow for project management, using Next.js 14 and PostgreSQL with Prisma",
"category": "entities",
"importance": 0.9,
"tags": ["taskflow", "nextjs", "postgresql", "saas"]
}
memory_forget
Remove memories that are no longer relevant or are incorrect.
Parameters:
id: Specific memory ID to deletequery: Search and delete matching memoriesscope: Limit deletion to this scopecategories: Limit deletion to these categories
Example:
{
"query": "old job at previous company",
"categories": ["profile", "entities"]
}
memory_update
Update an existing memory with corrected or additional information.
Parameters:
id(required): Memory ID to updatecontent: New full contentsummary: New summaryheadline: New headlineimportance: New importance scoretags: New tags (replaces existing)
Memory Categories Reference
| Category | What to Store | Merge Behavior |
|---|---|---|
profile | User identity, role, expertise, demographics | Always merge |
preferences | Likes/dislikes, habits, recurring preferences | Topic-based merge |
entities | Projects, people, tools, organizations | Merge if same entity |
events | Decisions made, milestones, things that happened | Always append (never merge) |
cases | Problem-solution pairs, debugging sessions | Always append (never merge) |
patterns | Recurring workflows, methodologies, best practices | Merge if same pattern |
Notes
- Memories are automatically injected into context before each response via
<agent-experience>tags - New memories are automatically extracted after each conversation turn
- Similar memories are deduplicated using LLM-based analysis
- All memories persist across sessions in a local LanceDB database
如何使用「Tinmem 记忆系统」?
- 打开小龙虾AI(Web 或 iOS App)
- 点击上方「立即使用」按钮,或在对话框中输入任务描述
- 小龙虾AI 会自动匹配并调用「Tinmem 记忆系统」技能完成任务
- 结果即时呈现,支持继续对话优化