Skip to content
forked from shobrook/wut

Terminal assistant for the hopelessly confused

License

Notifications You must be signed in to change notification settings

rizkyilhampra/wut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wut

CLI that summarizes the output of the previous console command.

Just type in wut and an LLM of your choice will explain what's in your terminal. You can use it to:

  • Understand and debug stack traces
  • Decipher error codes
  • Fix incorrect commands
  • Summarize logs

Demo

Installation

> pipx install wut-cli

Once installed, you can choose either OpenAI or Claude as your LLM provider. Just ensure you have the appropriate key added to your environment:

> export OPENAI_API_KEY="..."
> export ANTHROPIC_API_KEY="..."

Usage

wut must be used inside a tmux or screen session. To use it, just type wut after running a command:

> git create-pr
git: 'create-pr' is not a git command.
> wut

You'll quickly get a brief explanation of the issue:

This error occurs because Git doesn't have a built-in `create-pr` command.
To create a pull request, you typically need to:

1. Push your branch to the remote repository
2. Use the GitHub web interface

If you have a specific question about your last command, you can include a query:

> brew install pip
...
> wut "how do i add this to my PATH variable?"

Roadmap

  1. If possible, capture terminal output outside a tmux or screen session.
  2. Add a --fix option to automatically execute a command suggested by wut.

About

Terminal assistant for the hopelessly confused

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%