Complete agent memory + performance system. Extracts structured facts, builds knowledge graphs, generates briefings, and enforces execution discipline via pre-game routines, tool policies, result compression, and after-action reviews. Includes external knowledge ingestion (ChatGPT exports, etc.) into searchable memory. Use when working on memory management, briefing generation, knowledge consolidation, external data ingestion, agent consistency, or improving execution quality across sessions.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install memory-pipeline或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install memory-pipeline⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/memory-pipeline/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: memory-pipeline description: Complete agent memory + performance system. Extracts structured facts, builds knowledge graphs, generates briefings, and enforces execution discipline via pre-game routines, tool policies, result compression, and after-action reviews. Includes external knowledge ingestion (ChatGPT exports, etc.) into searchable memory. Use when working on memory management, briefing generation, knowledge consolidation, external data ingestion, agent consistency, or improving execution quality across sessions. ---
Give your AI agent a memory that actually works.
AI agents wake up blank every session. Memory Pipeline fixes that — it extracts what matters from past conversations, connects the dots, and generates a daily briefing so your agent starts each session primed instead of clueless.
| Component | When it runs | What it does | |-----------|-------------|--------------| | Extract | Between sessions | Pulls structured facts (decisions, preferences, learnings) from daily notes and transcripts | | Link | Between sessions | Builds a knowledge graph — connects related facts, flags contradictions | | Brief | Between sessions | Generates a compact BRIEFING.md loaded at session start | | Ingest | On demand | Imports external knowledge (ChatGPT exports, etc.) into searchable memory | | Performance Hooks | During sessions | Pre-game briefing injection, tool discipline, output compression, after-action review |
Most "memory" solutions are just vector search over chat logs. This is a cognitive architecture — inspired by how human memory actually works:
clawdhub install memory-pipeline
bash skills/memory-pipeline/scripts/setup.sh
The setup script will detect your workspace, check dependencies (Python 3 + any LLM API key), create the memory/ directory, and run the full pipeline.
- OpenAI (OPENAI_API_KEY or ~/.config/openai/api_key) - Anthropic (ANTHROPIC_API_KEY or ~/.config/anthropic/api_key) - Gemini (GEMINI_API_KEY or ~/.config/gemini/api_key)
# Full pipeline
python3 skills/memory-pipeline/scripts/memory-extract.py
python3 skills/memory-pipeline/scripts/memory-link.py
python3 skills/memory-pipeline/scripts/memory-briefing.py
Add to your HEARTBEAT.md for daily automatic runs:
### Daily Memory Pipeline
- **Frequency:** Once per day (morning)
- **Action:** Run the memory pipeline:
1. `python3 skills/memory-pipeline/scripts/memory-extract.py`
2. `python3 skills/memory-pipeline/scripts/memory-link.py`
3. `python3 skills/memory-pipeline/scripts/memory-briefing.py`
Already have years of conversations in ChatGPT? Import them so your agent knows what you know.
# 1. Export from ChatGPT: Settings → Data Controls → Export Data
# 2. Drop the zip in your workspace
# 3. Run:
python3 skills/memory-pipeline/scripts/ingest-chatgpt.py ~/imports/chatgpt-export.zip
# Preview first (recommended):
python3 skills/memory-pipeline/scripts/ingest-chatgpt.py ~/imports/chatgpt-export.zip --dry-run
What it does:
--min-turns, --min-length)EXCLUDE_PATTERNS to skip unwanted topics)memory/knowledge/chatgpt/Options:
--dry-run — Preview without writing files--keep-all — Skip all filtering--min-turns N — Minimum user messages to keep (default: 2)--min-length N — Minimum total characters (default: 200)The pattern is extensible. Create ingest-, parse the format, write markdown to memory/knowledge/. The indexer handles the rest.
Script: memory-extract.py
Reads daily notes (memory/YYYY-MM-DD.md) and session transcripts, then uses an LLM to extract structured facts:
{"type": "decision", "content": "Use Rust for the backend", "subject": "Project Architecture", "confidence": 0.9}
{"type": "preference", "content": "Prefers Google Drive over Notion", "subject": "Tools", "confidence": 0.95}
Output: memory/extracted.jsonl
Script: memory-link.py
Takes extracted facts and builds a knowledge graph:
Output: memory/knowledge-graph.json + memory/knowledge-summary.md
Script: memory-briefing.py
Generates a compact daily briefing (< 2000 chars) combining:
SOUL.md)USER.md)Output: BRIEFING.md (workspace root)
Four lifecycle hooks that enforce execution discipline during sessions. Based on a principle from performance psychology: separate preparation from execution.
User Message → Agent Loop
├── before_agent_start → Briefing packet (memory + checklist)
├── before_tool_call → Policy enforcement (deny list)
├── tool_result_persist → Output compression (prevent context bloat)
└── agent_end → After-action review (durable notes)
{
"enabled": true,
"briefing": {
"maxChars": 6000,
"checklist": [
"Restate the task in one sentence.",
"List constraints and success criteria.",
"Retrieve only the minimum relevant memory.",
"Prefer tools over guessing when facts matter."
],
"memoryFiles": ["memory/IDENTITY.md", "memory/PROJECTS.md"]
},
"tools": {
"deny": ["dangerous_tool"],
"maxToolResultChars": 12000
},
"afterAction": {
"writeMemoryFile": "memory/AFTER_ACTION.md",
"maxBullets": 8
}
}
| Hook | What it does | |------|-------------| | before_agent_start | Loads memory files, builds bounded briefing packet, injects into system prompt | | before_tool_call | Checks tool against deny list, prevents unsafe calls | | tool_result_persist | Head (60%) + tail (30%) compression of large results | | agent_end | Appends session summary to memory file with tools used and outcomes |
...
安装 Memory Pipeline 后,可以对 AI 说这些话来触发它
Help me get started with Memory Pipeline
Explains what Memory Pipeline does, walks through the setup, and runs a quick demo based on your current project
Use Memory Pipeline to complete agent memory + performance system
Invokes Memory Pipeline with the right parameters and returns the result directly in the conversation
What can I do with Memory Pipeline in my developer & devops workflow?
Lists the top use cases for Memory Pipeline, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/memory-pipeline/ 目录(个人级,所有项目可用),或 .claude/skills/memory-pipeline/(项目级)。重启 AI 客户端后,用 /memory-pipeline 主动调用,或让 AI 根据上下文自动发现并使用。
Memory Pipeline 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Memory Pipeline 可免费安装使用。请查阅仓库了解许可证信息。
Complete agent memory + performance system. Extracts structured facts, builds knowledge graphs, generates briefings, and enforces execution discipline via pre-game routines, tool policies, result compression, and after-action reviews. Includes external knowledge ingestion (ChatGPT exports, etc.) into searchable memory. Use when working on memory management, briefing generation, knowledge consolidation, external data ingestion, agent consistency, or improving execution quality across sessions.
Automate my developer & devops tasks using Memory Pipeline
Identifies repetitive steps in your workflow and sets up Memory Pipeline to handle them automatically
Memory Pipeline 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。