GitHub - Lywald/portfolio-CommandCapd: Visually interpret the active PowerShell/CMD window with OpenAI GPT

1 min read Original article ↗

CommandCapd

Visually interpret the active PowerShell/CMD window with OpenAI GPT

image

This is NOT a chat app. fF it's not in the window, then AI isn't aware.

The point is to process only what is in the current scrolled state, like the last error message off your debugging.

Another good app would process the whole Powershell vertically, but I'm not interested in doing that for now. I don't want it to be so invasive.

HOW TO CREATE A SYSTEM COMMAND IN WINDOWS

This is how I create "capd" command instead of typing "python capd.py" each time:

image

https://www.yopa.page/blog/2024-09-14-transform-python-scripts-into-global-command-line-tools.html

(I already created the .bat file for you to download. You just need to add the folder to PATH.)

Also run this command to install the needed packages:

pip install -r .\requirements.txt

API Key

Don't forget to add your own API Key in the python file, or it won't run.

You get one here:

https://platform.openai.com/settings/organization/api-keys