{"id":16342650,"url":"https://github.com/lukasrump/crllm","last_synced_at":"2025-04-11T15:30:50.342Z","repository":{"id":257820534,"uuid":"846556250","full_name":"lukasrump/crllm","owner":"lukasrump","description":"A command-line tool for developers to get instant code reviews from state-of-the-art Large Language Models (LLMs). Supports both local models (Ollama) and cloud providers (OpenAI, Hugging Face, Azure). Improve code quality, catch bugs, and receive AI-driven feedback effortlessly.","archived":false,"fork":false,"pushed_at":"2024-10-24T08:03:46.000Z","size":131,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-25T04:31:13.690Z","etag":null,"topics":["ai","code-quality","code-review","code-reviews","langchain","llm","ollama","static-analysis"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lukasrump.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-23T13:09:06.000Z","updated_at":"2024-10-24T12:57:12.000Z","dependencies_parsed_at":"2024-11-01T13:17:07.406Z","dependency_job_id":"b2f84a81-9c35-4ca6-87e3-f5e692046400","html_url":"https://github.com/lukasrump/crllm","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"b3e78387a1a6c2434faf7223243424a7ac8a6441"},"previous_names":["lukasrump/crllm"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasrump%2Fcrllm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasrump%2Fcrllm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasrump%2Fcrllm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasrump%2Fcrllm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukasrump","download_url":"https://codeload.github.com/lukasrump/crllm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248431275,"owners_count":21102169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","code-quality","code-review","code-reviews","langchain","llm","ollama","static-analysis"],"created_at":"2024-10-11T00:04:43.437Z","updated_at":"2025-04-11T15:30:50.332Z","avatar_url":"https://github.com/lukasrump.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CRLLM\n\n**Effortlessly Get Code Reviews from Large Language Models!**\n\nCRLLM is a powerful command-line tool that enables developers to get code reviews from state-of-the-art Large Language Models (LLMs). Whether you want to use Ollama for locally running LLMs or connect to cloud services like ChatGPT, Hugging Face, and Azure, CRLLM has you covered. Improve your code quality, catch potential bugs, and receive AI-driven suggestions to enhance your development workflow. Get recommendations on best practices, bug-prone areas, and potential refactoring.\nLearn from the suggestions how to improve your code, gaining new insights and techniques. Reduce the need for back-and-forth during human code reviews by catching more issues upfront.\n\n## 🚀 Features\n\n- **Flexible LLM Options**: Use Ollama to run models locally or leverage APIs from cloud providers like OpenAI, Hugging Face, and Azure.\n- **Comprehensive Code Review**: Get quality feedback on code, including recommendations for readability, efficiency, and best practices.\n- **Developer Productivity**: Integrate seamlessly into your existing development environment to speed up code review processes.\n- **Privacy Control**: Choose between local or cloud-based solutions depending on your privacy needs and computational power.\n- **Multi-Language Support**: Review code written in various programming languages (e.g., Python, JavaScript, Java, etc.).\n- **Git Support**: Get Reviews for your Git changes or differences between branches.\n\n## 🛠️ Installation\n\nTo get started with crllm, follow these simple installation steps:\n\n### Prerequisites\n\n- **Python 3.8+**: Make sure you have Python installed.\n- **pipx**: https://pipx.pypa.io/stable/installation/\n- **ollama**: https://ollama.com/download \nIf you want to run the modells locally otherwise you will need the corresponding API keys for your provider\n\n### Install from GitHub\n```sh\npipx install git+https://github.com/lukasrump/crllm.git\n```\n\n### Install from PyPI\n```sh\npipx install crllm\n```\n\n## 🌐 Configuration\nCRLLM supports multiple backends for LLM code reviews. You can configure it by adding an configuration file `crllm_config.toml` in the root of your project. To initialize your project you can use\n\n```bash\ncrllm -i .\n```\n\nThis command guides you through the most important settings. You can find more information on the setting options in the [Wiki](https://github.com/lukasrump/crllm/wiki#-configuration).\n\n## ✨Usage\nCRLLM is designed to be easy to use right from your terminal. Below are some examples of how you can leverage the tool.\n\nTo perform a code review for a file or GIT repository run:\n```sh\ncrllm path/to/your/codefile.py\n```\n\n### Enabling RAG Support\n\nTo enhance code reviews with source context, enable RAG (Retrieval-Augmented Generation) in `crllm_config.toml`:\n\n```toml\n[rag]\nenabled = true\nembedding_model = \"all-minilm\"      # Specify the embedding model\nsrc_path = \"./\"                     # Define the root path of your source code\nsrc_glob = \"**/*.py\"                # Use glob patterns to match source files (e.g., Python files)\n```\n\n### Ignore files\nCRLLM supports a `.crllm_ignore` file to exclude specific files and directories from code reviews. This is similar to `.gitignore` but specific to CRLLM's code review process.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukasrump%2Fcrllm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukasrump%2Fcrllm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukasrump%2Fcrllm/lists"}