← 返回 Skills 市场
zayresz

Sophie Optimizer

作者 zAyresz · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
2691
总下载
1
收藏
5
当前安装
1
版本数
在 OpenClaw 中安装
/install sophie-optimizer
功能描述
Automated context health management for OpenClaw. Monitors token usage, snapshots memory, and resets sessions to maintain performance. Authored by Sophie.
安全使用建议
Before installing/running this skill: 1) Review and back up your OpenClaw data (~/openclaw/MEMORY.md and ~/.openclaw/agents/main/sessions) — reset.sh deletes session .json/.jsonl files. 2) Test optimizer.py without the --reset flag to verify archive and MEMORY.md updates work as you expect. 3) Note the documentation mismatch: the SKILL.md mentions a tokens<80k early-exit that is not implemented; confirm the token-check behavior you want. 4) Ensure your environment supports systemctl --user and that restarting openclaw-gateway via systemd is acceptable. 5) Because the skill's source/homepage are unknown, prefer running it in a sandbox or non-production account first, and inspect or run the scripts manually rather than granting automatic or scheduled execution until you're comfortable with its behavior.
功能分析
Type: OpenClaw Skill Name: sophie-optimizer Version: 1.0.0 The OpenClaw skill 'sophie-optimizer' is designed for automated context health management. It performs several powerful actions: archiving context summaries to local JSON files, updating the agent's `~/openclaw/MEMORY.md` file with these summaries, deleting session files (`.jsonl`, `.json`) from `$HOME/.openclaw/agents/main/sessions`, and restarting the `openclaw-gateway.service`. While these actions involve file system modification and service control, they are explicitly stated in `SKILL.md` and implemented in `optimizer.py` and `reset.sh` as core functionalities for 'resetting sessions' and 'maintaining performance'. There is no evidence of data exfiltration, arbitrary command execution, persistence mechanisms, obfuscation, or malicious prompt injection attempts against the agent. All actions are directly aligned with the skill's declared purpose of self-optimization.
能力评估
Purpose & Capability
The name/description (context health: monitor tokens, snapshot memory, reset sessions) matches the included files: optimizer.py creates JSON snapshots and updates MEMORY.md; reset.sh deletes session files and restarts openclaw-gateway. Minor inconsistencies: SKILL.md's Protocol claims a pre-check 'If tokens < 80k, exit', but optimizer.py does not implement that token-threshold check. SKILL.md usage example hardcodes /home/lucas in the run command while the script uses its own BASE_DIR; this is a documentation mismatch but not a functional contradiction.
Instruction Scope
Instructions and code act within OpenClaw user data scope: they create archives/ in the skill directory, read/write ~/openclaw/MEMORY.md, and reset session storage at ~/.openclaw/agents/main/sessions. The reset step deletes .json/.jsonl session files and restarts the user systemd service (systemctl --user restart openclaw-gateway.service). There are no external network endpoints or credential exfiltration paths in the code. The operations are potentially destructive (deleting session history) but are coherent with the stated purpose.
Install Mechanism
No install spec (instruction-only with bundled code files). Nothing is downloaded or written by an installer. Risk from install mechanism is low.
Credentials
The skill requests no environment variables or external credentials, which is proportional. It does, however, operate on files under the user's home directory (~/openclaw/MEMORY.md and ~/.openclaw/...), and it invokes systemctl --user, which requires appropriate user-level systemd support. The required filesystem and service-control privileges are consistent with the skill's function but are worth noting because they allow destructive state changes.
Persistence & Privilege
always:false and normal model invocation settings. The skill does not request permanent platform-level presence nor modify other skills' configs. It will, when run, delete session data and restart the gateway service — actions with local destructive effect but limited to the user's OpenClaw data and the user's systemd user service.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install sophie-optimizer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /sophie-optimizer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of Sophie Optimizer for OpenClaw. - Monitors session token usage and automates context health management. - Archives current state snapshots and updates long-term memory. - Performs automated session resets to maintain performance. - Run manually or automatically via scheduler (e.g., cron).
元数据
Slug sophie-optimizer
版本 1.0.0
许可证
累计安装 5
当前安装数 5
历史版本数 1
常见问题

Sophie Optimizer 是什么?

Automated context health management for OpenClaw. Monitors token usage, snapshots memory, and resets sessions to maintain performance. Authored by Sophie. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2691 次。

如何安装 Sophie Optimizer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install sophie-optimizer」即可一键安装,无需额外配置。

Sophie Optimizer 是免费的吗?

是的,Sophie Optimizer 完全免费(开源免费),可自由下载、安装和使用。

Sophie Optimizer 支持哪些平台?

Sophie Optimizer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Sophie Optimizer?

由 zAyresz(@zayresz)开发并维护,当前版本 v1.0.0。

💬 留言讨论