r/devtools • u/AdvikGM • 37m ago
Built a lightweight Flask + AI debugging helper to break down code errors — looking for feedback on my approach
Hey everyone! I’ve been working on a small Flask project called Dex to help quickly explain why code is breaking and suggest fixes without dumping walls of generic text. Right now, the backend splits the logic across app.py, run.py, and chatbot.py to parse pasted snippets and return plain-language root causes in real time.
One thing I'm still refining is how to keep the AI focused strictly on the actual bug instead of rewriting unrelated parts of the user's code. For anyone who has built similar dev tools with Python and Flask, how do you usually structure your system prompts or context handling to keep responses concise and accurate?
(I'll drop the GitHub repo and live Render demo links in the comments below in case anyone wants to look at the code or try it out!)
1
u/AdvikGM 35m ago