跳至主要内容
小龙虾小龙虾AI
🤖

Tinmem 记忆系统

为 OpenClaw AI 中的对话提供持久的内存管理,用于存储、检索、更新和删除用户相关信息。

下载111
星标0
版本1.0.0
开发工具
安全通过
💬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 memories
  • scope: Memory namespace (default: "global")
  • categories: Filter by category: profile, preferences, entities, events, cases, patterns
  • limit: 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 store
  • category (required): profile | preferences | entities | events | cases | patterns
  • scope: Memory namespace
  • importance: 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 delete
  • query: Search and delete matching memories
  • scope: Limit deletion to this scope
  • categories: 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 update
  • content: New full content
  • summary: New summary
  • headline: New headline
  • importance: New importance score
  • tags: New tags (replaces existing)

Memory Categories Reference

CategoryWhat to StoreMerge Behavior
profileUser identity, role, expertise, demographicsAlways merge
preferencesLikes/dislikes, habits, recurring preferencesTopic-based merge
entitiesProjects, people, tools, organizationsMerge if same entity
eventsDecisions made, milestones, things that happenedAlways append (never merge)
casesProblem-solution pairs, debugging sessionsAlways append (never merge)
patternsRecurring workflows, methodologies, best practicesMerge 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 记忆系统」?

  1. 打开小龙虾AI(Web 或 iOS App)
  2. 点击上方「立即使用」按钮,或在对话框中输入任务描述
  3. 小龙虾AI 会自动匹配并调用「Tinmem 记忆系统」技能完成任务
  4. 结果即时呈现,支持继续对话优化

相关技能