Skip to content
Agentmart
Submit a tool

agent-memory

AI 代理的记忆管理工具 - 列表显示、搜索查找、摘要生成及记忆文件维护。包含 AI 驱动的摘要功能。

Skill by lza6

IndexedApache-2.0★ 8
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/lza6-agent-memory

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

AI 代理的记忆管理工具 - 列表显示、搜索查找、摘要生成及记忆文件维护。包含 AI 驱动的摘要功能。

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/agent-memory

What's inside

Skill name
agent-memory
Description
AI 代理的记忆管理工具 - 列表显示、搜索查找、摘要生成及记忆文件维护。包含 AI 驱动的摘要功能。
License
Apache-2.0
Instructions
90 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • package.json

SKILL.md (first lines)

# 代理记忆管理 (memctl)

AI 代理的记忆管理命令行工具。用于组织、搜索和维护您的记忆文件。

## 安装

```bash
npm install -g agent-memory
```

或者克隆并构建:
```bash
git clone https://github.com/molty-assistant/agent-memory.git
cd agent-memory && npm install && npm run build
```

## 常用命令

### 列出记忆文件
```bash
memctl list              # 列出所有记忆文件
memctl ls --recent 5     # 显示最近的 5 个文件
```

### 跨文件搜索
```bash
memctl search "查询词"              # 查找提及的内容
memctl s "项目名" --context 3      # 带上下文行数的搜索
```

### 摘要统计
```bash
memctl summary           # 最近 7 天的统计信息
memctl sum --days 30     # 最近 30 天的统计信息
```

### 检查断档
```bash
memctl gaps              # 检查最近 30 天缺失的每日记录
memctl gaps --days 7     # 检查上周缺失的记录
```

### 创建今日文件
```bash
memctl touch             # 如果缺失,则创建格式为 YYYY-MM-DD.md 的今日文件
```

### AI 驱动的摘要 (需要 Gemini API 密钥)
```bash
export GEMINI_API_KEY=您的密钥
memctl digest            # 最近 7 天记录的 AI 摘要
memctl ai --days 3       # 最近 3 天记录的 AI 摘要
memctl digest -o out.md  # 将摘要保存到文件
```

## 配置说明

记忆目录将自动通过以下优先级寻找:
1. `$MEMORY_DIR` 环境变量
2. 当前目录下的 `./memory` 文件夹
3. `~/.openclaw/workspace/memory` 目录

## 使用场景

**每日检查:**
```bash
memctl gaps --days 7 && memctl touch
```

**每周回顾:**
```bash
memctl digest --days 7 -o weekly-digest.md
```

**查找上下文:**
```bash
memctl search "项目名称"
```

## 集成建议

建议将其添加到您的 `HEARTBEAT.md` 文件中:
```markdown
## 记忆维护
- 使用 `memctl gaps` 检查缺失的条目
- 使用 `memctl touch` 创建今日的记忆文件
- 使用 `memctl digest` 生成每周 AI 摘要
```

From lza6/Claude-code-cli-config, Apache-2.0.

More from lza6/Claude-code-cli-config

Signals

Stars
8
Forks
1
Open issues
0
Last commit (this folder)
Apr 13, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from lza6

Cite this page

agent-memory skill. Agent Mart. https://agentmart.dev/skills/lza6-agent-memory (last updated 2026-10-24)