360 Secure SkillHub
360 安全技能中心

Session Cleaner

读取 OpenClaw/Clawdbot 会话 .jsonl 文件,去除工具调用、系统元数据和噪声,输出只保留人类与助手对话的 Markdown 文本;提供 Node.js 主清理脚本,以及批量清理和通过 SSH 清理远端会话的辅助脚本。

分类:效率
h-mascot
h-mascot
热度 11.02
最近更新 2026-06-30 04:32:38

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add h-mascot/ec-session-cleaner
兼容性
通用兼容
联网要求
需要联网
数据出网
可选出网
Metadata
name
session-cleaner
description
Convert raw OpenClaw session JSONL transcripts into clean, readable markdown. Strips tool calls, metadata, and system noise. Keeps the conversation.

Session Cleaner

Converts raw OpenClaw/Clawdbot session JSONL files into clean markdown transcripts.

What it does

  • Reads .jsonl session files
  • Strips tool calls, system metadata, and noise
  • Outputs clean human/assistant conversation markdown
  • Supports batch processing across agents

Scripts

  • session-cleaner.mjs - Main cleaner (Node.js)
  • session-cleaner-spock.sh - Batch clean Spock sessions
  • session-cleaner-scotty-remote.sh - Clean Scotty sessions via SSH