Convert Claude Code chat sessions to Markdown
Project description
cc2md
Convert Claude Code chat sessions to Markdown.
Install
pip install cc2md
Quick Start
# Extract the most recent session
cc2md --latest -o log
If the session spawned subagents, output is a directory:
log/
index.md # main conversation, with links to subagents
reduce-min-host-层实现-a46d2ef.md
reduce-min-device-层实现-a95f57b.md
...
Otherwise, a single log.md is written.
Usage
cc2md --list # list all sessions
cc2md --latest -o log # most recent session
cc2md 1 -o log # by index from --list
cc2md a1b2c3 -o log # by UUID prefix
cc2md "auth middleware" -o log # by title substring
cc2md --all -d ./exports/ # export everything
cc2md --latest -p myapp -o log # filter by project
Options
| Flag | Description |
|---|---|
--list, -l |
List available sessions |
--latest |
Most recent session |
--all |
Convert all sessions |
--project, -p |
Filter by project path substring |
--dir |
Scan a custom directory instead of ~/.claude/projects/ |
--output, -o |
Output path |
--output-dir, -d |
Output directory for --all |
--no-subagents |
Exclude subagent conversations |
--no-tool-results |
Exclude tool call results |
Requirements
Python 3.10+, no external dependencies.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cc2md-0.2.1.tar.gz
(13.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
cc2md-0.2.1-py3-none-any.whl
(15.7 kB
view details)
File details
Details for the file cc2md-0.2.1.tar.gz.
File metadata
- Download URL: cc2md-0.2.1.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9e3404dc47e2d898aa859c37bce10ce935e040f7eedca3314e36fe941f46a25
|
|
| MD5 |
5ef190dd58d1279737bbc915435e0289
|
|
| BLAKE2b-256 |
0dd809dcdf70fb920afbccbda48c1ceaf3c60513819a59855ee01a5bc8569247
|
File details
Details for the file cc2md-0.2.1-py3-none-any.whl.
File metadata
- Download URL: cc2md-0.2.1-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb161448ef69f2d70fbecd5260ac4f904830004818aea7b9ddceabb61176169d
|
|
| MD5 |
5c844e8a32f4dbf3e87b9dce0c141e11
|
|
| BLAKE2b-256 |
13f90d89ac5383580638ed1c8a07d436bc1a31afc165666246589660c28e7166
|