一键导入
session-distill
将 Claude Code 的 `.jsonl` 会话文件蒸馏为 packet、session note 和可复用知识。 当用户说“整理一下对话”、“提炼会话经验”、“从 Claude 会话中提取知识”时使用。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
将 Claude Code 的 `.jsonl` 会话文件蒸馏为 packet、session note 和可复用知识。 当用户说“整理一下对话”、“提炼会话经验”、“从 Claude 会话中提取知识”时使用。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Distill Codex session JSONL files into review packets, local session notes, and reusable memory candidates. Use when the user asks to整理/提炼 Codex 对话, process `.codex/archived_sessions` or `.codex/sessions` rollouts, generate session packets, review packet coverage, or mark Codex sessions as distilled.
从 session-distill 生成的 packet 中导出结构化 draft memory entries。 当用户说"把 packet 变成 memory draft"、"导出记忆候选"、"为 Codex-mem 准备同步候选"时使用。
Distill Antigravity CLI sessions into review packets, local session notes, and reusable memory candidates. Use when the user asks to整理/提炼 Antigravity 对话, process `~/.gemini/antigravity-cli/history.jsonl` and brain transcripts, generate session packets, review packet coverage, or mark sessions as distilled.
Cursor Composer 会话 Deep Distill:packet → answer-me 验证 → session note → KB。 处理范式与 Grok 一致;禁止无验证的批量晋升。
Distill Grok CLI session JSONL files into review packets, local session notes, and reusable memory candidates. Use when the user asks to整理/提炼 Grok 对话, runs /session-distill, processes `~/.grok/sessions` chat history, generates session packets, reviews packet coverage, or marks Grok sessions as distilled.
Distill Hermes Agent SQLite sessions into review packets, local session notes, and reusable memory candidates. Use when the user asks to整理/提炼 Hermes 对话, process `%LOCALAPPDATA%\hermes\state.db`, generate session packets, review packet coverage, or mark Hermes sessions as distilled.
基于 SOC 职业分类
| name | session-distill |
| version | 1.2.0 |
| description | 将 Claude Code 的 `.jsonl` 会话文件蒸馏为 packet、session note 和可复用知识。 当用户说“整理一下对话”、“提炼会话经验”、“从 Claude 会话中提取知识”时使用。 |
| allowed-tools | ["Bash","Read","Write","Edit","Glob","Grep"] |
这是 Claude 侧 的 session-distill,只处理 Claude Code 会话,不处理
Codex rollout JSONL。
当前这份 skill 的真实输入输出是:
~/.claude/projects/<project>/*.jsonl~/.claude/session-distill/manifest.jsonpackets/<session-id>.mddistilled/sessions/<session-id>.mdknowledge-base.mdmemory-drafts/<session-id>.json默认不要把它理解成 “raw session -> memory-drafts -> 直接同步记忆”。
当前脚本的真实主链是:
run --next N 生成 packetPacket AuditCoverage: partial,再补看 raw .jsonldistilled/sessions/<session-id>.mdknowledge-base.mdmark <session-id> distilled也就是说,当前默认主链是 note-first:
packet -> session note -> knowledge-base -> markpacket-memory-export 和 memory-drafts 目前属于增强路径,不是这个
Claude skill 的默认 promotion gate。
推荐按下面的顺序执行:
session-distill run --next 1Packet AuditCoverage: partial,打开原始 .jsonl 补证distilled/sessions/<session-id>.mdknowledge-base.mdsession-distill mark <session-id> distilled如果这条会话不值得沉淀长期知识,也要在 session note 里明确写出
Do not promote 一类结论,而不是跳过判断。
当前脚本实际支持的命令是:
python ~/.claude/skills/manhua/session-distill/bin/session-distill.py help
python ~/.claude/skills/manhua/session-distill/bin/session-distill.py status
python ~/.claude/skills/manhua/session-distill/bin/session-distill.py list --size 100
python ~/.claude/skills/manhua/session-distill/bin/session-distill.py run --next 3
python ~/.claude/skills/manhua/session-distill/bin/session-distill.py mark <session-id> distilled
python ~/.claude/skills/manhua/session-distill/bin/session-distill.py auto-run --next 3
python ~/.claude/skills/manhua/session-distill/bin/session-distill.py auto-standalone --next 3
python ~/.claude/skills/manhua/session-distill/bin/session-distill.py auto-standalone --next 3 --sync-claude-mem
python ~/.claude/skills/manhua/session-distill/bin/session-distill.py self-test
如果你在 shell wrapper 环境里已经注册了 session-distill,也可以直接用:
session-distill run --next 1
session-distill status
session-distill mark <session-id> distilled
new
bundled
distilled
skipped
当前要分清两层:
session-distill
knowledge-base.mdpacket-memory-export / claude-mem
所以真实关系是:
session-distill 可以独立完成主链packet-memory-export 不是前置硬依赖claude-mem 不是默认直写后端以下情况不要只信 packet:
Packet Audit 显示 Coverage: partial优先写进 knowledge-base.md 的应该是:
不要直接提升的内容包括:
开始前优先读:
只有在你明确要走增强链路时,再读:
这份 skill 现在描述的是 Claude 当前真实实现,不是 Codex 版,也不是一份 未来规划文档。
如果未来 Claude 脚本真的切成 memory-drafts 默认主链,再更新这份 SKILL.md。
在那之前,不要把 packet-memory-export 写成这里的默认必经步骤。