Prompts / fix-errors-with-ai

Fix any error: paste the whole thing into the AI

By Mate Visky, host of Mate Wish Key

#002 piy.show/002 errorsterminalany AI app

Fix any error: paste the whole thing into the AI

Her first evening in a terminal, and something went red. I knew what the error was. I didn’t tell her. She pasted it into the AI instead, and it fixed it: a tool the command needed was not installed on her Mac yet, so it installed it.

The prompt

There barely is one. You paste the error and press Enter. If you want words with it:

This is what I ran and everything it printed. What went wrong, and how do I fix it?

What to paste

  1. The command you ran. Not just the error. The AI needs to know what you were trying to do.
  2. Everything it printed, from the start. The last red line is usually the least useful one. The cause is often a few lines above it.
  3. Or a screenshot of the whole terminal window. Every chat app takes one.

The more it sees, the better it guesses. On the show, the first try was copying the wrong part. Copy from the command down.

How to copy out of a terminal

Read what it says back

It will usually tell you what broke and hand you a command to fix it. Don’t just run it. Ask first:

Before I run that, explain what it does and what it changes on my computer.

An error is the best lesson a terminal gives you. “Command not found” means something isn’t installed yet. “Permission denied” means you are not allowed to touch that file or folder. Once you’ve had each explained once, you start reading them yourself.

And if its fix fails, paste the new error back. Same move, one more round.

Before you paste

Terminal output can carry things you should not share: API keys, tokens, passwords, sometimes your full name in a folder path. Look before you paste. If a key did slip into a chat, replace the key. Deleting the chat is not enough.

This works in any AI chat app. With Claude Code on your own computer, the agent sees the error itself, so there is nothing to copy. That is what Course 01 sets up.

Also from the reels

When debugging, don't call your brother.

See it done live

Mate Wish Key is the live show, and it is pro bono.

The show does this same process with real guests on their own computers. Would you rather do it together? It is pro bono: bring a wish and your own computer, you do the typing, I help with the prompting.

← All prompts