{"id":49366759,"url":"https://github.com/ohmygodashish/kommit","last_synced_at":"2026-04-27T20:00:38.802Z","repository":{"id":353754971,"uuid":"1216775052","full_name":"ohmygodashish/kommit","owner":"ohmygodashish","description":"AI powered Conventional Commit message generator. The solution to your dilemma after \"git commit -m\"","archived":false,"fork":false,"pushed_at":"2026-04-25T10:38:04.000Z","size":227,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-25T12:22:08.161Z","etag":null,"topics":["cli","commit-message","conventional-commits","git"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ohmygodashish.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-21T08:13:21.000Z","updated_at":"2026-04-25T10:39:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ohmygodashish/kommit","commit_stats":null,"previous_names":["ohmygodashish/kommit"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ohmygodashish/kommit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmygodashish%2Fkommit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmygodashish%2Fkommit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmygodashish%2Fkommit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmygodashish%2Fkommit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohmygodashish","download_url":"https://codeload.github.com/ohmygodashish/kommit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmygodashish%2Fkommit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32352406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T17:12:42.749Z","status":"ssl_error","status_checked_at":"2026-04-27T17:12:41.658Z","response_time":128,"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":["cli","commit-message","conventional-commits","git"],"created_at":"2026-04-27T20:00:23.582Z","updated_at":"2026-04-27T20:00:38.795Z","avatar_url":"https://github.com/ohmygodashish.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Banner](images/kommit.png)\n\n## Installation\n\n```bash\nnpm install -g kommit-cli\n```\n\n\u003e **Note:** Kommit requires Node.js **24+**\n\n## Quick Start\n\n```bash\n# On first run, kommit will automatically launch the setup wizard.\nkommit\n\n# Add API keys for additional providers\nkommit --init\n\n# Configure default provider, model, or skill without touching config\nkommit --set\n```\n\n### Supported Providers\n\n- **Cloud Providers:** [OpenAI](https://developers.openai.com/api/docs/models), [Anthropic](https://platform.claude.com/docs/en/about-claude/models/overview), [Google](https://ai.google.dev/gemini-api/docs/models), [OpenRouter](https://openrouter.ai/models?fmt=cards\u0026output_modalities=text)\n- **Local Providers:** [Ollama](https://ollama.com/search), [LM Studio](https://lmstudio.ai/models)\n\n\n## Usage\n\n```bash\nkommit [options]\n```\n\n| Option | Description |\n|--------|-------------|\n| `--init` | Run the interactive setup wizard (creates config if missing, merges auth keys) |\n| `--set` | Configure default provider, model, or skill name |\n| `--provider \u003cname\u003e` | Override the default provider for this run |\n| `--skill \u003cname\u003e` | Override skill for this run |\n| `--dry-run` | Generate and show the message without committing |\n| `--verbose` | Print raw prompts, responses, and git commands |\n| `--help`, `-h` | Show help message |\n| `--version`, `-v` | Show version number |\n\n### Interactive Flow\n\nAfter generating a message, you'll see:\n\n**Staged changes:**\n```\nSuggested commit message:\n─────────────────────────\nfeat(auth): add JWT validation middleware\n─────────────────────────\n\n[u] Use this message\n[y] Copy to clipboard\n[e] Edit inline\n[r] Regenerate\n[c] Cancel\n```\n\n**Unstaged changes:**\n```\nNo staged changes found. Using unstaged diff.\n\nSuggested commit message:\n─────────────────────────\nfeat(auth): add JWT validation middleware\n─────────────────────────\n\n[s] Stage all and use\n[y] Copy to clipboard\n[e] Edit inline\n[r] Regenerate\n[c] Cancel\n```\n\n**All options:**\n- **[u]** — Commit with the suggested message (staged diff only)\n- **[s]** — Stage all tracked changes and commit (unstaged diff only)\n- **[y]** — Copy the message to clipboard\n- **[e]** — Edit the subject and body inline\n- **[r]** — Regenerate with a variation hint\n- **[c]** — Cancel\n\n## Configuration\n\nConfig lives in `~/.config/kommit/config.json`.\n\nAPI keys are stored separately in `~/.local/share/kommit/auth.json`.\n\nKommit follows the [XDG Base Directory Specification](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html):\n- Config: `$XDG_CONFIG_HOME/kommit/` (falls back to `~/.config/kommit/`)\n- Auth keys: `$XDG_DATA_HOME/kommit/` (falls back to `~/.local/share/kommit/`)\n\n### Default Provider\n\nSet your default LLM provider in `~/.config/kommit/config.json`:\n\n```json\n{\n  \"defaultProvider\": \"openai\"\n}\n```\n\u003e Or use `kommit --set`\n\nSupported values: `openai`, `anthropic`, `google`, `openrouter`, `ollama`, `lmstudio`.\n\nOverride the default for a single run with the `--provider` flag:\n\n```bash\nkommit --provider anthropic\n```\n\nThe provider selection follows this priority (highest to lowest):\n1. `--provider \u003cname\u003e` CLI flag\n2. `KOMMIT_PROVIDER` environment variable\n3. `defaultProvider` in `~/.config/kommit/config.json`\n\nSkill selection follows the same pattern:\n1. `--skill \u003cname\u003e` CLI flag\n2. `KOMMIT_SKILL` environment variable\n3. `skillName` in `~/.config/kommit/config.json`\n\n### Environment Variables\n\nYou can also set API keys via environment variables (they take precedence over file-based auth):\n\n```bash\nexport KOMMIT_PROVIDER=openai\nexport KOMMIT_SKILL=my-team\nexport KOMMIT_OPENAI_API_KEY=sk-...\nexport KOMMIT_ANTHROPIC_API_KEY=sk-ant-...\nexport KOMMIT_GOOGLE_API_KEY=...\nexport KOMMIT_OPENROUTER_API_KEY=sk-or-...\n```\n\n### Skills\n\nKommit supports modular skills stored in `~/.agents/skills/{skillName}/SKILL.md`. Skills let you teach kommit your team's commit style, conventions, and preferences.\n\n**Example skill layout:**\n```\n~/.agents/skills/\n├── my-team/\n│   └── SKILL.md\n└── personal/\n    └── SKILL.md\n```\n\n**Example `~/.agents/skills/my-team/SKILL.md`:**\n\n```markdown\n# My Team's Commit Style\n\n- Always include a body explaining the motivation.\n- Use emojis in the subject line when appropriate.\n- For breaking changes, add \"BREAKING CHANGE:\" in the body.\n- Keep subjects under 50 characters when possible.\n```\n\n**Enable it in config:**\n\n```json\n{\n  \"skillName\": \"my-team\"\n}\n```\n\u003e Or use `kommit --set`\n\nIf the skill file is missing, kommit prints a warning and falls back to the base prompt.\n\n### Changing Settings with `--set`\n\nUse `kommit --set` to modify your configuration without touching auth keys:\n\n```bash\nkommit --set\n```\n\nThis opens an interactive wizard where you can:\n- Select a new default provider, Update the model name for that provider\n- Change or clear your skill name\n\n\nThis is useful when you want to switch providers or models without re-entering API keys.\n\n### Sample Config Files\n\n\u003e **Note:** `kommit --init` generates these files for you automatically. You only need to edit them manually if you want to tweak advanced settings.\n\n`~/.config/kommit/config.json`:\n\n```json\n{\n  \"version\": 1,\n  \"defaultProvider\": \"openrouter\",\n  \"skillName\": \"my-team\",\n  \"providers\": {\n    \"openai\": {\n      \"model\": \"gpt-5.4-nano\",\n      \"endpoint\": \"https://api.openai.com/v1/chat/completions\",\n      \"maxDiffLength\": 12000,\n      \"timeout\": 30000\n    },\n    \"anthropic\": {\n      \"model\": \"claude-haiku-4-5\",\n      \"endpoint\": \"https://api.anthropic.com/v1/messages\",\n      \"maxDiffLength\": 12000,\n      \"timeout\": 30000\n    },\n    \"google\": {\n      \"model\": \"gemini-3.1-flash-lite-preview\",\n      \"endpoint\": \"https://generativelanguage.googleapis.com/v1beta/models\",\n      \"maxDiffLength\": 12000,\n      \"timeout\": 30000\n    },\n    \"openrouter\": {\n      \"model\": \"openai/gpt-5.4-nano\",\n      \"endpoint\": \"https://openrouter.ai/api/v1/chat/completions\",\n      \"maxDiffLength\": 12000,\n      \"timeout\": 30000\n    },\n    \"ollama\": {\n      \"model\": \"qwen3.6:latest\",\n      \"endpoint\": \"http://localhost:11434/v1/chat/completions\",\n      \"maxDiffLength\": 4000,\n      \"timeout\": 30000\n    },\n    \"lmstudio\": {\n      \"model\": \"google/gemma-4-e4b\",\n      \"endpoint\": \"http://localhost:1234/v1/chat/completions\",\n      \"maxDiffLength\": 4000,\n      \"timeout\": 30000\n    }\n  }\n}\n```\n\n`~/.local/share/kommit/auth.json`:\n\n```json\n{\n  \"openai\": \"sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n  \"anthropic\": \"sk-ant-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n  \"google\": \"AIzaxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n  \"openrouter\": \"sk-or-v1-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n}\n```\n\n## How It Works\n\n1. Reads your `git diff --cached` (falls back to unstaged if empty)\n2. Intelligently truncates large diffs at hunk boundaries\n3. Sends the diff to your chosen LLM with a structured prompt\n4. Parses the JSON response into a Conventional Commit\n5. Lets you review, edit, regenerate, copy to clipboard, or commit\n6. For unstaged diffs, offers to stage all tracked changes before committing\n\n## License\n\n[MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohmygodashish%2Fkommit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohmygodashish%2Fkommit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohmygodashish%2Fkommit/lists"}