{"id":21166929,"url":"https://github.com/guoriyue/langcommand","last_synced_at":"2025-04-04T15:10:24.537Z","repository":{"id":258895057,"uuid":"866912876","full_name":"guoriyue/LangCommand","owner":"guoriyue","description":"LangCommand is a local inference command-line tool that transforms natural language descriptions into shell commands.","archived":false,"fork":false,"pushed_at":"2024-11-18T02:10:49.000Z","size":108229,"stargazers_count":109,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-18T03:19:28.141Z","etag":null,"topics":["command","command-line","command-line-tool","ggml","llama","llm","shell","terminal"],"latest_commit_sha":null,"homepage":"http://langcommand.com","language":"C++","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/guoriyue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-03T05:35:05.000Z","updated_at":"2024-11-18T02:10:53.000Z","dependencies_parsed_at":"2024-11-18T03:29:41.106Z","dependency_job_id":null,"html_url":"https://github.com/guoriyue/LangCommand","commit_stats":null,"previous_names":["guoriyue/llmc","guoriyue/langcommand"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guoriyue%2FLangCommand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guoriyue%2FLangCommand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guoriyue%2FLangCommand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guoriyue%2FLangCommand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guoriyue","download_url":"https://codeload.github.com/guoriyue/LangCommand/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247198463,"owners_count":20900080,"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":["command","command-line","command-line-tool","ggml","llama","llm","shell","terminal"],"created_at":"2024-11-20T14:58:40.309Z","updated_at":"2025-04-04T15:10:24.514Z","avatar_url":"https://github.com/guoriyue.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"LangCommand\n====\n\n![Demo Video](output.gif)\n\n\nLangCommand is a local inference command-line tool powered by llama.cpp that transforms natural language descriptions into executable shell commands.\n\n* Natural Language Command Generation: Simply describe the command you need in plain language, and LangCommand will generate the appropriate shell command for you.\n* Customizable Models: Choose from a variety of preconfigured models or provide your own for custom workflows.\n* Multiple Modes:\n    * loop mode: Continues to choose and execute commands.\n    * exit mode: Executes a single command and exits.\n* Command Explanation: Optionally provides an explanation of the generated command.\n* Tracing: Enable model tracing to debug and track the execution process.\n\n\nInstall\n-------\n\nTo build LangCommand from source, use the following command:\n\n    make lac\n\nUsage\n-----\n\nTo use LangCommand, provide a natural language description:\n\n    lac \"your prompt\"\n\nYou can run `lac` without arguments to explore options:\n\n```bash\n--------------------------------- LangCommand params ----------------------------------\n-h,    --help, --usage                  Print LangCommand usage\n--setup                                 Set up your LangCommand model: choose or customize\n--show-args                             Show arguments you saved\n--no-explanation                        Disable command explanation\n--mode {loop,exit}                      Select the mode of operation.\n                                                - loop: Continues to choose and execute commands indefinitely.\n                                                - exit: Executes a single command and then stops the program.\n--model-help, --model-usage             Print LangCommand default model arguments\n--trace                                 Enable tracing for the execution of the default model\n```\n\nSupported Models\n----------------\n\nLangCommand comes with support for the [following preconfigured models](https://huggingface.co/MingfeiGuo/LangCommand/tree/main):\n\n* Qwen2.5-Coder-7B\n* Qwen2.5-7B\n* Llama-3.2-3B\n* Llama-3.2-1B\n* Codellama-13B\n\nYou can also provide your own model with custom system prompts.\n\n\nTroubleshooting\n----------------\n\n```bash\nggml_metal_graph_compute: command buffer 1 failed with status 5\nerror: Insufficient Memory (00000008:kIOGPUCommandBufferCallbackErrorOutOfMemory)\n```\n\nThis typically occurs when the system does not have enough memory to load and run the selected model. To resolve, consider using a smaller model.\n\n\nCommunity \u0026 Contact\n----------------\n\nConnect to discuss LangCommand, share feedback, and get support from other users:\n\n[Join the LangCommand Discord group](https://discord.gg/zG4x6NuT5q)\n\nFor any questions or inquiries, feel free to reach out via email:\n\n[Email me](mailto:mingfeiguoo@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguoriyue%2Flangcommand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguoriyue%2Flangcommand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguoriyue%2Flangcommand/lists"}