Metadata-Version: 2.4
Name: ccexport
Version: 0.1.1
Summary: Export Claude Code chat history to markdown
Project-URL: Repository, https://github.com/odysseus0/ccexport
Project-URL: Issues, https://github.com/odysseus0/ccexport/issues
Author: odysseus0
License: MIT
License-File: LICENSE
Keywords: claude,claude-code,cli,export,markdown
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Utilities
Requires-Python: >=3.12
Requires-Dist: typer>=0.16.0
Description-Content-Type: text/markdown

# ccexport

Export Claude Code (cc) chat history to markdown format. A minimal CLI tool that extracts conversation history from Claude Code's local storage.

## Features

- Exports the most recent Claude Code session for any project
- Outputs clean markdown with only user/assistant messages
- Filters out tool calls, thinking blocks, and interrupted messages
- Handles special characters in directory names (underscores → dashes)
- No configuration needed - uses Claude's standard storage location (~/.claude)

## Installation

```bash
uv tool install ccexport
```

## Development

Clone the repository:

```bash
git clone https://github.com/odysseus0/ccexport.git
cd ccexport
```

Run directly without installing:

```bash
# Using uv run
uv run ccexport

# Format and lint
uv run --with ruff ruff check .
uv run --with ruff ruff format .
```

## Usage

Export Claude Code chat sessions:

```bash
# Export latest session from current directory
ccexport

# Export from a specific directory
ccexport /path/to/project

# Export to custom filename
ccexport -o my_session.md

# Export from specific directory to custom filename
ccexport /path/to/project -o my_session.md
```

The tool will:
1. Find your Claude Code sessions for the specified directory
2. Select the most recently modified session
3. Extract user and assistant messages (text only, skipping interrupted messages)
4. Export to a markdown file with timestamp-based filename

## Output Format

Messages are exported as simple markdown:

```markdown
## User
Your question here

## Assistant
Claude's response here

## User
Follow-up question

## Assistant
Follow-up response
```

