Vanar Neutron

Vanar Neutron Memory

AI 智能体v1.3.2
作者:Vanar Neutron更新于 2026-05-11共 13 个版本 · 最新版本发布于 2026-02-28vanar-neutron-memory@clawhub_naeemmaliki036/vanar-neutron-memory
上下文管理记忆增强#Agent Memory

据 AlphaMoat 统计,截至 2026-09,Vanar Neutron Memory 累计下载 3,311 次、获 1 个星标,在全部 5,078 个 AI 技能中排名第 3,415 位,在「AI 智能体」分类(969 个)中排名第 701 位。

累计安装
297
累计下载
3,311
星标
1
全站排名
#3,415
全站前 68% · 「AI 智能体」前 73%
平台累计安装累计下载星标评论
ClawHub ↗1013,1581-
SkillHub ↗2973,3111—

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

这个技能是做什么的

它把对话、偏好与决策跨会话持久化,支持手动 save/search 命令,也可选择开启 Auto-Capture 与 Auto-Recall 钩子,在每轮 AI 前注入相关记忆。数据通过 HTTPS 发往 Neutron API,文档说明默认不发送任何数据,仅在运行命令或显式开启钩子时才上传明确保存的内容。

资料发布于 2026-10-27

可以用来做什么

  • 跨会话保存和检索智能体记忆
  • 用语义搜索按含义找回相关上下文
  • 选择开启自动捕获与自动召回钩子

什么时候用

  • 需要让智能体记住用户偏好或历史决策时
  • 想按语义而非关键词检索记忆时
  • 评估远程记忆存储可接受并配置 API 密钥时

示例提示词

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

保存‘用户偏好深色模式’到记忆。
用语义搜索找出用户喜欢的主题。
怎么开启自动捕获和自动召回钩子?

月度数据趋势

累计下载3,311
2,1942,7943,3942026-03 · 累计下载 2,2772026-05 · 累计下载 2,5492026-06 · 累计下载 2,6832026-07 · 累计下载 2,9222026-08 · 累计下载 3,0492026-09 · 累计下载 3,31126-0326-09
星标1
0122026-03 · 星标 12026-05 · 星标 12026-06 · 星标 12026-07 · 星标 12026-08 · 星标 12026-09 · 星标 126-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,311—1
2026-083,049+4.3%1
2026-072,922+8.9%1
2026-062,683+5.3%1
2026-052,549—1
2026-032,277—1

SKILL.md 原文

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

3.3 KB · ClawHub v1.3.2
---
name: vanar-neutron-memory
description: Save and recall agent memory with semantic search. Context that persists across every session.
user-invocable: true
metadata: {"openclaw": {"emoji": "🧠", "requires": {"env": ["API_KEY"]}, "primaryEnv": "API_KEY"}}
---

# Neutron Memory

Every conversation, preference, and decision your agent makes can persist across sessions. Save what matters, and when you need it, semantic search finds the right context by meaning — not keywords. Every session builds on the last.
展开全部(共 90 行)

## How It Works

**Manual** — save and search with simple commands:
1. `./scripts/neutron-memory.sh save "user prefers dark mode" "Preferences"` — save context
2. `./scripts/neutron-memory.sh search "what theme does the user like"` — find it by meaning

**Automatic** (opt-in) — enable hooks to capture and recall automatically:
1. **Auto-Capture** saves conversations after each AI turn
2. **Auto-Recall** finds relevant memories before each AI turn and injects them as context

## Quick Start

See **[SETUP.md](SETUP.md)** for the full setup guide. TL;DR:

1. Get a free API key at **https://openclaw.vanarchain.com/** ($20 free credits, no credit card)
2. `export API_KEY=nk_your_key`
3. `./scripts/neutron-memory.sh test`

## Commands

### Save
```bash
./scripts/neutron-memory.sh save "Content to remember" "Title"
```

### Search
```bash
./scripts/neutron-memory.sh search "what do I know about X" 10 0.5
```

Arguments: `QUERY` `LIMIT` `THRESHOLD(0-1)`

### Diagnose
```bash
./scripts/neutron-memory.sh diagnose
```

Checks all prerequisites: curl, jq, API key, connectivity, and authentication.

## Hooks (Auto-Capture & Auto-Recall)

- `hooks/pre-tool-use.sh` — **Auto-Recall**: Queries memories before AI turn, injects relevant context
- `hooks/post-tool-use.sh` — **Auto-Capture**: Saves conversation after AI turn

Both are **disabled by default** (opt-in only). To enable:

```bash
export VANAR_AUTO_RECALL=true
export VANAR_AUTO_CAPTURE=true
```

## API Endpoints

- `POST /memory/save` — Save text (multipart/form-data)
- `POST /memory/search` — Semantic search (JSON body)

**Auth:** `Authorization: Bearer $API_KEY` — that's it. No other credentials needed.

## Security & Privacy

**No data is sent unless you run a command or explicitly enable auto-capture/auto-recall.** Both hooks are disabled by default.

This skill only sends data you explicitly save (or opt-in auto-captured conversations) to the Neutron API. Here's exactly what happens:

| Action | What's sent | Where |
|--------|------------|-------|
| **Save** | The text you pass to `save` or auto-captured conversation turns | `POST /memory/save` over HTTPS |
| **Search** | Your search query text | `POST /memory/search` over HTTPS |
| **Auto-Recall** | The user's latest message (used as search query) | `POST /memory/search` over HTTPS |
| **Auto-Capture** | `User: {message}\nAssistant: {response}` | `POST /memory/save` over HTTPS |

**What is NOT sent:**
- No local files are read or uploaded
- No environment variables (other than the API key for auth)
- No system information, file paths, or directory contents
- No data from other tools or skills

All communication is over HTTPS to `api-neutron.vanarchain.com`. The source code is fully readable in the `scripts/` and `hooks/` directories — three short bash scripts, no compiled binaries.

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

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