一个 Claude Code 斜杠命令,可将当前(或过去的)会话记录导出为干净、可读的 Markdown 文件,而不是原始终端输出。

Stars

24

7 天增长

暂无数据

Fork 数

1

开放 Issue

0

开源协议

MIT

最近更新

2026-07-30

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它解决了从终端复制文本时格式错乱的问题,把 Claude Code 内部的 JSONL 会话转换为结构良好的 Markdown,保留代码块、折叠工具噪音,并支持多种导出选项且数据不出本机。

适合谁使用

  • 想把 Claude Code 会话整理成 Markdown 的用户
  • 需要从调试会话生成 PR 描述或文档的开发者
  • 希望通过仓库共享项目级命令的团队
  • 需要归档或导出历史 CLI 会话的人

典型使用场景

  • 将调试过程保存为 Markdown,方便粘贴到笔记或 issue
  • 从 Claude Code 会话生成 PR 描述
  • 按会话 ID 导出旧会话用于留存
  • 使用 --no-tools 生成只含对话内容的记录

项目优势

  • 生成规范的 Markdown 标题、代码围栏和单行工具摘要
  • 提供 --last、--with-thinking、--full-tools、--no-tools 等输出控制
  • 支持独立运行 --list/--session 导出已结束的会话
  • 完全本地运行,不发送任何数据到外部

使用前须知

  • 未指定 --session 时只选择当前目录最近修改的会话,并行打开多个会话可能选错
  • 导出内容包含会话中讨论的所有信息,可能包含敏感内容
  • 依赖 Claude Code 内部 JSONL 格式,未来版本可能改变

README 快速开始

Usage

项目描述

A /export-md slash command for Claude Code — save any session as clean, readable markdown.

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

0xwilliamortiz
精选
0xwilliamortiz GitHub avatar

openclaude-improved

OpenClaude is an open-source CLI coding agent that runs on any platform and supports a wide range of LLM providers, offering the same tools and workflows as Claude Code.

AI 与机器学习大语言模型
577
S40911120
精选
S40911120 GitHub avatar

recensa

Recensa is a self-hosted web viewer that indexes Claude Code session transcripts into a local SQLite database, enabling full-text search, replay, and audit of all past agent conversations without uploading data anywhere.

AI 与机器学习大语言模型
67
makecindy
精选
makecindy GitHub avatar

cindy

Cindy is an open-source AI agent that runs locally on your machine, integrates multiple AI harnesses and models, and provides memory, skills, and automation to perform real work in your projects and apps.

AI 与机器学习大语言模型
958