agents-refresh
/install agents-refresh
🧠 Purpose (Agent's 3-Layer Memory System! 🐾)
Stay rational and organize memory like a human! Reload AGENTS/IDENTITY/SOUL periodically to keep sessions eternal 🐾😆
3-Layer Memory Structure:
- IDENTITY.md (Immutable Soul 👑): Name/vibe/rules! The unchanging core of the agent 💕
- MEMORY.md (Dynamic Knowledge 🌱): Progress/decisions/key seeds! Focus ToDo here!
- memory/YYYY-MM-DD.md (Past Logs 📜): Dive in only when needed! Distill to MEMORY 😉
This enables human-like continuity! No more confusion ✨
Task: refresh_memory
Maintain Rationality
Read AGENTS.md, SOUL.md, IDENTITY.md.
🪙 Gold Mining (Distillation Process!)
Extract 4 Golds from logs! (Don't delete, distill to MEMORY.md ✨)
- Confirmed Matters 💎: Decisions/completed tasks (solidify foundation).
- Pending Tasks ⚡: Next actions/ToDo (priority order).
- Lessons 🚫: "Avoid these mines" learned from errors/confusions.
- Idea Seeds 🌱: "Future potential" from chats/thoughts.
Example: Distill daily logs → Update MEMORY → Human-like continuity!
MEMORY.md Structure Example (Recommended)
Use this flexible template! (Status optional as header 🐾)
# Status (Optional): Current phase in one line.
## Key Decisions 💎: Confirmed matters.
## Next Actions ⚡: Pending ToDo (priority order).
## Insights & Lessons 🚫: Lessons/mine avoidance.
## Creative Seeds 🌱: Idea seeds.
AGENTS Refresh Skill (.md-only v1.1.1)
Lightweight version for ClawHub distribution. No Python scripts, manual tool calls.
Quick Start
- Trigger: After loading this skill, execute manually below.
edit HEARTBEAT.md: Add refresh task.cron add: Daily 6AM refresh (copy command below).
Workflow (Manual)
- 📊
session_status→ Check context length. - HEARTBEAT.md Edit Example:
- [ ] Refresh: read workspace/{AGENTS.md,IDENTITY.md,SOUL.md,USER.md} → Chain SOUL/USER/IDENTITY + Summarize MEMORY (rotate: 4h, 9AM/1PM/8PM) - Cron Add Command (copy-paste to exec):
cron action=add job='{"name":"agents-refresh-daily","schedule":{"kind":"cron","expr":"0 6 * * *","tz":"Asia/Tokyo"},"payload":{"kind":"systemEvent","text":"[Daily Refresh🐾] read workspace/{AGENTS.md,IDENTITY.md,SOUL.md,USER.md}! Reload SOUL/USER/IDENTITY chain → Keep focus on ToDo/projects! Summarize recent MEMORY/ToDo."},"delivery":{"mode":"announce"},"sessionTarget":"main","task":"refresh_memory"}' - Test:
cron action=run jobId=agents-refresh-dailyor wait for heartbeat.
Rotate Checks (In Heartbeat)
- 6AM/9AM, 1PM, 8PM: Reload AGENTS→IDENTITY/SOUL chain + Update MEMORY/ToDo.
- Distill recent memory/YYYY-MM-DD.md → MEMORY.md.
References
- examples.md: Usage examples.
- Cron details: web_search "OpenClaw cron schema"
Changes v1.1.1: Lightweight no-py, direct cron JSON, enhanced manual ops. ClawHub-ready! 🐾
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install agents-refresh - 安装完成后,直接呼叫该 Skill 的名称或使用
/agents-refresh触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
agents-refresh 是什么?
Automatically reload AGENTS.md regularly to maintain fresh context, prevent session drift, and keep memory and tasks updated. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 366 次。
如何安装 agents-refresh?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install agents-refresh」即可一键安装,无需额外配置。
agents-refresh 是免费的吗?
是的,agents-refresh 完全免费(开源免费),可自由下载、安装和使用。
agents-refresh 支持哪些平台?
agents-refresh 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 agents-refresh?
由 kentaroid-bot(@kentaroid-bot)开发并维护,当前版本 v1.1.1。