WhatTheFuck
WhatTheFuck is a command-line tool that leverages LLMs to correct and enhance previously executed terminal commands. Inspired by wut and The Fuck, it’s designed to save your time and sanity by fixing errors, summarizing logs, and more.
Example
$ (wtf): git brnch
git: 'brnch' is not a git command. See 'git --help'.
The most similar command is
branch
$ (wtf): wtf
The error message indicates that 'brnch' is not recognized as a valid Git command. The correct command is 'branch', which is likely what you intended to use to list, create,
or delete branches in your repository. The suggestion for 'branch' highlights this common typo. To avoid such errors, ensure command spelling is accurate.
Run `git branch`? [y/N]: y
* main
※LLM's streamed outputs are omitted for simplicity
Features
- LLM Switching: Easily switch between different llms.(OpanAI, Anthropic, Vertex)
- Instant Command Fixes: Detect and fix incorrect terminal commands effortlessly.
- One-Click Execution: Run corrected commands seamlessly.
- Log Summarization: Summarize logs from previous terminal commands for quick insights.
- Web Search Integration: Perform real-time web searches to gather relevant information or troubleshoot issues directly from the tool.
Installation
$ pip install wtf-cli
# or
$ uv add wtf-cli
# or
$ poetry add wtf-cli
Versioning
This repo uses Semantic Versioning.
License
WhatTheFuck is released under the MIT License. See LICENSE for additional details.
Metadata
Release files for wtf-cli 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wtf_cli-0.2.0.tar.gz | 103.7 kB | Without provenance | Details for wtf_cli-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wtf_cli-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for wtf_cli-0.2.0-py3-none-any.whl |
Total release size: 127.8 kB
Release files / wtf_cli-0.2.0.tar.gz
| Download URL | wtf_cli-0.2.0.tar.gz |
|---|---|
| Size | 103.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffa59cf04bda26511c3243054b2c99fce8148ed8fbf154437848311bdd5b5cf1
|
|
BLAKE2b-256 checksum How to use checksums |
f304641d057eed756b67ebb6852ea7a48088049d9f989ea65eac60cb3c1803a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.11
|
Release files / wtf_cli-0.2.0-py3-none-any.whl
| Download URL | wtf_cli-0.2.0-py3-none-any.whl |
|---|---|
| Size | 24.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
548303f8ea9d8d9fce617fc974b6cc11cd8a7197a9e8387313554787dac792b5
|
|
BLAKE2b-256 checksum How to use checksums |
a98c3bde4fafe146e5136df979dfc06701a581973808d72ec5f978012c2bf3ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.11
|
Security for wtf-cli 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.