{"id":16277256,"url":"https://github.com/rbourgeat/llm-cmd","last_synced_at":"2025-04-11T14:21:41.416Z","repository":{"id":198086137,"uuid":"700046076","full_name":"rbourgeat/llm-cmd","owner":"rbourgeat","description":"✨ LLM CMD is a toolbox allowing you to use LLM in daily developer commands 💻","archived":false,"fork":false,"pushed_at":"2023-10-09T00:28:37.000Z","size":201,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T10:37:29.469Z","etag":null,"topics":["ai","docker","ggml","git","llama-cpp","llm"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rbourgeat.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}},"created_at":"2023-10-03T20:52:01.000Z","updated_at":"2024-01-26T21:22:41.000Z","dependencies_parsed_at":"2024-12-22T07:22:32.030Z","dependency_job_id":"7470c765-3f60-4aa9-b55d-9fce05db5f4c","html_url":"https://github.com/rbourgeat/llm-cmd","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.125,"last_synced_commit":"25b30757ab908ba6aefea8f38edc3a84cb972740"},"previous_names":["rbourgeat/llm-cmd"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbourgeat%2Fllm-cmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbourgeat%2Fllm-cmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbourgeat%2Fllm-cmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rbourgeat%2Fllm-cmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rbourgeat","download_url":"https://codeload.github.com/rbourgeat/llm-cmd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248418126,"owners_count":21100190,"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":["ai","docker","ggml","git","llama-cpp","llm"],"created_at":"2024-10-10T18:53:33.639Z","updated_at":"2025-04-11T14:21:41.383Z","avatar_url":"https://github.com/rbourgeat.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\" width=\"100%\"\u003e\n\u003cimg src=\"./assets/llm-cmd-logo.jpeg\" alt=\"Vigogne\" style=\"width: 40%; min-width: 300px; display: block; margin: auto;\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg alt=\"Python\" src=\"https://img.shields.io/badge/python-3670A0?style=for-the-badge\u0026logo=python\u0026logoColor=ffdd54\"\u003e\n    \u003cimg alt=\"Docker\" src=\"https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge\u0026logo=docker\u0026logoColor=white\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    ✨ LLM CMD is a toolbox allowing you to use LLM in daily developer commands 💻\n\u003c/p\u003e\n\n## 🤗 Fun Facts\n\n• This readme was largely generated with `cmd/readme.py`.\n\n• All commit messages were generated with `cmd/git/commit.py`.\n\n• All code comments were generated with `cmd/comment.py`\n\n## 📚 Table of commands\n\n- 📝 [readme](#readme)\n- 🚀 [git commit](#git-commit)\n- 💭 [comment](#comment)\n\n## 🎬 Setup\n\nExecute the following command:\n\n```bash\nmake\n```\n\nIt will download the [Hugging Face](https://huggingface.co/) model (you can change it in the top of the `Makefile`) and run it with llama.cpp server.\n\n## 📝 readme\n\nThis is a Python script that generates a README.md file based on user input and a file path provided as an argument. The script uses the `requests` library to interact with an API endpoint that generates the README content, and writes it to a local README file.\n\n### Usage\n\nRun the script with the necessary arguments:\n\n```bash\npython3 cmd/readme.py path/to/your/file\n```\n\nReplace `path/to/your/file` with the actual path to your project file.\n\n### Functionality\n\nThe `cmd/readme.py` script performs the following tasks:\n\n1. Checks whether a README.md file exists in the current directory. If it does, it rewrites the file using the provided content.\n2. Takes command-line arguments that specify a file path to use as the prompt for the language model.\n3. Reads the content of the specified file and uses it to generate a README.md template.\n4. Sends a POST request to a pre-trained language model API (http://localhost:8080/completion) with the generated template as input. The API generates completion prompts based on the template, which are then written to the README.md file.\n5. If the generated prompt is empty, the script calls itself recursively with the original command-line arguments to continue generating prompts until a non-empty prompt is obtained.\n\n## 🚀 git commit\n\nThis script is a simple command-line tool that helps you write commit messages for your Git repository using an artificial intelligence (AI) completion system. The AI system generates completion suggestions based on the commit message prompt provided by the user.\n\n### Usage\n\nTo use this tool, follow these steps:\n\n1. Run the following command to add your file to your repo git:\n```bash\ngit add path/to/your/file\n```\n2. Run the following command to execute the script:\n```bash\npython3 cmd/git/commit.py\n```\n3. Git will automatically commit your changes with the generated commit message.\n4. Now you can execute the following command for push:\n```bash\ngit push\n```\n\n## 💭 comment\n\nThis script is a simple Python script that takes a file path as an argument and attempts to add comments to the code within it. The script uses an API endpoint to generate completion suggestions for comments and replaces any lines that match the specified comment pattern with empty strings.\n\n### Usage\n\nTo use this script, run it from the command line with the path to the file you want to add comments to as an argument:\n\n```sh\npython3 cmd/comment.py /path/to/your/file.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbourgeat%2Fllm-cmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frbourgeat%2Fllm-cmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbourgeat%2Fllm-cmd/lists"}