{"id":21167001,"url":"https://github.com/spartan-71/autocommitt","last_synced_at":"2025-07-16T14:39:54.104Z","repository":{"id":263438475,"uuid":"890330551","full_name":"Spartan-71/AutoCommitt","owner":"Spartan-71","description":"A CLI tool to generate AI-powered commit messages locally with Ollama—completely free, private, and offline!","archived":false,"fork":false,"pushed_at":"2025-06-26T19:27:03.000Z","size":171,"stargazers_count":40,"open_issues_count":5,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-26T20:32:16.439Z","etag":null,"topics":["ai-commit","cli","git","ollama"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/autocommitt/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Spartan-71.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null}},"created_at":"2024-11-18T11:43:58.000Z","updated_at":"2025-06-26T19:27:08.000Z","dependencies_parsed_at":"2024-11-19T18:18:32.830Z","dependency_job_id":"e905e42c-c15e-4aef-860f-83005d41c756","html_url":"https://github.com/Spartan-71/AutoCommitt","commit_stats":null,"previous_names":["spartan-71/autocommit","spartan-71/autocommitt"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/Spartan-71/AutoCommitt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spartan-71%2FAutoCommitt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spartan-71%2FAutoCommitt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spartan-71%2FAutoCommitt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spartan-71%2FAutoCommitt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Spartan-71","download_url":"https://codeload.github.com/Spartan-71/AutoCommitt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spartan-71%2FAutoCommitt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265518820,"owners_count":23781030,"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-commit","cli","git","ollama"],"created_at":"2024-11-20T14:59:05.215Z","updated_at":"2025-07-16T14:39:54.094Z","avatar_url":"https://github.com/Spartan-71.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![new_banner](https://github.com/user-attachments/assets/4f867876-3651-4cc7-9cf1-a136c44b73ec)\n\n\u003cdiv align=\"center\"\u003e\n\n[![Python](https://img.shields.io/badge/python-3.10%2B-blue)](https://www.python.org/downloads/)\n[![PyPI version](https://badge.fury.io/py/autocommitt.svg)](https://badge.fury.io/py/autocommitt)\n![PyPI Downloads](https://static.pepy.tech/badge/autocommitt)\n\nAutoCommit is a FOSS **AI-powered CLI tool** that generates context-aware commit messages locally.\n\n\n\n\u003c/div\u003e\n\n## Features\n\n- **Local AI-Powered**: Generates commit messages using a small LLM models locally\n- **Flexible Editing**: Review and edit generated messages before committing\n- **Git Integration**: Seamlessly works with your existing Git workflow\n- **Multiple Language Model Support**: Option to choose different local AI models\n\n## Setup\n### Prerequisites\n\n- **Ollama**: Download and install ollama from [offical website](https://ollama.com/download).\n- **RAM** (minimum):\n   - 8GB for smaller models (\u003c=3B parameters)\n   - 16GB for optimal performance\n- **GPU** (Optional): Boosts performance, but not required\n\n### Installation\n\nIt is recommended to use a virtual environment.\n\n```bash\npip install autocommitt\n```\n\n### Upgrading\nCheck the installed version with:\n```bash\npip list | grep autocommitt\n```\n\nIf it's not [latest](https://github.com/Spartan-71/AutoCommitt/releases/), make sure to upgrade.\n\n```bash\npip install -U autocommitt\n```\n\n\n## Basic Usage\n\n1. **Stage Your Changes**\n   Stage the files you want to commit using Git:\n   ```bash\n   git add \u003cfiles...\u003e\n   ```\n\n2. **Generate and Edit Commit Messages**\n   Generate a commit message based on your staged changes:\n   ```bash\n   act gen\n   ```\n\n   - The tool generates a message and allows you to review and edit it before committing.\n\n   - To **automatically push** the commit to the remote repository, use the `-p` or `--push` flag:\n     ```bash\n     act gen -p\n     ```\n\n## Additional Commands\n\nBy default, **AutoCommitt** uses the `deepseek-r1:1.5b` model to generate commit messages.\n\n#### 1. Using a Custom Model\n\n- To view the list of available models, run the following command:\n   ```bash\n   act list\n   ```\n- To select and set a model as active:\n   ```bash\n   act use \u003cmodel_name\u003e\n   ```\n   \u003e **Note**: If the model is not already downloaded, this command will pull the model by running `ollama pull \u003cmodel_name\u003e` and set it as the default.\n\n#### 2. Deleting a Model\n\n```bash\nact rm \u003cmodel_name\u003e\n```\n\n#### 3. Viewing Commit History\n\nEasily view recent commit messages using the `his` command:\n\n```bash\nact his -n 5\n```\n- **Flag Description**:`-n` or `--limit`: (Optional) Specify the number of recent commit messages to retrieve. If omitted, all commit messages will be displayed.\n\n## Future Enhancements\n- **Cross-Platform Support**: Compatibility for MacOS.\n- **Git Hooks Integration**: Compatible with pre-commit hooks\n- **Custom Templates**: Support for user-defined commit message templates\n\n## Contributing\n\nWe welcome contributions! To report bugs, fix issues, or add features, visit the [Issues](https://github.com/Spartan-71/AutoCommitt/issues) page. Please review our [Contribution Guide](CONTRIBUTING.md) for setup and contribution instructions.\n\n\n## Acknowledgments\n\nWe would like to express our gratitude to the following open-source projects that made AutoCommitt possible:\n\n\n- [Ollama](https://ollama.ai/) - Enables local AI with large language models.\n- [Typer](https://typer.tiangolo.com/) - A CLI builder by [Sebastián Ramírez](https://github.com/tiangolo), powering our command-line interface.\n\nSpecial thanks to the maintainers and contributors for their outstanding work!\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspartan-71%2Fautocommitt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspartan-71%2Fautocommitt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspartan-71%2Fautocommitt/lists"}