Skip to main content

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.

Metadata

Release files for wtf-term 0.6.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wtf-term 0.6.3
File Size Uploaded Provenance Actions
wtf_term-0.6.3.tar.gz 22.6 kB Without provenance Details for wtf_term-0.6.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wtf-term 0.6.3
File Interpreter ABI Platform Actions
wtf_term-0.6.3-py3-none-any.whl Python 3 none any Details for wtf_term-0.6.3-py3-none-any.whl

Total release size: 47.7 kB

Release files / wtf_term-0.6.3.tar.gz

Download URL wtf_term-0.6.3.tar.gz
Size 22.6 kB
Tags Source
SHA-256 checksum
How to use checksums
de7e5c0c69cd54203c5e31b756cb8c398a2bab29aed740c6087f29fc1e399047
BLAKE2b-256 checksum
How to use checksums
79c35ef5b7b2d33738a68bac16057de6fdb7e35fc086fc63da044bedb3a0ab54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / wtf_term-0.6.3-py3-none-any.whl

Download URL wtf_term-0.6.3-py3-none-any.whl
Size 25.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eae437fd4ae2833dc37cc0b10d05925c994e08297c9cfa7fc17a2b09dc4d91d1
BLAKE2b-256 checksum
How to use checksums
eec797580477833f61c8bc5ec57889335574573ddb15ebdb9587890501f15f5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for wtf-term 0.6.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page