{"id":26498540,"url":"https://github.com/samso9th/komments","last_synced_at":"2026-05-20T03:08:09.194Z","repository":{"id":282610693,"uuid":"949126300","full_name":"Samso9th/komments","owner":"Samso9th","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-15T18:44:58.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T19:32:34.584Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/Samso9th.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}},"created_at":"2025-03-15T18:29:40.000Z","updated_at":"2025-03-15T18:45:02.000Z","dependencies_parsed_at":"2025-03-15T19:42:46.910Z","dependency_job_id":null,"html_url":"https://github.com/Samso9th/komments","commit_stats":null,"previous_names":["samso9th/komments"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samso9th%2Fkomments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samso9th%2Fkomments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samso9th%2Fkomments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samso9th%2Fkomments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Samso9th","download_url":"https://codeload.github.com/Samso9th/komments/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244631479,"owners_count":20484579,"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":[],"created_at":"2025-03-20T14:37:48.575Z","updated_at":"2026-05-20T03:08:04.163Z","avatar_url":"https://github.com/Samso9th.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Komments\n\nA tool that integrates with Google Gemini AI to analyze code and suggest comments.\n\n## Installation\n\n```bash\nnpm install -g komments\n```\n\nOr run directly with npx:\n\n```bash\nnpx komments\n```\n\n## Features\n\n- Scans Git changes to focus on recently modified files\n- Uses Google Gemini AI to analyze code and suggest meaningful comments\n- Interactive mode to review and apply suggestions\n- Support for multiple programming languages\n- Customizable AI temperature setting\n- Import and apply suggestions from saved files\n- Remove comments from codebase with interactive confirmation\n\n## Setup\n\nOn first run, you'll be prompted to enter your Google Gemini API key. You can get a free API key from [Google AI Studio](https://aistudio.google.com/app/apikey).\n\nThe API key will be saved to `.env.local` and `.env` files in your project root. These files will be automatically added to your `.gitignore` to prevent accidental exposure.\n\n## Usage\n\n### Generate Comments\n\n```bash\n# Basic usage - scans Git changes and saves suggestions to komments.json\nkomments\n\n# Review and apply suggestions interactively\nkomments --interactive\n\n# Control the creativity of AI suggestions (0.0-1.0)\nkomments --temperature 0.5\n```\n\n### Import Suggestions\n\n```bash\n# Import and apply suggestions from a komments.json file\nkomments import --file path/to/komments.json\n\n# Import and apply all suggestions without interactive review\nkomments import --apply-all\n```\n\n### Remove Comments\n\n```bash\n# Remove all comments from the codebase (with interactive confirmation)\nkomments remove-comments\n\n# Remove all comments without confirmation\nkomments remove-comments --no-interactive\n```\n\n## Output\n\nSuggestions are saved to `komments.json` in the following format:\n\n```json\n[\n  {\n    \"id\": \"gen-1234567890\",\n    \"timestamp\": \"2023-01-01T12:00:00.000Z\",\n    \"suggestions\": [\n      {\n        \"file\": \"src/example.js\",\n        \"line\": 42,\n        \"codeSnippet\": \"function calculateTax(...)...\",\n        \"suggestedComment\": \"Calculates tax based on income and region.\"\n      }\n    ]\n  }\n]\n```\n\nThe format supports multiple generations of suggestions, with each generation having a unique ID and timestamp. This allows you to track different sets of suggestions over time.\n\nComment removal operations are also recorded in the `komments.json` file, providing a history of comment management activities.\n\n## Supported Languages\n\n- JavaScript/TypeScript\n- Python\n- Java\n- C/C++\n- C#\n- Go\n- Ruby\n- PHP\n- Swift\n- Rust\n- HTML/CSS/SCSS\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamso9th%2Fkomments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamso9th%2Fkomments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamso9th%2Fkomments/lists"}