modbender/skill-library-mcp/agent-sleep
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Agent 睡眠系统 - 记忆整合、日志归档、工作区清理(支持 CortexGraph)
Install
npx vskill@latest install modbender/skill-library-mcp/agent-sleepSKILL.md
Agent Sleep System 🛌
像人类一样,Agent 需要"睡眠"(离线维护)来防止记忆碎片化和上下文污染。
功能
- Micro-Rest - 快速上下文修剪
- Deep Sleep - 每日日志整合到长期记忆
- CortexGraph 同步 - 同步到 CortexGraph(带遗忘曲线)
- Dreaming - 后台模拟(可选)
工具
sleep_status
检查 agent 是否"累了"(基于运行时间或 token 使用)
run_sleep_cycle
触发睡眠周期
- Light: 压缩最近日志
- Deep: 归档 + 文件清理
- CortexGraph: 同步到 CortexGraph
schedule
设置生物钟(cron jobs)
工作流程
Deep Sleep 模式
CortexGraph 模式
遗忘曲线
CortexGraph 使用 Ebbinghaus 遗忘曲线:
- β = 0.6(使用频率权重)
- λ = ln(2) / half_life(默认 3 天)
- strength = 1.0-2.0(重要性)
使用
手动触发
定时设置
目录结构
配置
环境变量
ClawHub 配置
最佳实践
- 每日 Deep Sleep - 凌晨 3 点
- 每 6 小时 CortexGraph 同步 - 保持记忆新鲜
- 每周 GC - 清理低分记忆
- 每月晋升 - 高价值记忆升级到 LTM
与其他 Skill 集成
| Skill | 集成方式 | |
|---|---|---|
| memory-sync-cn | 使用其脚本同步到 CortexGraph | |
| agent-library | 使用其压缩功能 | |
| cortexgraph | 直接调用 MCP 工具 |
版本: 1.1.0 更新: 添加 CortexGraph 支持
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdata/agent-sleep/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/modbender/skill-library-mcp/agent-sleep)