r/PythonLearning • u/mo7amed1600 • Aug 24 '26
I built Nanno because I wanted AI to explain my Python errors, not fix them for me
When I was learning Python, I kept running into errors and doing the same thing every time.
I would copy the error, copy the relevant part of my code, send both to an AI model, and ask:
«"Explain what this error means and why it happened, but don't fix the code. I want to solve it myself."»
I didn't want AI to just give me the answer. I wanted it to act more like a teacher and help me understand what I was doing wrong.
The problem was that I kept repeating this process manually.
So I built Nanno.
Nanno is a small CLI tool that helps you understand errors from your terminal using AI.
Instead of manually copying everything:
copy the error
↓
copy the relevant code
↓
paste everything into an AI model
↓
ask for an explanation
You can run your command through Nanno:
nanno python3 test.py
Nanno captures the terminal output and uses it as context for the AI, so it can explain what went wrong and why.
The main idea is simple:
Nanno helps you understand the error. You fix the code yourself.
I originally built it just for myself. It wasn't supposed to be a big product or have a bunch of features. I simply wanted to solve a problem I was having while learning Python.
Eventually, I decided to publish it because I thought there might be other people who have the same problem.
Right now, Nanno is very simple and still in its first version.
I want future versions to be shaped by actual users rather than me randomly adding features.
So if you try it and there's a feature you really want in Nanno, tell me in the comments.
If there's something you don't like or think is unnecessary, tell me that too. I may remove it.
I'm mainly looking for honest feedback from people who actually try it.
Try Nanno
pip install nanno
I'd be interested to hear whether this is actually useful for the way you learn/debug code.
8
u/Independent-Bat9797 Aug 24 '26
With basically any AI tool nowadays you can add general instructions - globally and/or project specific e.g. Just putting a CLAUDE.md with the instruction to only always explain into the project folder.
Don't want to downplay your work, but somehow it seems a bit redundant
3
u/Frosty-Emu7546 Aug 25 '26
Could you explain briefly how in background Nanno work, is it calling an LLM that goes through python documentation and the fixes or does a normal llm search based indexing of error ?
Kudos on the build, yeah same can we achieved with just an instruction file but going ahead creating a solution which caters only to you that’s a good trait to have while learning!!
1
u/burntoutdev8291 Aug 24 '26
I would prefer if you tried to do this with another tool like pi dev. I understand why you would want to avoid Claude cause it's overkill for your use case and a waste of tokens. Try out pi dev then adjust the prompts.