{"id":51271832,"url":"https://github.com/thinakaranmanokaran/dgit-ai-commit","last_synced_at":"2026-06-29T18:32:23.576Z","repository":{"id":353287410,"uuid":"1206166374","full_name":"thinakaranmanokaran/dgit-ai-commit","owner":"thinakaranmanokaran","description":"This tool helps you write Git commit messages using AI 🤖 It looks at your changes and generates clear, meaningful commits ⚡ So you can focus on coding instead of thinking what to write 🚀","archived":false,"fork":false,"pushed_at":"2026-04-27T18:11:09.000Z","size":127,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-19T05:52:49.367Z","etag":null,"topics":["ai","cli","git","javascript","npm"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/dgit-ai-commit","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/thinakaranmanokaran.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-09T16:36:58.000Z","updated_at":"2026-04-27T18:11:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/thinakaranmanokaran/dgit-ai-commit","commit_stats":null,"previous_names":["thinakaranmanokaran/dgit-ai-commit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thinakaranmanokaran/dgit-ai-commit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinakaranmanokaran%2Fdgit-ai-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinakaranmanokaran%2Fdgit-ai-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinakaranmanokaran%2Fdgit-ai-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinakaranmanokaran%2Fdgit-ai-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinakaranmanokaran","download_url":"https://codeload.github.com/thinakaranmanokaran/dgit-ai-commit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinakaranmanokaran%2Fdgit-ai-commit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34939227,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","cli","git","javascript","npm"],"created_at":"2026-06-29T18:32:22.396Z","updated_at":"2026-06-29T18:32:23.570Z","avatar_url":"https://github.com/thinakaranmanokaran.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 dgit-ai-commit\n\n\u003e AI-powered Git CLI using GROQ ⚡\n\u003e Generate clean, meaningful, conventional commit messages — and now,\n\u003e describe what you want in plain English and let the AI run the git\n\u003e commands for you.\n\n![Preview](public/preview.gif)\n\n---\n\n## ✨ Features\n\n* 🤖 AI-generated commit messages (GROQ powered)\n* 🧠 **NEW: Natural-language git agent** — `dg -a \"undo my last commit\"`\n* ⚡ Lightning-fast performance, with a disk cache so re-running on an\n  unchanged diff doesn't re-hit the API\n* 🎯 Conventional commit support\n* 🔄 Regenerate suggestions instantly\n* ✏️ Edit commit message with F2\n* 📦 One command for add + commit + push\n* 🧠 Smart detection of staged/unstaged changes\n* 🛡️ Every git command runs without a shell (no injection risk), and\n  destructive agent plans require typing `CONFIRM` before running\n\n---\n\n## 📦 Installation\n\n```bash\nnpm install -g dgit-ai-commit\n```\n\n---\n\n## ⚡ Usage\n\n### Basic Workflow\n\n```bash\ndg add\ndg commit\ndg push\n```\n\n### Or Just:\n\n```bash\ndg push\n```\n\n### 🤖 Natural-language git agent\n\nDescribe what you want, and DGit translates it into an ordered git\nplan, shows you exactly what it intends to run, and asks for\nconfirmation before touching anything:\n\n```bash\ndg -a \"undo my last commit but keep the changes staged\"\ndg agent \"find the commit from 21/06/2026 and reset to it\"\n```\n\nEvery proposed plan shows:\n* a plain-English explanation\n* the exact `git ...` commands, in order\n* a risk badge (`SAFE` / `CAUTION` / `DESTRUCTIVE`)\n\nDestructive plans (history rewrites, force pushes, discarding work)\nrequire typing `CONFIRM` — not just pressing Enter — before anything\nruns. The agent will only ever execute `git ...` commands; anything\nelse in a proposed plan is refused.\n\n---\n\n## 🔑 Setup (First Time)\n\nGet your GROQ API key:\n👉 [https://console.groq.com/keys](https://console.groq.com/keys)\n\nThe CLI will prompt you to enter it on first use and save it to\n`~/.dgconfig.json`. You can also hand-edit that file to override the\nmodels used:\n\n```json\n{\n  \"apiKey\": \"gsk_...\",\n  \"model\": \"llama-3.1-8b-instant\",\n  \"agentModel\": \"llama-3.3-70b-versatile\"\n}\n```\n\n---\n\n## 🧠 Example Output\n\n```bash\nfix: improve dropdown selection styling\n\n- Enhanced UI interaction\n- Improved accessibility\n```\n\n---\n\n## 🎯 Why dgit-ai-commit?\n\n* Saves time writing commit messages\n* Enforces clean commit history\n* Lets you describe intent instead of memorizing git flags\n* Beginner-friendly CLI\n* Works seamlessly with any Git repo\n\n---\n\n## 📁 Project Structure\n\n```\nbin/\n  dg.js              → CLI entry point (Commander wiring only)\nsrc/\n  commands/          → one file per CLI command (init, add, commit, push, agent)\n  core/               → git.js, ai.js, config.js, cache.js — no UI code here\n  ui/                 → banner.js, theme.js, prompts.js, commitFlow.js, setup.js, guards.js\npublic/               → preview assets\n```\n\n---\n\n## 🌍 Keywords\n\nGit commit generator, AI commit message, Git CLI tool, GROQ AI, developer productivity, conventional commits, commit automation, AI git agent\n\n---\n\n## 👨‍💻 Author\n\n**Thinakaran Manokaran**\n🌐 [https://thinakaran.dev](https://thinakaran.dev)\n\n---\n\n## 📄 License\n\nMIT License - See [LICENSE](LICENSE) file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinakaranmanokaran%2Fdgit-ai-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinakaranmanokaran%2Fdgit-ai-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinakaranmanokaran%2Fdgit-ai-commit/lists"}