CLI tool that generates optimized markdown docs and streamline Git workflows
Project description
CodeMap
[!Caution] CodeMap is currently in active development. Use with caution and expect breaking changes.
Overview
CodeMap is an AI-powered developer toolkit designed to enhance your coding workflow. It offers features for code analysis, documentation generation, and Git process streamlining, all accessible through an interactive CLI with multi-LLM support.
[!Important] For detailed information on all features and commands, please visit our documentation site: codemap.run
Features
- 🎯 Token-optimized documentation generation
- 📝 Rich markdown output with code structure
- 🌳 Repository structure visualization
- 🔄 Smart Git commit assistance with AI-generated messages
- 🔃 AI-powered PR creation and management
Installation
[!Important] CodeMap currently only supports Unix-based platforms (macOS, Linux). Windows users should use WSL.
[!Tip] After installation, use
codemapor the aliascm.
Recommended: pipx
pipx installs the package in an isolated environment.
# Ensure pipx is installed
# python3 -m pip install --user pipx
# python3 -m pipx ensurepath
# Install codemap
pipx install codemap
Alternative: pip
pip install --user codemap
# Ensure $HOME/.local/bin is in your PATH
Development Version
pipx install codemap --pip-args='--pre'
Updating
pipx upgrade codemap
# Or if installed with pip:
# pip install --user --upgrade codemap
Uninstalling
pipx uninstall codemap
# Or if installed with pip:
# pip uninstall codemap
For more detailed installation options and troubleshooting, see the Installation Guide on our documentation site.
Configuration
CodeMap can be configured using a .codemap.yml file in your project root.
For a full list of configuration options and examples, refer to the Configuration Guide on our documentation site.
Development Setup
Interested in contributing? Please read our Code of Conduct and Contributing Guidelines.
- Clone:
git clone https://github.com/SarthakMishra/codemap.git && cd codemap - Prerequisites: Install Task, uv, and Python 3.12+.
- Setup Env:
uv venv && source .venv/bin/activate(or appropriate activation command for your shell) - Install Deps:
uv sync --dev - Verify:
task -llists available tasks.task ciruns checks and tests.
Detailed contribution instructions are in the Contributing Guide.
Acknowledgments
CodeMap relies on these excellent open-source libraries and models:
- LiteLLM
- NumPy
- Pygments
- Python-dotenv
- PyYAML
- Questionary
- Requests
- Rich
- Typer
- Sentence-Transformers
- And many development tools like
ruff,pytest,isort,pyright.
Models
- Code Embeddings: Leverages models like Qodo/Qodo-Embed-1-1.5B.
- LLM Support: Compatible with OpenAI, Anthropic, Groq, Mistral, Cohere, Together AI, OpenRouter via LiteLLM.
Special Thanks
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file codemap-0.2.0.tar.gz.
File metadata
- Download URL: codemap-0.2.0.tar.gz
- Upload date:
- Size: 1.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
092177e1f202443593e14f4384091423b5d297654f7f51b0013c5cb2c29a3497
|
|
| MD5 |
2bc55358f593307f788eb255dedb7000
|
|
| BLAKE2b-256 |
7578ad6c9c41d7fa4012b05074f578172e7f28a6a2dc5e8d651ce05c061b23ad
|
Provenance
The following attestation bundles were made for codemap-0.2.0.tar.gz:
Publisher:
release.yml on SarthakMishra/codemap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codemap-0.2.0.tar.gz -
Subject digest:
092177e1f202443593e14f4384091423b5d297654f7f51b0013c5cb2c29a3497 - Sigstore transparency entry: 207301754
- Sigstore integration time:
-
Permalink:
SarthakMishra/codemap@b40c5ed182426b5df237c30263009664e812b6c6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/SarthakMishra
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b40c5ed182426b5df237c30263009664e812b6c6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file codemap-0.2.0-py3-none-any.whl.
File metadata
- Download URL: codemap-0.2.0-py3-none-any.whl
- Upload date:
- Size: 161.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15e9281c4cfce0c457b7df32045195dcba789d7d95ebebd949d687b12491791e
|
|
| MD5 |
066dd219b1c1446a9b1a326878bbcbc6
|
|
| BLAKE2b-256 |
af15dcd19f707cd24903074e3d3de90596ae95e85dcfdbb1ede423add1009c8a
|
Provenance
The following attestation bundles were made for codemap-0.2.0-py3-none-any.whl:
Publisher:
release.yml on SarthakMishra/codemap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codemap-0.2.0-py3-none-any.whl -
Subject digest:
15e9281c4cfce0c457b7df32045195dcba789d7d95ebebd949d687b12491791e - Sigstore transparency entry: 207301756
- Sigstore integration time:
-
Permalink:
SarthakMishra/codemap@b40c5ed182426b5df237c30263009664e812b6c6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/SarthakMishra
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b40c5ed182426b5df237c30263009664e812b6c6 -
Trigger Event:
push
-
Statement type: