Agent Memory Continuity
简介
Agent Memory Continuity
原始描述
Solve the "agent forgot everything" problem with search-first protocol, automated memory sync, and context preservation. No more conversation restarts!
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
中文使用说明 来自收录源
核心用法
Agent Memory Continuity 是一套专为 OpenClaw 平台设计的记忆增强技能,采用**搜索优先协议(Search-First Protocol)**作为核心机制。安装后,系统会在每次响应前强制检索历史记忆文件,自动识别对话连续性断裂的红旗信号(如"我们之前讨论过这个"),并从本地存储的记忆中重建上下文。
用户通过三条主命令完成部署:init-memory-protocol.sh 初始化记忆目录结构和协议文档;configure-search-first.sh 配置强制记忆搜索行为;activate-memory-sync.sh 激活每6小时自动同步的定时任务。记忆文件按日期组织为 memory/YYYY-MM-DD.md 格式,支持自定义搜索敏感度和30天自动归档策略。
显著优点
痛点精准打击:直击"Agent失忆"这一通用高频痛点,无需改造底层模型即可实现会话连续性。
零依赖轻量化:纯 Bash 脚本实现,无第三方依赖,仅调用系统标准工具(crontab、date、grep等),部署门槛极低。
企业级治理:支持多Agent记忆同步、团队级会话连续性、审计日志与合规留存,满足生产环境治理需求。
透明可控:所有记忆存储本地明文 Markdown,用户可审计、可编辑、可导出,无黑盒化风险。
潜在缺点与局限性
本地存储隐私风险:对话内容持久化到本地文件,若设备共享或丢失可能导致信息泄露,需用户自行承担敏感数据过滤责任。
无语义理解能力:依赖关键词匹配和规则触发,无法像向量数据库方案那样实现语义级记忆检索,复杂关联场景可能失效。
T3来源可信度:发布者为个人开发者/社区项目(SAPCONET/Highlander89),成立时间仅6个月,企业级SLA和专业支持能力待验证。
crontab系统侵入:需修改系统级定时任务配置,卸载时需手动清理,存在配置残留风险。
适合的目标群体
- 企业OpenClaw用户:需要多会话连续性、有审计合规要求的B端场景
- 长期项目型工作流:法律咨询、心理咨询、复杂方案策划等跨度数天的Agent协作
- 对数据主权敏感的用户:偏好本地存储而非云端记忆方案的组织
- 运维自动化团队:已熟悉crontab和shell脚本的技术团队
使用风险
性能风险:高频记忆搜索可能增加响应延迟,大体积记忆文件未做分片优化,极端情况下IO可能成为瓶颈。
依赖风险:核心功能依赖crontab守护进程,若系统crontab服务异常或权限受限(如容器环境),自动同步将失效。
数据一致性风险:6小时同步间隔意味着故障恢复期间可能丢失最近6小时的上下文,无实时双写机制保障。
维护风险:项目未指定开源许可证,社区贡献和长期维护承诺不明,建议企业用户评估fork自维护的可行性。
技能正文
name: agent-memory-continuity description: Solve the "agent forgot everything" problem with search-first protocol, automated memory sync, and context preservation. No more conversation restarts! homepage: https://sapconet.co.za metadata: {"clawhub": {"emoji": "🧠", "tags": ["memory", "continuity", "agent-management", "enterprise"], "author": "SAPCONET", "version": "1.0.0"}}
Agent Memory Continuity 🧠
The Problem
Does your OpenClaw agent suffer from "conversation amnesia"? Starting fresh every session? Forgetting previous discussions, decisions, and context? You're not alone - this is the #1 frustration with AI agents.
The Solution
Agent Memory Continuity solves fragmented conversations through a battle-tested search-first protocol that ensures agents never forget previous context.
Why This Skill?
- ✅ Solves universal pain point - Every OpenClaw user faces memory issues
- ✅ Battle-tested solution - Proven in production environment
- ✅ Immediate impact - No more "agent broke and forgot everything"
- ✅ Enterprise-grade - Professional memory management system
Use When
- Agent conversations keep "starting fresh"
- Previous context gets lost between sessions
- Users complain "we already discussed this"
- Enterprise environments requiring conversation continuity
- Multi-session agent workflows
Don't Use When
- Single-use, stateless interactions
- Agents with no conversation history requirements
- Simple query/response scenarios
Features
🔍 Search-First Protocol
- Mandatory memory search before responding to ongoing topics
- Red flag detection for conversation continuity breaks
- Automatic context reconstruction from memory files
📝 Automated Memory Sync
- 6-hourly memory context synchronization
- Daily memory file creation and updates
- Cross-referencing of ongoing projects and conversations
🧠 Context Preservation
- Daily memory logging discipline
- Persistent insight tracking
- Conversation thread continuity maintenance
🚨 Break Detection
- Identifies when agent "forgets" previous context
- Automatic recovery through memory search
- User frustration prevention system
Installation
# Install via ClawHub
npx clawhub install agent-memory-continuity
# Or clone directly
git clone https://github.com/sapconet/agent-memory-continuity.git
cd agent-memory-continuity
bash install.sh
Quick Start
1. Initialize Memory Protocol
# Set up memory structure
bash scripts/init-memory-protocol.sh
# Creates:
# - AGENT_MEMORY_PROTOCOL.md (search-first rules)
# - memory/YYYY-MM-DD.md (daily context files)
# - Memory sync cron jobs
2. Configure Search-First Behavior
# Configure mandatory memory search
bash scripts/configure-search-first.sh
# Enables:
# - Pre-response memory searches
# - Context continuity checks
# - Automatic break recovery
3. Activate Memory Sync
# Start automated memory synchronization
bash scripts/activate-memory-sync.sh
# Schedules:
# - 6-hourly context updates
# - Daily memory file creation
# - Ongoing project cross-referencing
Usage
Basic Memory Protocol
The skill automatically:
- Searches memory before responding to ongoing topics
- Detects red flags ("we discussed this", "remember when")
- Reconstructs context from memory files when breaks detected
- Logs decisions to daily memory files
- Syncs context across sessions
Advanced Configuration
Custom Memory Search Patterns
# Add custom search patterns
echo "project_name meeting decision" >> config/search-patterns.txt
# Configure search sensitivity
export MEMORY_SEARCH_THRESHOLD=0.7
Memory Archival Rules
# Configure archival timing
export MEMORY_ARCHIVE_DAYS=30
export MEMORY_RETENTION_MONTHS=12
# Set up automatic archival
bash scripts/setup-memory-archival.sh
File Structure
agent-memory-continuity/
├── SKILL.md
├── install.sh
├── scripts/
│ ├── init-memory-protocol.sh
│ ├── configure-search-first.sh
│ ├── activate-memory-sync.sh
│ ├── setup-memory-archival.sh
│ └── test-memory-continuity.sh
├── templates/
│ ├── AGENT_MEMORY_PROTOCOL.md
│ ├── daily-memory-template.md
│ └── cron-jobs-template.txt
├── config/
│ ├── search-patterns.txt
│ └── memory-config.json
└── docs/
├── troubleshooting.md
└── enterprise-setup.md
Real-World Results
Before Agent Memory Continuity:
- ❌ "Billy broke and forgot everything"
- ❌ Constant conversation restarts
- ❌ Lost context and decisions
- ❌ User frustration and lost productivity
After Agent Memory Continuity:
- ✅ Perfect conversation continuity
- ✅ Context preserved across sessions
- ✅ Decisions and discussions remembered
- ✅ User satisfaction and trust restored
Enterprise Features
Production Deployment
- Multi-agent memory synchronization
- Team conversation continuity
- Enterprise memory governance
- Audit trails and compliance
Professional Support
- Implementation consulting
- Custom memory pattern development
- Enterprise integration services
- 24/7 technical support
Troubleshooting
Common Issues
Agent still forgetting conversations:
# Check memory search frequency
bash scripts/test-memory-continuity.sh
# Increase search sensitivity
export MEMORY_SEARCH_THRESHOLD=0.5
Memory files growing too large:
# Enable automatic archival
bash scripts/setup-memory-archival.sh
# Configure retention policies
nano config/memory-config.json
Cron jobs not running:
# Check cron status
crontab -l | grep memory
# Reinstall cron jobs
bash scripts/activate-memory-sync.sh --force
Support
Community Support
- GitHub Issues: https://github.com/sapconet/agent-memory-continuity/issues
- Documentation: https://docs.sapconet.co.za/memory-continuity
- Examples: https://github.com/sapconet/agent-memory-continuity/examples
Enterprise Support
- Email: support@sapconet.co.za
- Professional Services: https://sapconet.co.za/openclaw-consulting
- Phone: +27 (0)53 123 4567
About SAPCONET
Leading OpenClaw enterprise specialists with 6+ months of production experience. We solve the problems others are still discovering.
Services:
- Enterprise OpenClaw deployments
- Custom skill development
- Agent workforce consulting
- 24/7 technical support
Website: https://sapconet.co.za Contact: hello@sapconet.co.za
Stop agent amnesia. Start agent continuity. Built by the team that solved it first.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。