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.3.2.tar.gz (18.9 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.3.2-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wtf_term-0.3.2.tar.gz
  • Upload date:
  • Size: 18.9 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.3.2.tar.gz
Algorithm Hash digest
SHA256 7ce6bc2c099e5e8ca69d638bd560c3682ebf4f1fd1e80be83962a439370476c5
MD5 8a183f9aa9fc493fbf9bfb10380c792d
BLAKE2b-256 6b8c895339084a30933b18d48bba5127abdfd1e997c9eaae5a4eda8b2cbd5b9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wtf_term-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 20.1 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.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ae0e9b37ffe27bb8ea818ed20fe33fc3506b042492cf21ecee247dfa0cb5b18b
MD5 f9871b6ba4a5b6045d1aa6b341cfa3f2
BLAKE2b-256 62003ae8614afed0e1e4682a707dd7252afcae782df6873710a989370f0342b1

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