gitwtfhub

wtf is e-prompt?

omarhimada/e-prompt — explained in plain English

Analysis updated 2026-05-18

1C++Audience · generalComplexity · 2/5Setup · moderate

TL;DR

A small Windows C++ tool that cleans up Stable Diffusion prompts by sorting terms, checking parentheses, and removing duplicates.

Mindmap

mindmap
  root((e-prompt))
    What it does
      Sorts prompt terms
      Validates parentheses
      Removes duplicates
    Tech stack
      C++
      Windows app
    Use cases
      Stable Diffusion prompts
      Prompt cleanup
    Audience
      AI image generation users
    Notes
      README is sparse
      No build instructions given

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Clean up a messy Stable Diffusion prompt before generating an image

REASON 2

Check that parentheses used for prompt weighting are balanced

REASON 3

Remove duplicate words or phrases from a long prompt

REASON 4

Sort prompt terms by weight or alphabetically for readability

What's in the stack?

C++Windows

How it stacks up

omarhimada/e-promptallentdan/shape_based_matchingamu2mod/radeonmon
Stars111
LanguageC++C++C++
Last pushed2019-03-01
MaintenanceDormant
Setup difficultymoderatemoderatemoderate
Complexity2/53/53/5
Audiencegeneraldevelopervibe coder

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 30min

README does not document build steps, likely needs a C++ Windows build toolchain to compile from source.

Wtf does this do

e-prompt is a small Windows application written in C++ for people who write prompts for Stable Diffusion, the AI image generation tool. Stable Diffusion prompts are often long lists of comma separated words and phrases, sometimes with parentheses used to give certain words extra weight or emphasis. As these prompt lists grow, they can become messy, with duplicate terms, mismatched parentheses, and inconsistent ordering that makes them harder to read and edit. This tool takes a prompt and cleans it up automatically. It sorts the terms in the prompt both by their assigned weight and alphabetically, checks that every opening parenthesis has a matching closing one, and removes any duplicate entries so the same word or phrase does not appear twice. The result is a tidier, more consistent prompt that is easier to review and reuse. The README for this project is very short and does not go into detail about installation steps, build instructions, or exact usage commands. It includes only the project description and a screenshot of the application's interface, which appears to be a simple window where a prompt can be entered and processed. Because the project is written in C++ and described as a Windows application, it is likely built and run as a native Windows executable rather than a cross platform tool, though the README does not confirm the specific build tools or dependencies required. This is a small, single purpose utility rather than a full framework or library, aimed at Stable Diffusion users who want to keep their prompt text organized. Anyone wanting to use it would likely need to check the repository's source files directly for build instructions, since the README itself does not provide them.

Yoink these prompts

Prompt 1
Explain what e-prompt does to a Stable Diffusion prompt
Prompt 2
Help me figure out how to build e-prompt from source on Windows
Prompt 3
Show me an example of a messy prompt before and after e-prompt sorts it
Prompt 4
Explain how parentheses weighting works in Stable Diffusion prompts

Frequently asked questions

wtf is e-prompt?

A small Windows C++ tool that cleans up Stable Diffusion prompts by sorting terms, checking parentheses, and removing duplicates.

What language is e-prompt written in?

Mainly C++. The stack also includes C++, Windows.

How hard is e-prompt to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is e-prompt for?

Mainly general.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.