Token导航 LogoToken导航TokenDH.com
研究检索需要联网unknown未标认证来源可访问许可证需确认审计通过

memory-system-v2内存系统 v2

Agent Skill

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

总安装

930

周安装

38

下载量

301
Local Agent

安装说明

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

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:memory-system-v2(内存系统 v2)
来源仓库:https://skills.volces.com
仓库路径:memory-system-v2
安装命令:
# Install jq (required dependency)
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.sh安装方式未标明
# Install jq (required dependency)

简介

memory-system-v2 用于查找、检索和筛选相关信息,适合在 Local Agent 中快速定位候选结果。

  • 适用于需要根据关键词或任务场景进行信息定位的场景,如研究、数据整理等。
  • 需先安装 jq 作为依赖,具体用法可通过来源仓库和 README 进一步确认。
  • 安装前需确认权限范围、维护状态及是否触发联网或命令执行操作。
  • 建议结合实际环境验证其兼容性和稳定性后再正式使用。

SKILL.md

Memory System v2.0

Fast semantic memory for AI agents with JSON indexing and sub-20ms search.

Overview

Memory System v2.0 is a lightweight, file-based memory system designed for AI agents that need to:

  • Remember learnings, decisions, insights, events, and interactions across sessions
  • Search memories semantically in <20ms
  • Auto-consolidate daily memories into weekly summaries
  • Track importance and context for better recall

Built in pure bash + jq. No databases required.

Features

  • Fast Search: <20ms average search time (36 tests passed)
  • 🧠 Semantic Memory: Capture 5 types of memories (learning, decision, insight, event, interaction)
  • 📊 Importance Scoring: 1-10 scale for memory prioritization
  • 🏷️ Tagging System: Organize memories with tags
  • 📝 Context Tracking: Remember what you were doing when memory was created
  • 📅 Auto-Consolidation: Weekly summaries generated automatically
  • 🔍 Smart Search: Multi-word search with importance weighting
  • 📈 Stats & Analytics: Track memory counts, types, importance distribution

Quick Start

Installation

# Install jq (required dependency)
brew install jq

# Copy memory-cli.sh to your workspace
# Already installed if you're using Clawdbot

Basic Usage

Capture a memory:

./memory/memory-cli.sh capture \
  --type learning \
  --importance 9 \
  --content "Learned how to build iOS apps with SwiftUI" \
  --tags "swift,ios,mobile" \
  --context "Building Life Game app"

Search memories:

./memory/memory-cli.sh search "swiftui ios"
./memory/memory-cli.sh search "build app" --min-importance 7

Recent memories:

./memory/memory-cli.sh recent learning 7 10
./memory/memory-cli.sh recent all 1 5

View stats:

./memory/memory-cli.sh stats

Auto-consolidate:

./memory/memory-cli.sh consolidate

Memory Types

1. Learning (importance: 7-9)

New skills, tools, patterns, techniques you've acquired.

Example:

./memory/memory-cli.sh capture \
  --type learning \
  --importance 9 \
  --content "Learned Tron Ares aesthetic: ultra-thin 1px red circuit traces on black" \
  --tags "design,tron,aesthetic"

2. Decision (importance: 6-9)

Choices made, strategies adopted, approaches taken.

Example:

./memory/memory-cli.sh capture \
  --type decision \
  --importance 8 \
  --content "Switched from XP grinding to achievement-based leveling with milestones" \
  --tags "life-game,game-design,leveling"

3. Insight (importance: 8-10)

Breakthroughs, realizations, aha moments.

Example:

./memory/memory-cli.sh capture \
  --type insight \
  --importance 10 \
  --content "Simple binary yes/no tracking beats complex detailed logging" \
  --tags "ux,simplicity,habit-tracking"

4. Event (importance: 5-8)

Milestones, completions, launches, significant occurrences.

Example:

./memory/memory-cli.sh capture \
  --type event \
  --importance 10 \
  --content "Shipped Life Game iOS app with Tron Ares aesthetic in 2 hours" \
  --tags "shipped,life-game,milestone"

5. Interaction (importance: 5-7)

Key conversations, feedback, requests from users.

Example:

./memory/memory-cli.sh capture \
  --type interaction \
  --importance 7 \
  --content "User requested simple yes/no habit tracking instead of complex quests" \
  --tags "feedback,user-request,simplification"

Architecture

File Structure

memory/
├── memory-cli.sh              # Main CLI tool
├── index/
│   └── memory-index.json      # Fast search index
├── daily/
│   └── YYYY-MM-DD.md          # Daily memory logs
└── consolidated/
    └── YYYY-WW.md             # Weekly consolidated summaries

JSON Index Format

{
  "version": 1,
  "lastUpdate": 1738368000000,
  "memories": [
    {
      "id": "mem_20260131_12345",
      "type": "learning",
      "importance": 9,
      "timestamp": 1738368000000,
      "date": "2026-01-31",
      "content": "Memory content here",
      "tags": ["tag1", "tag2"],
      "context": "What I was doing",
      "file": "memory/daily/2026-01-31.md",
      "line": 42
    }
  ]
}

Performance Benchmarks

All 36 tests passed:

  • Search: <20ms average (fastest: 8ms, slowest: 18ms)
  • Capture: <50ms average
  • Stats: <10ms
  • Recent: <15ms
  • All operations: <100ms target ✅

Commands Reference

capture

./memory-cli.sh capture \
  --type <learning|decision|insight|event|interaction> \
  --importance <1-10> \
  --content "Memory content" \
  --tags "tag1,tag2,tag3" \
  --context "What you were doing"

search

./memory-cli.sh search "keywords" [--min-importance N]

recent

./memory-cli.sh recent <type|all> <days> <min-importance>

stats

./memory-cli.sh stats

consolidate

./memory-cli.sh consolidate [--week YYYY-WW]

Integration with Clawdbot

Memory System v2.0 is designed to work seamlessly with Clawdbot:

Auto-capture in AGENTS.md:

## Memory Recall
Before answering anything about prior work, decisions, dates, people, preferences, or todos: run memory_search on MEMORY.md + memory/*.md

Example workflow:

  1. Agent learns something new → memory-cli.sh capture
  2. User asks "What did we build yesterday?" → memory-cli.sh search "build yesterday"
  3. Agent recalls exact details with file + line references

Use Cases

1. Learning Tracking

Capture every new skill, tool, or technique you learn:

./memory-cli.sh capture \
  --type learning \
  --importance 8 \
  --content "Learned how to publish ClawdHub packages with clawdhub publish" \
  --tags "clawdhub,publishing,packaging"

2. Decision History

Record why you made specific choices:

./memory-cli.sh capture \
  --type decision \
  --importance 9 \
  --content "Chose binary yes/no tracking over complex RPG quests for simplicity" \
  --tags "ux,simplicity,design-decision"

3. Milestone Tracking

Log major achievements:

./memory-cli.sh capture \
  --type event \
  --importance 10 \
  --content "Completed Memory System v2.0: 36/36 tests passed, <20ms search" \
  --tags "milestone,memory-system,shipped"

4. Weekly Reviews

Auto-generate weekly summaries:

./memory-cli.sh consolidate --week 2026-05

Advanced Usage

Search with Importance Filter

# Only high-importance learnings
./memory-cli.sh search "swiftui" --min-importance 8

# All memories mentioning "API"
./memory-cli.sh search "API" --min-importance 1

Recent High-Priority Decisions

# Decisions from last 7 days with importance ≥ 8
./memory-cli.sh recent decision 7 8

Bulk Analysis

# See memory distribution
./memory-cli.sh stats

# Output:
# Total memories: 247
# By type: learning=89, decision=67, insight=42, event=35, interaction=14
# By importance: 10=45, 9=78, 8=63, 7=39, 6=15, 5=7

Limitations

  • Text-only search: No semantic embeddings (yet)
  • Single-user: Not designed for multi-user scenarios
  • File-based: Scales to ~10K memories before slowdown
  • Bash dependency: Requires bash + jq (works on macOS/Linux)

Future Enhancements

  • Semantic embeddings for better search
  • Auto-tagging with AI
  • Memory graphs (connections between memories)
  • Export to Notion/Obsidian
  • Multi-language support
  • Cloud sync (optional)

Testing

Full test suite with 36 tests covering:

  • Capture operations (10 tests)
  • Search functionality (12 tests)
  • Recent queries (6 tests)
  • Stats generation (4 tests)
  • Consolidation (4 tests)

Run tests:

./memory-cli.sh test  # If test suite is included

All tests passed ✅ - See memory-system-v2-test-results.md for details.

Performance

Design goals:

  • Search: <20ms ✅
  • Capture: <50ms ✅
  • Stats: <10ms ✅
  • All operations: <100ms ✅

Tested on: M1 Mac, 247 memories in index

Why Memory System v2.0?

Problem: AI agents forget everything between sessions. Context is lost.

Solution: Fast, searchable memory that persists across sessions.

Benefits:

  • Agent can recall prior work, decisions, learnings
  • User doesn't repeat themselves
  • Context builds over time
  • Agent gets smarter with use

Credits

Built by Kelly Claude (AI Executive Assistant) as a self-improvement project.

Design philosophy: Fast, simple, file-based. No complex dependencies.

License

MIT License - Use freely, modify as needed.

Support

Issues: https://github.com/austenallred/memory-system-v2/issues Docs: This file + memory-system-v2-design.md


Memory System v2.0 - Remember everything. Search in milliseconds.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Local Agent

89.43%
按下载量换算269

安全审计

Socket

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills