360 Secure SkillHub
360 安全技能中心

Session Cleaner

核心功能是将OpenClaw/Clawdbot的原始JSONL会话文件转换为干净可读的Markdown对话记录,剥离工具调用、系统元数据等冗余内容,保留人机对话。支持多代理批量处理,还提供不同脚本适配批量或远程清理场景。输入为JSONL格式会话文件,输出为清晰的Markdown文档,适合需整理会话记录的用户。

h-mascot
h-mascot
热度 58.85
最近更新 2026-06-30 04:32:38
分类:效率依赖:代码执行 / 读写文件应用场景:文件转换 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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