jrbobbyhansen-pixel

Memory Setup

AI 智能体v1.0.0
作者:jrbobbyhansen-pixel更新于 2026-05-11memory-setup@clawhub_jrbobbyhansen-pixel/memory-setup
上下文管理记忆增强工具调用

据 AlphaMoat 统计,截至 2026-10,Memory Setup 累计下载 409,924 次、获 135 个星标,按累计下载量在本次参与排名的 10,914 个 AI 技能中排名第 59 位,在「AI 智能体」分类(1,632 个)中排名第 11 位。

列表默认按累计下载量排序,也可按星标排序;详情页排名按累计下载量计算。

累计下载
41.0万
星标
135
全站下载量排名
#59
全站前 1% · 「AI 智能体」前 1%
平台累计下载星标评论
ClawHub ↗4.7万1295
SkillHub ↗41.0万135—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

在 ~/.clawdbot/clawdbot.json 里加上 memorySearch 段并启用,把来源设为记忆文件与会话记录,再在工作区建好 MEMORY.md 与 memory 下的日志、项目、群聊、系统子目录。嵌入提供方可以选 voyage、openai 或 local,voyage 与 openai 分别需要 VOYAGE_API_KEY 与 OPENAI_API_KEY,没有密钥就用 local。改完配置要重启网关,最后让 agent 复述一段旧事来验证是否真的能检索到。

资料发布于 2026-10-27

可以用来做什么

  • 让 agent 在新会话里想起旧项目与偏好
  • 为长期记忆建立可检索的目录与日志格式

什么时候用

  • agent 每次会话都像失忆一样从头开始时
  • 需要把会话记录也纳入语义检索时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

帮我按这份模板把记忆检索配上。
记忆搜不到东西,帮我看看配置哪里不对。

月度数据趋势

累计下载41.0万
11.0万27.1万43.2万2026-09 · 累计下载 13.3万2026-10 · 累计下载 41.0万26-0926-10
星标135
1331341352026-09 · 星标 1332026-10 · 星标 13526-0926-10
月份累计下载环比星标
2026-1041.0万—135
2026-0913.3万—133

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

4.0 KB · ClawHub v1.0.0
---
name: memory-setup
description: Enable and configure Moltbot/Clawdbot memory search for persistent context. Use when setting up memory, fixing "goldfish brain," or helping users configure memorySearch in their config. Covers MEMORY.md, daily logs, and vector search setup.
---

# Memory Setup Skill

Transform your agent from goldfish to elephant. This skill helps configure persistent memory for Moltbot/Clawdbot.

## Quick Setup
展开全部(共 172 行)

### 1. Enable Memory Search in Config

Add to `~/.clawdbot/clawdbot.json` (or `moltbot.json`):

```json
{
  "memorySearch": {
    "enabled": true,
    "provider": "voyage",
    "sources": ["memory", "sessions"],
    "indexMode": "hot",
    "minScore": 0.3,
    "maxResults": 20
  }
}
```

### 2. Create Memory Structure

In your workspace, create:

```
workspace/
├── MEMORY.md              # Long-term curated memory
└── memory/
    ├── logs/              # Daily logs (YYYY-MM-DD.md)
    ├── projects/          # Project-specific context
    ├── groups/            # Group chat context
    └── system/            # Preferences, setup notes
```

### 3. Initialize MEMORY.md

Create `MEMORY.md` in workspace root:

```markdown
# MEMORY.md — Long-Term Memory

## About [User Name]
- Key facts, preferences, context

## Active Projects
- Project summaries and status

## Decisions & Lessons
- Important choices made
- Lessons learned

## Preferences
- Communication style
- Tools and workflows
```

## Config Options Explained

| Setting | Purpose | Recommended |
|---------|---------|-------------|
| `enabled` | Turn on memory search | `true` |
| `provider` | Embedding provider | `"voyage"` |
| `sources` | What to index | `["memory", "sessions"]` |
| `indexMode` | When to index | `"hot"` (real-time) |
| `minScore` | Relevance threshold | `0.3` (lower = more results) |
| `maxResults` | Max snippets returned | `20` |

### Provider Options
- `voyage` — Voyage AI embeddings (recommended)
- `openai` — OpenAI embeddings
- `local` — Local embeddings (no API needed)

### Source Options
- `memory` — MEMORY.md + memory/*.md files
- `sessions` — Past conversation transcripts
- `both` — Full context (recommended)

## Daily Log Format

Create `memory/logs/YYYY-MM-DD.md` daily:

```markdown
# YYYY-MM-DD — Daily Log

## [Time] — [Event/Task]
- What happened
- Decisions made
- Follow-ups needed

## [Time] — [Another Event]
- Details
```

## Agent Instructions (AGENTS.md)

Add to your AGENTS.md for agent behavior:

```markdown
## Memory Recall
Before answering questions about prior work, decisions, dates, people, preferences, or todos:
1. Run memory_search with relevant query
2. Use memory_get to pull specific lines if needed
3. If low confidence after search, say you checked
```

## Troubleshooting

### Memory search not working?
1. Check `memorySearch.enabled: true` in config
2. Verify MEMORY.md exists in workspace root
3. Restart gateway: `clawdbot gateway restart`

### Results not relevant?
- Lower `minScore` to `0.2` for more results
- Increase `maxResults` to `30`
- Check that memory files have meaningful content

### Provider errors?
- Voyage: Set `VOYAGE_API_KEY` in environment
- OpenAI: Set `OPENAI_API_KEY` in environment
- Use `local` provider if no API keys available

## Verification

Test memory is working:

```
User: "What do you remember about [past topic]?"
Agent: [Should search memory and return relevant context]
```

If agent has no memory, config isn't applied. Restart gateway.

## Full Config Example

```json
{
  "memorySearch": {
    "enabled": true,
    "provider": "voyage",
    "sources": ["memory", "sessions"],
    "indexMode": "hot",
    "minScore": 0.3,
    "maxResults": 20
  },
  "workspace": "/path/to/your/workspace"
}
```

## Why This Matters

Without memory:
- Agent forgets everything between sessions
- Repeats questions, loses context
- No continuity on projects

With memory:
- Recalls past conversations
- Knows your preferences
- Tracks project history
- Builds relationship over time

Goldfish → Elephant. 🐘

「AI 智能体」分类下的热门技能

jrbobbyhansen-pixel 的其他技能

数据月份:2026-10 · 下载/星标数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。