Explain & fix your errors directly from the terminal.
Project description
WTF
wtf is an AI-powered CLI debugging assistant.
It helps you:
- explain errors and crashes
- detect issues like segmentation faults
- automatically fix broken code
- stay entirely in your terminal
No context switching. No googling cryptic errors. Just run wtf.
Example
Broken code
// error.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char* get_message() {
char buffer[32];
strcpy(buffer, "Hello from wtf!");
return buffer;
}
int main() {
char* msg = get_message();
char* tmp = malloc(16);
strcpy(tmp, "temporary");
free(tmp);
printf("%s\n", msg);
return 0;
}
Build and run
gcc error.c -o error
./error
Output:
Segmentation fault (core dumped)
Fix it with wtf
wtf fix error.c
Result
wtf analyzes the crash and rewrites the code:
// error.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char* get_message() {
char* buffer = malloc(32);
strcpy(buffer, "Hello from wtf!");
return buffer;
}
int main() {
char* msg = get_message();
char* tmp = malloc(16);
strcpy(tmp, "temporary");
free(tmp);
printf("%s\n", msg);
free(msg);
return 0;
}
Output
Hello from wtf!
Why wtf?
- ⚡ Instant error explanations
- 🧠 AI-powered debugging
- 🔧 Automatic code fixes
- 🖥️ Works directly in your terminal
License
This project is licensed under the GPL-3.0 License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wtf_term-0.5.3.tar.gz
(20.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
wtf_term-0.5.3-py3-none-any.whl
(21.5 kB
view details)
File details
Details for the file wtf_term-0.5.3.tar.gz.
File metadata
- Download URL: wtf_term-0.5.3.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a20cc2cac63e08afec878688eef9108ad7b30ba59305cb218e00d6dcc5a35ee6
|
|
| MD5 |
0adbf06cc4460c4c8d5d3b264e77bb51
|
|
| BLAKE2b-256 |
4a008398b5e140a22566df827252020b9cb2a4e3278de27e946d92ba4c73c5ea
|
File details
Details for the file wtf_term-0.5.3-py3-none-any.whl.
File metadata
- Download URL: wtf_term-0.5.3-py3-none-any.whl
- Upload date:
- Size: 21.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6365fb24efdd3873741f162a589a33c64d376e8a7210d9d36d41d1405bbf86e5
|
|
| MD5 |
3cb64bd2a13b517c83eaf69df5a4981a
|
|
| BLAKE2b-256 |
fc5f1e1da466b5005db5793e5f9d9172a02da8f5205fbb305a79650b8b94a536
|