Skip to main content

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.2.2.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wtf_term-0.2.2-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file wtf_term-0.2.2.tar.gz.

File metadata

  • Download URL: wtf_term-0.2.2.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for wtf_term-0.2.2.tar.gz
Algorithm Hash digest
SHA256 18aba8857f2aac27b82200179ef3db4f4fca8c226a70a220f3dbf50b2816d63d
MD5 7ea7f5a14aa80e31f91aa8dd16eeb473
BLAKE2b-256 f018941ebdf9e81d9057313480353525ea7fc7b08956b181ce9e6eeddd8b90e9

See more details on using hashes here.

File details

Details for the file wtf_term-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: wtf_term-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for wtf_term-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 76b9f1c6da8a06c9d5f88df53e48fa8a39bb3bbf858374d65d5479d5d56187bc
MD5 8dcb44c2685bf699b060413528fc7cad
BLAKE2b-256 b9492c82b98f3a7bbfbb59fd5eb6585b0cb591aee7a085f03c21701a54ade1a8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page