← 返回 Skills 市场
167
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install session-distiller
功能描述
Batch-distill completed and live OpenClaw session transcripts into structured daily memory files. Two components: distill.py (batch + live session distillati...
安全使用建议
Before installing, verify these operational and privacy points:
- LLM endpoint: By default the skill posts transcripts to http://localhost:4000. Confirm that endpoint is local and trusted. If you point it to a remote third-party LLM, session contents (possibly sensitive) will be transmitted off-host.
- Telegram alerts: BOT_TOKEN and CHAT_ID enable alerts; only set them if you want outbound notifications. Treat the bot token as a secret and rotate/revoke it if exposed. The skill uses curl to call api.telegram.org with the token in the URL — that's how the bot API works.
- Files touched: The scripts read ~/.openclaw/agents/main/sessions/*, may read active .jsonl files, append distilled content to memory/YYYY-MM-DD.md, and can move/trash processed session files. If you have sensitive content in sessions, expect it to be persisted into daily memory files.
- Live allowlist & offsets: Review LIVE_ALLOWLIST_KEYS to ensure only approved group sessions are processed live. The skill persists offsets.json and gate-state.json in the skill directory.
- Platform/tooling: The skill assumes macOS (trash CLI) and calls /opt/homebrew/bin/openclaw by default; update those paths or dependencies on other systems.
- Test in dry-run mode first: Use --dry-run for distill.py and context-gate.py to see what would be processed and what alerts would be sent without writing/trashing files or sending messages.
If you validate the LLM endpoint is local/trusted, limit or avoid setting BOT_TOKEN if you don't need alerts, and review the allowlist, the skill appears coherent and appropriate for its stated purpose.
功能分析
Type: OpenClaw Skill
Name: session-distiller
Version: 0.5.1
The session-distiller bundle is a legitimate utility designed to manage AI agent memory by summarizing session transcripts and monitoring context usage. The scripts (distill.py and context-gate.py) interact with local session files and a local LiteLLM proxy to generate daily logs, using safe subprocess execution patterns (list-based arguments) and the 'trash' utility for non-destructive file cleanup. No evidence of data exfiltration, unauthorized persistence, or malicious prompt injection was found; the tool's behavior aligns strictly with its documented purpose of long-term memory management.
能力评估
Purpose & Capability
The name/description (session distillation) match the code and SKILL.md: scripts read OpenClaw session JSONL files, run local LLM distillation calls, append to daily memory files, and optionally send Telegram alerts and auto-distill live sessions. Required tools (trash CLI, openclaw CLI, LiteLLM endpoint) are consistent with the described functionality.
Instruction Scope
Instructions and code operate on ~/.openclaw session files, call a configured LLM endpoint (default http://localhost:4000), invoke the openclaw CLI for gateway status, and use curl to send Telegram alerts. These behaviors are expected for the stated purpose, but they mean session content is read and sent to an LLM endpoint — verify that endpoint is local/trusted. The context-gate also reads live JSONL files to estimate tokens (expected but privacy-relevant).
Install Mechanism
No install spec; this is instruction-plus-scripts only. There are no remote downloads or package installs embedded in the skill bundle, so nothing arbitrary is fetched during install. Risk from install mechanism is low.
Credentials
SKILL.md documents CONTEXT_WARN_PCT, CONTEXT_HARD_PCT, BOT_TOKEN, and CHAT_ID. These are proportional: the Telegram bot token and chat ID are only required for alerts. Registry metadata indicated no required env vars — a minor mismatch (BOT_TOKEN/CHAT_ID are optional at runtime but needed for alerting). No unrelated credentials (cloud keys, etc.) are requested.
Persistence & Privilege
The skill writes local runtime state files (offsets.json, gate-state.json, ingested JSONs) and appends to memory/YYYY-MM-DD.md as intended. always:false (not force-installed). It spawns subprocesses (curl, openclaw, python) which is expected. Note: context-gate has a hardcoded openclaw path (/opt/homebrew/bin/openclaw) and requires macOS 'trash' CLI — brittle but not malicious.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install session-distiller - 安装完成后,直接呼叫该 Skill 的名称或使用
/session-distiller触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.5.1
Hotfix: removed runtime state files from repo, added .gitignore
v0.5.0
Configurable paths via env vars, --meeting-notes and --daily-log flag aliases, de-identified for public release
元数据
常见问题
Session Distiller 是什么?
Batch-distill completed and live OpenClaw session transcripts into structured daily memory files. Two components: distill.py (batch + live session distillati... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 167 次。
如何安装 Session Distiller?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install session-distiller」即可一键安装,无需额外配置。
Session Distiller 是免费的吗?
是的,Session Distiller 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Session Distiller 支持哪些平台?
Session Distiller 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Session Distiller?
由 pjmorr(@pjmorr)开发并维护,当前版本 v0.5.1。
推荐 Skills