Dennis

Agent Memory

AI 智慧體v1.0.0
作者:Dennis更新於 2026-05-11agent-memory@clawhub_dennis-da-menace/agent-memory
上下文管理記憶增強#Memory System#Agent Memory#Learn

據 AlphaMoat 統計,截至 2026-10,Agent Memory 累計下載 355,523 次、獲 182 個星標,按累計下載量在本次參與排名的 10,914 個 AI 技能中排名第 66 位,在「AI 智慧體」分類(1,632 個)中排名第 13 位。

列表預設按累計下載量排序,也可按星標排序;詳情頁排名按累計下載量計算。

累計下載
35.6萬
星標
182
全站下載量排名
#66
全站前 1% · 「AI 智慧體」前 1%
平台累計下載星標評論
ClawHub ↗3.6萬341
SkillHub ↗35.6萬182—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

建立 AgentMemory 後,可用 remember 儲存附有標籤的事實,用 learn 記錄行動、情境、結果和心得,再用 recall 或 get_lessons 依查詢或主題取回內容;track_entity 則可追蹤人物與專案的屬性。資料預設儲存在 ~/.agent-memory/memory.db,也可指定其他路徑。本文另提供工作階段開始與結束時的記憶流程,可加入 AGENTS.md 或 HEARTBEAT.md。

資料釋出於 2026-10-27

可以用來做什麼

  • 在新工作階段載入先前的事實與經驗
  • 記錄失敗原因與下次可採取的改善方式

什麼時候用

  • 需要不依賴託管服務,跨工作階段保留脈絡時
  • 人物或專案資料需要逐步累積時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

找回先前約定的部署慣例。
記錄這次失敗,提醒下次先確認相依套件版本。

月度資料趨勢

累計下載35.6萬
380619.3萬38.2萬2026-03 · 累計下載 5萬2026-05 · 累計下載 3萬2026-06 · 累計下載 10萬2026-07 · 累計下載 10.7萬2026-08 · 累計下載 12.5萬2026-09 · 累計下載 15.5萬2026-10 · 累計下載 35.6萬26-0326-0926-10
星標182
111031952026-03 · 星標 242026-05 · 星標 302026-06 · 星標 1352026-07 · 星標 1522026-08 · 星標 1662026-09 · 星標 1742026-10 · 星標 18226-0326-0926-10

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。 該技能有同名的其他版本,調整前的資料歸屬當前下載量最大的這一個。

月份累計下載環比星標
2026-1035.6萬—182
2026-0915.5萬—174
2026-0812.5萬+16.5%166
2026-0710.7萬+7.6%152
2026-0610萬+234.1%135
2026-053萬—30
2026-035萬—24

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

1.4 KB · ClawHub v1.0.0
# AgentMemory Skill

Persistent memory system for AI agents. Remember facts, learn from experience, and track entities across sessions.

## Installation

```bash
clawdhub install agent-memory
```
展開全部(共 67 行)
## Usage

```python
from src.memory import AgentMemory

mem = AgentMemory()

# Remember facts
mem.remember("Important information", tags=["category"])

# Learn from experience
mem.learn(
    action="What was done",
    context="situation",
    outcome="positive",  # or "negative"
    insight="What was learned"
)

# Recall memories
facts = mem.recall("search query")
lessons = mem.get_lessons(context="topic")

# Track entities
mem.track_entity("Name", "person", {"role": "engineer"})
```

## When to Use

- **Starting a session**: Load relevant context from memory
- **After conversations**: Store important facts
- **After failures**: Record lessons learned
- **Meeting new people/projects**: Track as entities

## Integration with Clawdbot

Add to your AGENTS.md or HEARTBEAT.md:

```markdown
## Memory Protocol

On session start:
1. Load recent lessons: `mem.get_lessons(limit=5)`
2. Check entity context for current task
3. Recall relevant facts

On session end:
1. Extract durable facts from conversation
2. Record any lessons learned
3. Update entity information
```

## Database Location

Default: `~/.agent-memory/memory.db`

Custom: `AgentMemory(db_path="/path/to/memory.db")`

「AI 智慧體」分類下的熱門技能

資料月份:2026-10 · 下載/星標數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。