{"id":38175581,"url":"https://github.com/christian-gama/autocommit","last_synced_at":"2026-01-16T23:31:10.604Z","repository":{"id":174000050,"uuid":"651614010","full_name":"christian-gama/autocommit","owner":"christian-gama","description":"AI-powered Git Commit Helper","archived":false,"fork":false,"pushed_at":"2025-12-12T13:53:37.000Z","size":8472,"stargazers_count":43,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-14T05:01:54.809Z","etag":null,"topics":["ai","autocommit","commit","git","go","golang","googleai","groq","helper","mistral","ollama2","openai"],"latest_commit_sha":null,"homepage":"","language":"Go","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/christian-gama.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-09T16:27:41.000Z","updated_at":"2025-12-12T13:53:42.000Z","dependencies_parsed_at":"2025-12-12T19:09:12.511Z","dependency_job_id":null,"html_url":"https://github.com/christian-gama/autocommit","commit_stats":null,"previous_names":["christian-gama/autocommit"],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/christian-gama/autocommit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christian-gama%2Fautocommit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christian-gama%2Fautocommit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christian-gama%2Fautocommit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christian-gama%2Fautocommit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/christian-gama","download_url":"https://codeload.github.com/christian-gama/autocommit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christian-gama%2Fautocommit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28487586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T22:54:02.790Z","status":"ssl_error","status_checked_at":"2026-01-16T22:50:10.344Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","autocommit","commit","git","go","golang","googleai","groq","helper","mistral","ollama2","openai"],"created_at":"2026-01-16T23:31:10.472Z","updated_at":"2026-01-16T23:31:10.567Z","avatar_url":"https://github.com/christian-gama.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AutoCommit\n\nAutoCommit generates git commit messages from your staged changes using AI. It currently supports OpenAI, Ollama 2, Mistral, Groq and Google AI models.\n\n## Features\n\n- AI-driven commit messages based on diffs\n- Interactive CLI: commit, copy, regenerate, add instructions, or exit\n- Editable instruction template\n- Shell completion scripts for Bash, Zsh, Fish, PowerShell\n\n## Installation\n\n### Go\n\nEnsure you have go installed and run:\n\n```sh\ngo install github.com/christian-gama/autocommit/v2@latest\n```\n\n### Manual\n\n```sh\ngit clone https://github.com/christian-gama/autocommit.git\ncd autocommit\nmake build\nmake install # Linux/macOS\n```\n\n### Enabling Shell Completion (Optional)\n\nEnable shell completion by following the `autocommit completion --help` instructions. If you need help to set up for a specific shell you can run `autocommit completion [shell] --help`. Available shells are:\n\n- bash\n- zsh\n- fish\n- powershell\n\nExample for Zsh (macOS):\n\n```sh\necho \"autoload -U compinit; compinit\" \u003e\u003e ~/.zshrc\nautocommit completion zsh \u003e $(brew --prefix)/share/zsh/site-functions/_autocommit\n```\n\n## Configuration\n\nRun `autocommit configure` to choose a provider. Set your credential (such as API Key) and then select your preferred model. Your settings are stored locally.\n\n### Supported Providers\n\n- **OpenAI**\n\n  - Requires an API key from [OpenAI's platform](https://platform.openai.com/api-keys)\n  - Supported models:\n    - GPT-4o\n    - GPT-4.1\n    - GPT-4.1-mini\n    - GPT-4.1-nano\n    - o1\n    - o1-mini\n    - o3\n    - o3-mini\n    - o4-mini\n\n- **Ollama**\n\n  - Requires [Ollama](https://ollama.ai/) to be installed and running locally\n  - No API key needed, but:\n    1. The Ollama service must be active (run `ollama serve` before invoking)\n    2. You must have the models you want to use already downloaded locally\n       (e.g., run `ollama pull llama4` to download llama4 before selecting it in the autocommit configuration interface)\n  - Supported models:\n    - gemma:1b, gemma:4b, gemma:12b, gemma:27b\n    - qwen3:0.6b, qwen3:1.7b, qwen3:4b, qwen3:8b, qwen3:14b, qwen3:30b, qwen3:32b, qwen3:235b\n    - deepseek-r1:1.5b, deepseek-r1:7b, deepseek-r1:8b, deepseek-r1:14b, deepseek-r1:32b, deepseek-r1:70b, deepseek-r1:671b\n    - llama4\n    - llama3.3\n\n- **Mistral**\n\n  - Requires an API key from [Mistral AI Platform](https://console.mistral.ai/)\n  - Supported models:\n    - mistral-large-latest\n    - mistral-medium-latest\n    - mistral-small-latest\n\n- **Google AI**\n  - Requires a Google AI API key from [Google AI Studio](https://makersuite.google.com/app/apikey)\n  - Supported models:\n    - gemini-2.0-flash\n    - gemini-2.5-pro-exp-03-25\n    - gemini-2.5-pro-preview-05-06\n    - gemini-2.5-flash-preview-04-17\n\n- **Groq**\n  - Requires a Groq API key from [Groq](https://console.groq.com/keys)\n  - Supported models:\n    - gemma2-9b-it\n    - llama-3.3-70b-versatile\n    - llama-3.1-8b-instant\n    - llama3-70b-8192\n    - llama3-8b-8192\n\nYou can change provider settings anytime by running `autocommit configure` again.\n\n## Usage\n\n1. Stage your changes:\n   `git add .`\n2. Run AutoCommit:\n   `autocommit`\n   OR (optional)\n   `autocommit --instruction \"Add additional instructions to improve the commit message here\"`\n3. Follow the prompts to:\n   - Commit with the generated message\n   - Copy the message to clipboard\n   - Regenerate with new instructions\n   - Add a custom instruction\n   - Exit without committing\n\n## Instructions Template\n\n- Open and edit the AI prompt template:\n  `autocommit instructions`\n- Restore default template:\n  `autocommit instructions restore`\n\nIf the template is missing, AutoCommit recreates it automatically.\n\n## Quality of Commit Messages\n\nMessage quality depends on the model and context size. Large diffs dilute focus, and older or smaller models often miss instructions or skip key details. Reasoning models tend to follow prompts more faithfully and produce clearer, more accurate messages, but tend to cost more. For best results, keep your commits focused, minimize diff size, and use a reasoning-capable model.\n\n## License\n\nMIT License\nSee [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristian-gama%2Fautocommit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristian-gama%2Fautocommit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristian-gama%2Fautocommit/lists"}