{"id":29754093,"url":"https://github.com/codewithdpk/cocommit","last_synced_at":"2025-07-26T15:17:50.276Z","repository":{"id":300778739,"uuid":"1007145378","full_name":"codewithdpk/cocommit","owner":"codewithdpk","description":"AI-powered CLI tool for generating conventional commit messages based on your code changes.","archived":false,"fork":false,"pushed_at":"2025-07-02T09:13:06.000Z","size":5513,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-02T09:13:51.447Z","etag":null,"topics":["agent","ai","git","openai"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@cwdpk/cocommit","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/codewithdpk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-06-23T14:28:43.000Z","updated_at":"2025-07-02T09:11:35.000Z","dependencies_parsed_at":"2025-06-23T15:49:09.836Z","dependency_job_id":null,"html_url":"https://github.com/codewithdpk/cocommit","commit_stats":null,"previous_names":["codewithdpk/cocommit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codewithdpk/cocommit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithdpk%2Fcocommit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithdpk%2Fcocommit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithdpk%2Fcocommit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithdpk%2Fcocommit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewithdpk","download_url":"https://codeload.github.com/codewithdpk/cocommit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewithdpk%2Fcocommit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267184252,"owners_count":24049155,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"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":["agent","ai","git","openai"],"created_at":"2025-07-26T15:17:48.729Z","updated_at":"2025-07-26T15:17:50.265Z","avatar_url":"https://github.com/codewithdpk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CoCommit\n\nAI-powered CLI tool for generating conventional commit messages and branch names based on your code changes.\n\n![Demo Video](https://github.com/codewithdpk/cocommit/raw/refs/heads/main/demococo.mp4)\n\n## Features\n\n- 🤖 **AI-Powered Commit Messages**: Generate meaningful commit messages using OpenAI, Anthropic, or Google models.\n- 🌿 **AI-Powered Branch Names**: Generate conventional branch names based on your staged changes.\n- 📝 **Conventional Commit Format**: Follows the conventional commit standard.\n- 🔍 **Smart File Analysis**: Analyzes staged files and their diffs for context-aware messages and branch names.\n- ⚡ **Quick Commands**: Simple CLI commands and aliases for fast workflow: analyze, generate, and commit or branch within a single command.\n- 🎨 **Beautiful Output**: Colorful, user-friendly CLI interface.\n- 🔧 **Easy Configuration**: Interactive setup for AI provider and API key.\n\n## Installation\n\n### Global (Recommended)\n\n```sh\nnpm install -g @cwdpk/cocommit\n```\n\n### Local Development\n\n```sh\ngit clone \u003crepository-url\u003e\ncd cocommit\nnpm install\nnpm run build\nnpm link\n```\n\n## Usage\n\n### 1. Configure your AI provider\n\n```sh\ncocommit config\n```\n\nFollow the prompts to select your provider and enter your API key. This will be saved to `~/.cocommit-config.json`.\n\n### 2. Generate a commit message\n\nStage your changes, then run:\n\n```sh\ncocommit commit\n```\n\nOr use the alias:\n\n```sh\ncocommit c\n```\n\nYou can also provide your own message:\n\n```sh\ncocommit commit -m \"your message\"\n```\n\n### 3. Generate a branch name (NEW)\n\nStage your changes, then run:\n\n```sh\ncocommit branch new\n```\n\nOr use the alias:\n\n```sh\ncocommit b n\n```\n\nYou can also provide your own branch name:\n\n```sh\ncocommit branch new -n \"your-branch-name\"\n```\n\nThe tool will suggest an AI-generated branch name based on your staged changes, and prompt for confirmation or a custom name before creating and checking out the new branch.\n\n### 4. View status with AI insights\n\n```sh\ncocommit status\n```\n\n## Supported Providers\n\n- OpenAI (GPT-4o, GPT-4o-mini, GPT-3.5 Turbo)\n- Anthropic (Claude 3.5 Sonnet, Haiku, Opus)\n- Google (Gemini 1.5 Pro, Flash)\n\n## Configuration File\n\n- Location: `~/.cocommit-config.json`\n- Stores: provider, model, and API key\n\n## Requirements\n\n- Node.js v16 or higher\n- An API key from your chosen AI provider\n\n## License\n\nMIT\n\n## Author\n\n[Deepak Suthar](https://x.com/0xDSuthar)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithdpk%2Fcocommit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewithdpk%2Fcocommit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithdpk%2Fcocommit/lists"}