← 返回 Skills 市场
kid0114

subsession-delete

作者 kid0114 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
56
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install subsession-delete
功能描述
Delete an OpenClaw child session cleanly by removing its transcript, trajectory files, and sessions.json index entry.
安全使用建议
This tool appears to do exactly what it says: permanently delete session files and clean the session index locally. Before running with --execute: (1) run the default dry-run first to see which files would be removed; (2) backup ~/.openclaw/agents/<agent>/sessions/sessions.json (and any transcripts) so you can restore if needed; (3) confirm you are operating on the correct agent and not a primary/active session; (4) run as the same user who owns the .openclaw files (do not run as root unnecessarily); (5) be aware the prune logic removes JSON nodes whose sessionId matches or whose key equals the sessionKey — if your sessions.json has unexpected structure this could remove more than a single entry. No network traffic or credentials are used by this skill.
功能分析
Type: OpenClaw Skill Name: subsession-delete Version: 1.0.0 The subsession-delete skill is a utility designed to remove OpenClaw session data, including transcripts and index entries. The core logic in scripts/delete_subsession.py is restricted to the ~/.openclaw directory and requires an explicit --execute flag for destructive actions. The SKILL.md documentation includes appropriate safety guardrails and dry-run recommendations, and no indicators of malicious intent, data exfiltration, or unauthorized execution were found.
能力评估
Purpose & Capability
The name/description match the included script and SKILL.md: the script locates session files under ~/.openclaw/agents/<agent>/sessions, deletes the transcript and trajectory files, and rewrites sessions.json. No unrelated credentials, binaries, or network access are requested.
Instruction Scope
SKILL.md and the script confine actions to local session files and the sessions.json index. This is destructive by design; the skill recommends dry-run by default. Note: there is no automatic backup before overwriting sessions.json and the prune logic removes any JSON entries whose sessionId matches (or keys that equal the sessionKey), so users should confirm the target and consider backing up sessions.json first.
Install Mechanism
Instruction-only skill with a small included Python script; there is no install step, no third-party downloads, and nothing is written to system locations beyond the targeted sessions directory.
Credentials
No environment variables, credentials, or external tokens are requested or used. The script reads/writes only the sessions directory under the current user's home — proportionate to the stated task.
Persistence & Privilege
The skill does not request permanent/always-on inclusion and does not modify other skills or global agent settings. It writes only to the agent's sessions.json and target session files under ~/.openclaw; this is expected for a deletion tool.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install subsession-delete
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /subsession-delete 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: delete child sessions cleanly by removing transcript, trajectory files, and sessions.json index entries with verification.
元数据
Slug subsession-delete
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

subsession-delete 是什么?

Delete an OpenClaw child session cleanly by removing its transcript, trajectory files, and sessions.json index entry. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 56 次。

如何安装 subsession-delete?

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

subsession-delete 是免费的吗?

是的,subsession-delete 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

subsession-delete 支持哪些平台?

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

谁开发了 subsession-delete?

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

💬 留言讨论