跳到正文
TakoAPI
返回技能列表

memento

由 braibaud 提供

Coding Agents & IDEs
427下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Local persistent memory for OpenClaw agents.

描述

该技能的功能

Memento adds persistent long-term memory to OpenClaw agents. It captures conversations, extracts structured facts via a configurable LLM, and injects relevant context before each agent turn. All data is stored locally in SQLite, and nothing is uploaded unless you opt into a cloud LLM for extraction.

Unlike cloud memory services, it keeps all data on-device in SQLite and supports fully local extraction via Ollama, so conversations never have to leave the machine.

何时使用

  • Remembering user preferences across separate sessions
  • Tracking decisions and action items from past conversations
  • Sharing knowledge between multiple agents on the same machine
  • Running fully offline memory using a local Ollama model
  • Migrating existing markdown memory files into a structured knowledge base

示例工作流

输入

User asks: 'What did we decide about the database schema last week?'

智能体
  1. 1

    Recall layer runs FTS5 keyword search against local SQLite facts

  2. 2

    Optional semantic embeddings surface related entries

  3. 3

    Matching facts are ranked by recency, frequency, and category weight

  4. 4

    Top facts are injected into the prompt via the before_prompt_build hook

  5. 5

    Agent responds using the retrieved context

输出

Agent accurately references the past schema decision without the user restating it

前置要求

  • API key for Anthropic, OpenAI, or Mistral (only if using a cloud LLM for fact extraction)
  • Ollama installed locally (only if using local or air-gapped extraction)

安装

clawhub install braibaud/memento

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接