🤖
Hui-Yi
Trigger for cold-memory recall and archive work under memory/cold/. Use only for explicit requests about older low-frequency context, historical continuity,...
安全通过
技能说明
name: hui-yi description: > Trigger for cold-memory recall and archive work under memory/cold/. Use only for explicit requests about older low-frequency context, historical continuity, resurfacing, cooling, rebuild, and repetition-driven reinforcement — not for any casual mention of words like "archive" or "remember". Do not use for fresh daily notes, stable high-frequency facts, tooling/setup notes, or unvalidated new learnings. Also covers an optional opt-in hook (installed via scripts/install_hook.py, enabled in openclaw.json only with --enable) that accumulates Session signals from recall-related turns into memory/cold/ notes and tags.json.
Hui Yi
Hui Yi manages the cold reinforcement layer under memory/cold/.
Core rule:
Repeatedly reactivated information deserves reinforcement first. Ebbinghaus sets the pace, not the sole trigger.
Use Hui Yi when
- older low-frequency context would materially improve the current answer
- the user asks what was done before, asks to recall/archive something, or wants historical continuity
- a reusable lesson, decision, troubleshooting result, or stable background note should be preserved in
memory/cold/ - durable content from daily notes should be cooled into cold memory
- cold-memory notes, metadata, or retrieval quality need maintenance
Do not use Hui Yi when
- the content is today's transient note →
memory/YYYY-MM-DD.md - the content is a stable high-frequency fact →
MEMORY.md - the content is tooling, machine path, or environment setup →
TOOLS.md - the content is a fresh mistake or still-unvalidated lesson →
.learnings/ - the content contains secrets, tokens, or passwords
Boundary
OpenClaw primary memory handles:
- current chat continuity
- recent daily notes
- stable high-frequency facts
- tooling and environment notes
- fresh learnings
Hui Yi handles:
- low-frequency, high-value knowledge under
memory/cold/ - historical context that keeps resurfacing across real conversations
- durable experience, decisions, and troubleshooting notes that should not pollute primary memory
Files and scripts
Cold-memory area:
memory/cold/index.mdmemory/cold/tags.jsonmemory/cold/retrieval-log.mdmemory/cold/_template.mdmemory/cold/schedule.jsonmemory/heartbeat-state.json
CLI entry scripts:
scripts/create.pyscripts/validate.pyscripts/search.pyscripts/rebuild.pyscripts/decay.pyscripts/cool.pyscripts/review.pyscripts/scheduler.pyscripts/install_hook.pyscripts/smoke_test.pyscripts/scrub_metadata.py
Core modules:
core/signal_detect.pycore/signal_pipeline.pycore/openclaw_signal_hook.pycore/openclaw_runtime_probe.py
Disclosure
- Scripts create and modify persistent local files, but only under
memory/cold/andmemory/heartbeat-state.json. No network access, no credential access. - The hook is optional and twice opt-in:
scripts/install_hook.pycopies files intohooks/hui-yi-signal-hook/, and only--enableflips the twohooks.internal.*keys inopenclaw.json(after printing a disclosure; it refuses to create a missing config file). - The enabled hook persists session signals as activation counters plus truncated
sha256 session fingerprints — never raw session keys. Its
hook.logby default contains no message bodies and no raw user/chat ids (setHUI_YI_HOOK_DEBUG=1for verbose diagnostics) and rotates at 256 KB. - The cooling playbook's routing table (MEMORY.md, TOOLS.md, .learnings/, AGENTS.md, SOUL.md) is agent guidance; Hui-Yi scripts never write those files.
Sanity check
python3 scripts/smoke_test.py
如何使用「Hui-Yi」?
- 打开小龙虾AI(Web 或 iOS App)
- 点击上方「立即使用」按钮,或在对话框中输入任务描述
- 小龙虾AI 会自动匹配并调用「Hui-Yi」技能完成任务
- 结果即时呈现,支持继续对话优化