{"id":22882255,"url":"https://github.com/shobrook/wut","last_synced_at":"2025-05-14T09:07:20.093Z","repository":{"id":64516042,"uuid":"575748307","full_name":"shobrook/wut","owner":"shobrook","description":"A terminal assistant for the hopelessly confused","archived":false,"fork":false,"pushed_at":"2024-12-20T22:03:43.000Z","size":15583,"stargazers_count":1291,"open_issues_count":16,"forks_count":70,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-14T08:08:27.791Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/shobrook.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}},"created_at":"2022-12-08T07:57:40.000Z","updated_at":"2025-04-12T16:21:55.000Z","dependencies_parsed_at":"2024-10-25T18:29:03.376Z","dependency_job_id":"7b68fdf8-b3aa-48c9-b47b-9f76327f7875","html_url":"https://github.com/shobrook/wut","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"ec36333b85c055678e290d883f839513bbbad058"},"previous_names":["shobrook/wut","shobrook/stackexplain"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shobrook%2Fwut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shobrook%2Fwut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shobrook%2Fwut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shobrook%2Fwut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shobrook","download_url":"https://codeload.github.com/shobrook/wut/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254110374,"owners_count":22016391,"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":"2024-12-13T18:09:32.843Z","updated_at":"2025-05-14T09:07:20.040Z","avatar_url":"https://github.com/shobrook.png","language":"Python","funding_links":[],"categories":["\u003ca name=\"ai-cli-commands\"\u003e\u003c/a\u003eAI terminal command generator","Python","others","UIs"],"sub_categories":["Command-line(shell) interface"],"readme":"# wut\n\n**CLI that explains the output of your last command.**\n\nJust type `wut` and an LLM will help you understand whatever's in your terminal. You'll be surprised how useful this can be. It can help you:\n\n- Understand stack traces\n- Decipher error codes\n- Fix incorrect commands\n- Summarize logs\n\n![Demo](./demo.gif)\n\n## Installation\n\n```bash\n\u003e pipx install wut-cli\n```\n\n\u003c!-- On MacOS or Linux, you can install via Homebrew:\n\n```bash\n\u003e brew install wut\n```\n\nOn other systems, you can install using pip:\n\n```bash\n\u003e pipx install wut-cli\n``` --\u003e\n\nOnce installed, you can use OpenAI or Claude as your LLM provider. Just add the appropriate API key to your environment:\n\n```bash\n\u003e export OPENAI_API_KEY=\"...\"\n\u003e export ANTHROPIC_API_KEY=\"...\"\n```\n\nYou can also use a local model with Ollama. Just add the model name that's being served to your environment:\n\n```bash\n\u003e export OLLAMA_MODEL=\"...\"\n```\n\nIf you're using OpenAI, you can customize your model and API URL by adding the following to your environment:\n\n```bash\n\u003e export OPENAI_MODEL=\"...\" # Default to \"gpt-4o\"\n\u003e export OPENAI_BASE_URL=\"...\" # Default to None\n```\n\n## Usage\n\n`wut` must be used inside a `tmux` or `screen` session to capture the last command's output. To use it, just type `wut` after running a command:\n\n```bash\n\u003e git create-pr\ngit: 'create-pr' is not a git command.\n\u003e wut\n```\n\nYou'll quickly get a brief explanation of the issue:\n\n```\nThis error occurs because Git doesn't have a built-in `create-pr` command.\nTo create a pull request, you typically need to:\n\n1. Push your branch to the remote repository\n2. Use the GitHub web interface\n```\n\nIf you have a _specific question_ about your last command, you can include a query:\n\n```bash\n\u003e brew install pip\n...\n\u003e wut \"how do i add this to my PATH variable?\"\n```\n\n## Roadmap\n\n1. [If possible,](https://stackoverflow.com/questions/24283097/reusing-output-from-last-command-in-bash/75629157#75629157) drop the requirement of being inside a tmux or screen session.\n2. Add a `--fix` option to automatically execute a command suggested by `wut`.\n3. Add `wut` to Homebrew.\n4. Make some unit tests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshobrook%2Fwut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshobrook%2Fwut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshobrook%2Fwut/lists"}