| Crates.io | cc2report |
| lib.rs | cc2report |
| version | 1.0.1 |
| created_at | 2025-07-02 07:53:56.323129+00 |
| updated_at | 2025-08-06 04:50:31.864619+00 |
| description | Intelligent work report generator for Claude Code that analyzes conversation logs using AI |
| homepage | |
| repository | https://github.com/signal-slot/cc2report |
| max_upload_size | |
| id | 1734686 |
| size | 352,713 |
Read this in other languages: 日本語 | 简体中文 | 한국어 | Español | Français | Deutsch | Português | Русский | Italiano | Nederlands | Polski | Türkçe | العربية | हिन्दी | ไทย | Tiếng Việt | Bahasa Indonesia | Bahasa Melayu
An intelligent work report generator for Claude Code that analyzes conversation logs and creates comprehensive work reports using AI.
# Clone the repository
git clone https://github.com/signal-slot/cc2report.git
cd cc2report
# Build and install
cargo build --release
cargo install --path .
Set your OpenAI API key as an environment variable:
export OPENAI_API_KEY="your-api-key-here"
Or pass it directly via command line:
cc2report --api-key "your-api-key-here"
~/.claude/projects/ (Claude Code's default project directory)~/.cache/cc2report/./cc2report.toml or ~/.config/cc2report/templates.tomlGenerate a report for today's conversations (default):
cc2report
Generate a report for all conversations (no date filter):
cc2report --all
# Specific date
cc2report --date 2024-07-01
# Date range
cc2report --from 2024-07-01 --to 2024-07-07
# Current week
cc2report --weekly
# Current month
cc2report --monthly
# Save to file
cc2report --output report.md
# JSON format
cc2report --format json --output report.json
# Specify language (auto-detected by default)
cc2report --lang ja # Japanese
cc2report --lang zh # Chinese
cc2report --lang es # Spanish
# Example: Today's report in Japanese
cc2report --lang ja
# Example: This week's report in Spanish
cc2report --weekly --lang es
# Enable parallel processing (max 10)
cc2report --parallel 4
# Disable progress indicators
cc2report --quiet
# Show token usage and costs
cc2report --show-token-usage
# Clear cache
cc2report --clear-cache
# Show cache information
cc2report --cache-info
Generate a template file:
cc2report --generate-template my-template.toml
Edit the template to customize prompts and report formats.
The tool automatically detects your system language and generates reports accordingly. Supported languages include:
The generated reports include:
The tool includes several features to minimize API costs:
| Model | Input Cost | Output Cost | Recommendation |
|---|---|---|---|
| gpt-4o (default) | $2.50/1M | $10.00/1M | Best quality |
| gpt-4o-mini | $0.15/1M | $0.60/1M | Best value |
| gpt-3.5-turbo | $0.50/1M | $1.50/1M | Budget option |
# Work Report - 2024-07-01
## cc2report - Work Report Generator
**Objective**: Generate human-readable work reports from Claude Code logs
**Activities**:
- Development - Implemented OpenAI API integration with GPT-4
- Feature Addition - Developed smart analysis with intelligent categorization
- UI Enhancement - Improved command-line interface experience
**Delivered Value**:
- Reduced "Other Tasks" category by 90%
- Significantly improved report readability
- Achieved multi-language support (19 languages)
**Technical Improvements**:
- Optimized performance
- Enhanced error handling
"OpenAI API key is required"
OPENAI_API_KEY is set in your environment--api-key option"Log directory does not exist"
--log-dir~/.claude/projects/Rate Limit Errors
--parallel 1--model gpt-3.5-turbo# Development build
cargo build
# Run tests
cargo test
# Run with debug output
RUST_LOG=debug cargo run
The project is organized into the following modules:
parser: JSONL log file parsingconversation_analyzer: Extract topics and context from conversationsai_analyzer: OpenAI API integrationsmart_analyzer: Report generationcache: API response cachingtemplates: Customizable prompts and formatsconfig: Configuration managementerror: Error handlingcli: Command-line interfaceContributions are welcome! Please see CONTRIBUTING.md for guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.