Generate beautiful activity reports, client summaries, and blog posts from your git history—powered by LLMs.
Quick Start • Use Cases • Commands • Configuration
What It Does
Code Recap helps developers and consultants who work across multiple repositories:
📊 Year-in-Review Reports — Generate polished summaries of your work for clients, complete with statistics, achievements, and technology breakdowns. Export as Markdown or HTML.
⏱️ Daily Time Logging — Quickly summarize what you worked on today (or any day) for billing and time tracking. No more digging through commits.
✍️ Blog Post Generation — Turn your commits into technical blog posts. The AI researches your changes and drafts content with real code examples.
📈 Activity Statistics — Track commits, lines changed, languages used, and coding streaks across all your projects.
🗂️ Multi-Client Organization — Automatically group repositories by client using pattern matching. Each client gets their own reports.
📝 Example Output
See what generated reports look like:
For consultants with multiple clients:
- Client Reports (HTML) — Browse the styled HTML version
- Monthly summary (markdown)
- Annual client summary (markdown)
For solo developers or internal work:
- Solo Reports (HTML) — Without client organization
- Monthly summary (markdown)
- Annual summary (markdown)
Quick Start
# Initialize (creates config, prompts for API keys, shows next steps)
uvx code-recap init
# Or set API key manually
export OPENAI_API_KEY='sk-...'
# Generate your year-in-review
cd ~/Documents/Repos
uvx code-recap summarize 2025 --open
# → Output: ./code-recap-2025/
That's it! Your reports open automatically in the browser.
Installation Options
# Run directly (no install)
uvx code-recap summarize 2025
# Or install globally
uv tool install code-recap # then use: code-recap summarize ...
pip install code-recap # then use: code-recap summarize ...
Use Cases
Year-end report with HTML
code-recap summarize 2025 --open
# → Reports saved to ./code-recap-2025/ (markdown + HTML)
Daily time logging
code-recap daily --date yesterday
Blog post from your commits
code-recap blog full "Building a Custom Protocol" --period 2025-Q3
Multi-year statistics (CSV export)
code-recap stats 2020:2025 --granularity year --format csv
How It Works
Run code-recap from a directory containing git repositories:
~/Documents/Repos/ # Run code-recap here (or use --root <path>)
├── project-a/ # Git repository (scanned)
├── project-b/ # Git repository (scanned)
├── side-project/ # Git repository (scanned)
└── code-recap-2025/ # Generated report (or use --output-dir to specify a different directory)
├── summary-2025.md
└── html/
└── index.html
No configuration needed for basic use. Just run the command and get a unified report.
For multi-client workflows, create a config file:
code-recap init # Creates config.yaml + API key setup
See the Configuration Guide for full details.
Recommended Models
Code Recap uses LiteLLM to support multiple LLM providers:
| Model | Command | Best For | Cost |
|---|---|---|---|
| GPT-4o-mini | --model gpt-4o-mini |
Default choice, reliable and fast | ~$0.10/year |
| Gemini 2.5 Flash | --model gemini/gemini-2.5-flash |
Large codebases (1M context), very fast | ~$0.25/year |
| Gemini 3 Flash | --model gemini/gemini-3-flash-preview |
Latest Gemini model | ~$0.40/year |
| Claude 4.5 Haiku | --model claude-haiku-4-5 |
Best writing quality for summaries | ~$0.75/year |
Costs shown are approximate for summarizing 1 year of typical developer activity (~3000 commits).
code-recap summarize 2025 --list-models # See all available models
Commands
| Command | Description |
|---|---|
summarize |
LLM-powered activity summaries (main command) |
daily |
Daily activity for time logging |
stats |
Statistics without LLM (text/markdown/CSV) |
html |
Convert markdown to HTML reports |
blog |
Generate blog posts from commits |
deploy |
Deploy HTML reports to providers |
git |
Repository utilities (fetch, archive) |
See the Command Reference for detailed options.
Documentation
- Configuration Guide — Client mapping, API keys, exclusions, HTML styling
- Command Reference — Detailed options for all CLI commands
- Deployment Guide — Deploy and share HTML reports
- Extending Code Recap — Implement custom deployment providers
- Example Configuration — Full config with all options documented
Installation
Using uv (Recommended)
# Install as a tool
uv tool install code-recap
# Or run directly without installing
uvx code-recap summarize 2025
Using pip
pip install code-recap
Development
git clone https://github.com/nrb-tech/code-recap.git
cd code-recap
uv sync --dev
# Run linting
uv run ruff check .
uv run ruff format .
Requirements
- Python 3.9+
- Git (command line)
License
MIT License - see LICENSE for details.
Built by NRB Tech
Metadata
Release files for code-recap 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| code_recap-1.3.1.tar.gz | 105.1 kB | With provenance | Details for code_recap-1.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| code_recap-1.3.1-py3-none-any.whl | Python 3 | none | any | Details for code_recap-1.3.1-py3-none-any.whl |
Total release size: 212.8 kB
Release files / code_recap-1.3.1.tar.gz
| Download URL | code_recap-1.3.1.tar.gz |
|---|---|
| Size | 105.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd3cc47433ae161e5a74731121df80cec18ef8c7b59ffaa4bfd67c6ffbb50484
|
|
BLAKE2b-256 checksum How to use checksums |
6ea6bce9f5839349cb2c115679fe6eaeafa3dc56df76d8e1234d7142e79487af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 8, 2026.
Transparency logRelease files / code_recap-1.3.1-py3-none-any.whl
| Download URL | code_recap-1.3.1-py3-none-any.whl |
|---|---|
| Size | 107.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc9ea8d1f3fe5aadb5703baaa09afa0f16f89e70c3794837c995b9ffc054ff00
|
|
BLAKE2b-256 checksum How to use checksums |
f9de8a1e651abb08338025dbee809ceb163a0aad81927b56513e9854697f1335
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 8, 2026.
Transparency logSecurity for code-recap 1.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for code_recap-1.3.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 8, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.