openclaw-plugin
openclaw-plugin,来自 LycheeMem/LycheeMem 的 agent 技能。
它会碰到什么
扫了多少10 个文本文件,94 KB
它会碰到什么读凭据联网写文件执行命令
命中总数15 处
命中统计严重 0 · 高 2 · 中 11 · 低 0
逐条看命中(2 条严重或高危)
- 高
scripts/setup_openclaw_plugin.py:157cred-envreadenv_path = os.environ.get(OPENCLAW_CONFIG_ENV)
- 高
scripts/verify_openclaw_plugin.py:83cred-envreadenv_path = os.environ.get(OPENCLAW_CONFIG_ENV)
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
LycheeMem OpenClaw Plugin
Purpose
This plugin is a thin adapter between OpenClaw and LycheeMem. It does not replace memory-core, does not claim plugins.slots.memory, and does not duplicate LycheeMem algorithms.
Collaboration model with OpenClaw:
- OpenClaw remains the host for the main reasoning loop, current-turn coordination, workspace guidance, and short-range conversational continuity.
- LycheeMem serves as the external structured long-term memory layer for cross-session recall, historical project background, entity relationships, and reusable procedures.
- Treat OpenClaw memory and LycheeMem as complementary layers, not competing memory owners.
Default plugin tool exposure:
lychee_memory_smart_search(primary recall path, default lean response)lychee_memory_search(developer raw retrieval)lychee_memory_append_turnlychee_memory_consolidate
Use It For
- Historical facts the user mentioned earlier
- Long-running project context across sessions
- Entity and relationship recall
- Reusing procedural skills or workflows from prior work
- Compressing verbose retrieval results into a shorter
background_contextwhen needed
Do Not Use It For
- Workspace rules already covered by
MEMORY.mdormemory/*.md - Stable preferences already maintained in
memory-core - Replacing OpenClaw's built-in memory owner
- Re-answering the current turn with a second memory system when OpenClaw already has enough local context
Coordination Rules
- Prefer OpenClaw's built-in memory and workspace context for same-session continuity, immediate local preferences, and repository-bound instructions.
- Prefer LycheeMem when the user is asking for longer-horizon context such as "上次这个项目怎么做的", "这个项目长期背景是什么", or "之前沉淀过哪些规则/关系/流程".
- Do not perform duplicate recall for the same question by calling both OpenClaw memory search and LycheeMem retrieval in the same turn unless the user explicitly wants a comparison.
- When LycheeMem returns a useful
background_context, treat it as supplemental long-term context injected into OpenClaw's reasoning loop, not as a replacement for host memory. - When OpenClaw already has enough local context to answer well, avoid unnecessary LycheeMem calls.
Trigger Guidance
- Prefer
lychee_memory_smart_searchfor recall questions such as "上次怎么处理的", "用户之前提过什么", "这个项目长期背景是什么". Treat it as the default recall path. - Let
lychee_memory_smart_searchuse minimal output by default so the agent mainly receives synthesizedbackground_contextinstead of verbose retrieval details. - Use
lychee_memory_searchonly during development or debugging when you explicitly want the raw retrieval payload. - When this plugin runs inside OpenClaw with host lifecycle integration enabled, assume the host usually mirrors natural-language user and assistant turns into LycheeMem automatically.
- In that host-integrated mode, do not manually call
lychee_memory_append_turnfrom the model during normal operation, because it would duplicate the host-managed transcript mirror. - If host lifecycle integration is unavailable, disabled, or you are debugging a non-standard flow, call
lychee_memory_append_turnmanually after each completed dialogue turn so the transcript can later be consolidated. - Do not append raw tool invocations, tool arguments, tool outputs, scratchpad text, or other orchestration-only traces unless the user explicitly wants those artifacts stored as memory.
- Do not call OpenClaw
memory-coresearch andlychee_memory_searchfor the same recall problem in the same turn. - When this plugin runs inside OpenClaw with host lifecycle integration enabled, assume
/new,/reset, and/stopboundaries may triggerlychee_memory_consolidateautomatically withbackground=true. - Important long-term signals such as explicit memory requests, defaults, stable preferences, rules, and project standards may also trigger proactive background consolidation before the next reset boundary.
- Use
lychee_memory_consolidatemanually at wrap-up when host automation is unavailable, disabled, or you are debugging explicit persistence behavior. - Even in host-integrated mode, it is acceptable for the model to call
lychee_memory_consolidatewhen it intentionally wants to persist important new long-term knowledge early. The model should still avoid manuallychee_memory_append_turnin that case.
Recommended Pattern
The intended pattern is:
- let OpenClaw evaluate whether its local memory, workspace instructions, and current-turn context are already sufficient
- if longer-horizon recall is needed, call
lychee_memory_smart_searchwith its default lean response - inject the returned
background_contextinto the main reasoning context as supplemental long-term memory - answer in OpenClaw's normal reasoning loop
- let the host lifecycle adapter mirror the natural-language user turn and assistant turn automatically when available; otherwise call
lychee_memory_append_turnmanually using the samesession_id - do not append tool-call metadata or raw tool outputs by default
- let host lifecycle boundaries trigger background consolidation when available, and allow proactive consolidation when the turn clearly introduces durable long-term knowledge; otherwise call
lychee_memory_consolidatemanually only if new memory-worthy information appeared in the mirrored natural-language turns - in host-integrated mode, if you choose to call
lychee_memory_consolidatemanually, do not precede it with extra model-drivenlychee_memory_append_turncalls unless you are explicitly debugging transcript mirroring
Developer debugging path:
- call
lychee_memory_search - inspect the raw retrieval payload
This keeps OpenClaw in charge of the main reasoning loop while LycheeMem stays focused on long-term structured memory retrieval and persistence.
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。