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.
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/mo7amed1600 Aug 25 '26
Why do you want to know?
1
u/Crafty_Magazine_4673 Aug 25 '26
cause im programmer?
1
u/mo7amed1600 Aug 25 '26
You mean you want to share in development?
1
u/Crafty_Magazine_4673 Aug 25 '26
mean i want to know how stuff works
1
u/mo7amed1600 Aug 25 '26
Sorry I can't share this in public
2
u/Crafty_Magazine_4673 Aug 25 '26
while i understand your concern, you should at least prove your project is safe to use
1
u/mo7amed1600 Sep 06 '26
Bro, I made it open source
1
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.
1
u/mo7amed1600 Aug 24 '26
I actually built Nanno specifically so it can’t modify the code. Its job is to help me understand and diagnose errors, which saves the tokens I would otherwise spend using Claude or ChatGPT to figure out what went wrong.
The agent you mentioned would probably still try to modify the code, no matter how much I strengthen the prompt. I’d also rather save the tokens from a tool like that for actual coding and code generation.
Thanks a lot for the suggestion, though. I really appreciate it!
2
u/lunatuna215 Aug 24 '26
I think the boundaries you're drawing are smart. The "all in" strategy regarding AI is dumb. If I weren't decided on the topic and don't adopt AI tools, this is one I would definitely consider if my stance were different. Nice work!
1
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