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.6.3.tar.gz (22.6 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.6.3-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wtf_term-0.6.3.tar.gz
  • Upload date:
  • Size: 22.6 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.6.3.tar.gz
Algorithm Hash digest
SHA256 de7e5c0c69cd54203c5e31b756cb8c398a2bab29aed740c6087f29fc1e399047
MD5 7470d4ffb900c4aed9099e3bb7a980fa
BLAKE2b-256 79c35ef5b7b2d33738a68bac16057de6fdb7e35fc086fc63da044bedb3a0ab54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wtf_term-0.6.3-py3-none-any.whl
  • Upload date:
  • Size: 25.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.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 eae437fd4ae2833dc37cc0b10d05925c994e08297c9cfa7fc17a2b09dc4d91d1
MD5 1c08c898855f9c7797af75aabb3f5141
BLAKE2b-256 eec797580477833f61c8bc5ec57889335574573ddb15ebdb9587890501f15f5b

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