Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

memstate-ai内存状态 AI

Agent Skill

memstate-ai 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,872

周安装

199

GitHub Stars

公开资料未说明

下载量

1,576
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:memstate-ai(内存状态 AI)
来源仓库:https://github.com/yepthatsjason/memstate-ai
安装命令:
openclaw skills install memstate-ai
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install memstate-ai

简介

memstate-ai 实现 AI Agent 的版本化结构化内存管理。

  • 适合需要精确追踪事实变更历史的协作型智能体环境。
  • 每个事实变动均被记录,确保返回最新答案而非过时信息。
  • 使用前需初始化内存仓库并设置访问权限,防止未授权修改。
  • 建议启用自动快照功能以支持回滚与审计需求。memstate-ai 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
memstate-ai
description
>
metadata
{"openclaw": {"requires": {"bins": ["python3"], "env": ["MEMSTATE_API_KEY"]}, "primaryEnv": "MEMSTATE_API_KEY", "homepage": "https://memstate.ai"}}

Memstate AI Memory Management

This skill provides a full-featured alternative to the Memstate MCP plugin by interacting directly with the Memstate REST API. It gives agents a persistent, structured, and versioned knowledge base with conflict detection, semantic search, and full version history.

Core Concepts

ConceptDescription
ProjectTop-level container for memories (e.g., myapp, backend-api). Auto-created on first write.
KeypathDot-separated hierarchical path (e.g., auth.method). Auto-prefixed with project.{project_id}.
MemoryA single fact or markdown summary stored at a keypath with full version history.
VersioningWriting to an existing keypath supersedes the old value. History is always preserved.
TombstoneDeleting a keypath creates a tombstone version — history is never destroyed.

Input Formats

Direct keypath = value assignment

config.port = 8080
database.engine = PostgreSQL 16
auth.method = JWT with httpOnly cookies
status.deployment = production

Markdown (preferred for task summaries)

## Architecture Decision
- Database: PostgreSQL 16
- Auth: JWT with httpOnly cookies
- Deploy: Docker on AWS ECS
- API style: REST with OpenAPI 3.1

Workflows

Before Starting a Task (Recall)

Always check what already exists before making decisions or modifying code.

# 1. Semantic search — find relevant facts by meaning
python3 {baseDir}/scripts/memstate_search.py \
  --project "myapp" \
  --query "how is authentication configured"

# 2. Browse the full project tree (all domains and keypaths)
python3 {baseDir}/scripts/memstate_get.py \
  --project "myapp"

# 3. Get a specific subtree with full content
python3 {baseDir}/scripts/memstate_get.py \
  --project "myapp" --keypath "database" --include-content

After Completing a Task (Remember)

# Store a single fact (config, status, version numbers)
python3 {baseDir}/scripts/memstate_set.py \
  --project "myapp" \
  --keypath "config.port" \
  --value "8080" \
  --category "fact"

# Store a rich markdown summary (AI extracts keypaths automatically)
python3 {baseDir}/scripts/memstate_remember.py \
  --project "myapp" \
  --content "## Auth Migration\
- Changed from JWT to server-side sessions\
- Added MFA via TOTP\
- Files: auth.go, middleware.go" \
  --source "agent"

Manage History and Cleanup

# View how a fact changed over time
python3 {baseDir}/scripts/memstate_history.py \
  --project "myapp" --keypath "database.engine"

# Soft-delete an outdated keypath (history preserved)
python3 {baseDir}/scripts/memstate_delete.py \
  --project "myapp" --keypath "config.old_setting"

# Soft-delete an entire project
python3 {baseDir}/scripts/memstate_delete_project.py \
  --project "myapp"

Script Reference

memstate_set.py — Set a single keypath value

Stores one fact at a specific keypath. Synchronous, immediately available. Supersedes the previous value if the keypath already exists.

python3 {baseDir}/scripts/memstate_set.py \
  --project PROJECT_ID \
  --keypath KEYPATH \
  --value VALUE \
  [--category CATEGORY]  # decision | fact | config | requirement | note | code | learning
  [--topics TAG1,TAG2]

Response keys: action (created|superseded), memory_id, version


memstate_remember.py — Ingest markdown or text

Preferred for task summaries, meeting notes, or any multi-fact content. The AI engine automatically extracts structured keypaths from your text. Processing is async (~15–18 s); the script polls until completion.

python3 {baseDir}/scripts/memstate_remember.py \
  --project PROJECT_ID \
  --content "MARKDOWN_OR_TEXT" \
  [--source agent|readme|docs|meeting|code] \
  [--context "optional hint for extraction"]

Response keys: status (completed|failed), job_id, memories_created


memstate_get.py — Browse and retrieve memories

# List all projects
python3 {baseDir}/scripts/memstate_get.py

# Full project tree (returns domains and keypaths)
python3 {baseDir}/scripts/memstate_get.py --project PROJECT_ID

# Subtree at a keypath
python3 {baseDir}/scripts/memstate_get.py \
  --project PROJECT_ID --keypath KEYPATH [--include-content] [--at-revision N]

# Single memory by UUID
python3 {baseDir}/scripts/memstate_get.py --memory-id UUID

Response keys (project tree): domains, total_memories Response keys (subtree): memories, total_count Response keys (list projects): projects


memstate_search.py — Semantic search

Find memories by meaning when you don't know the exact keypath.

python3 {baseDir}/scripts/memstate_search.py \
  --query "NATURAL_LANGUAGE_QUERY" \
  [--project PROJECT_ID] \
  [--limit N]  # default 20, max 100

Response keys: results (array), total_found, query


memstate_history.py — Version history

View all versions of a keypath or memory chain.

python3 {baseDir}/scripts/memstate_history.py \
  --project PROJECT_ID --keypath KEYPATH
# or
python3 {baseDir}/scripts/memstate_history.py \
  --memory-id UUID

Response keys: versions (array), total_versions


memstate_delete.py — Soft-delete a keypath

Creates a tombstone version. History is always preserved.

python3 {baseDir}/scripts/memstate_delete.py \
  --project PROJECT_ID \
  --keypath KEYPATH \
  [--recursive]  # delete entire subtree

Response keys: deleted_count, deleted_keypaths


memstate_delete_project.py — Soft-delete a project

python3 {baseDir}/scripts/memstate_delete_project.py \
  --project PROJECT_ID

Response keys: project_id, deleted_count


Best Practices

  1. One keypath = one fact. Use api.style not api. Be specific.
  2. Update, don't duplicate. When a fact changes, call memstate_set.py with the SAME keypath and the NEW value. Do not create a new keypath.
  3. Trust is_latest: true. Search results may show multiple versions. Only trust results where is_latest is true.
  4. Use Markdown for summaries. memstate_remember.py excels at parsing Markdown lists, headings, and key-value pairs into structured keypaths.
  5. Search before browsing. memstate_search.py is faster than browsing the tree when you know what you're looking for.
  6. Use categories. Setting --category decision on architecture choices makes them easier to filter later.

Authentication

Set the MEMSTATE_API_KEY environment variable before running any script:

export MEMSTATE_API_KEY="your_api_key_here"

Get your API key at https://memstate.ai/dashboard.

Resources

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

89.74%
按下载量换算1,414

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills