<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tanisha Agarwal</title>
    <description>The latest articles on DEV Community by Tanisha Agarwal (@tanisha_agarwal_bc389f52e).</description>
    <link>https://dev.to/tanisha_agarwal_bc389f52e</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4161963%2F4f3a0ff3-68cd-472f-8fba-10c0af9e9ff9.png</url>
      <title>DEV Community: Tanisha Agarwal</title>
      <link>https://dev.to/tanisha_agarwal_bc389f52e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tanisha_agarwal_bc389f52e"/>
    <language>en</language>
    <item>
      <title>AI Code Debugger: Fix Python Errors Fast with Open-Source AI</title>
      <dc:creator>Tanisha Agarwal</dc:creator>
      <pubDate>Sun, 11 Oct 2026 04:46:33 +0000</pubDate>
      <link>https://dev.to/tanisha_agarwal_bc389f52e/ai-code-debugger-fix-python-errors-fast-with-open-source-ai-4k4e</link>
      <guid>https://dev.to/tanisha_agarwal_bc389f52e/ai-code-debugger-fix-python-errors-fast-with-open-source-ai-4k4e</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-week1-2026-10-05"&gt;Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;AI Code Debugger&lt;/strong&gt; is a web tool that finds errors in your Python code, explains them in simple words, and can fix them automatically.&lt;/p&gt;

&lt;p&gt;You paste your code, click &lt;strong&gt;Explain error&lt;/strong&gt; to understand what went wrong, or click &lt;strong&gt;Auto-fix&lt;/strong&gt; and the AI rewrites the code, re-runs it, and repeats (up to 3 tries) until the error is gone.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The "touch grass" angle:&lt;/strong&gt; beginners can lose hours staring at a red error message. This tool shortens that time, so you can fix the bug, close the laptop, and go outside.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Who is it for:&lt;/strong&gt; students and beginners learning Python who get stuck on errors.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;🔗 Live app: &lt;a href="https://semicolonsaviour.streamlit.app/" rel="noopener noreferrer"&gt;https://semicolonsaviour.streamlit.app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;(Try the examples in the sidebar, like "Division by zero", then click &lt;strong&gt;Explain error&lt;/strong&gt; or &lt;strong&gt;Auto-fix&lt;/strong&gt;.)&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/TANISHA268814/ai-code-debugger" rel="noopener noreferrer"&gt;https://github.com/TANISHA268814/ai-code-debugger&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Open-weight models:&lt;/strong&gt; Llama 3.3 70B (served through Groq's free tier) for the online demo, and Qwen2.5-Coder running locally through &lt;strong&gt;Ollama&lt;/strong&gt; on my laptop.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Framework:&lt;/strong&gt; Python and &lt;strong&gt;Streamlit&lt;/strong&gt; for the web interface.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How it works:&lt;/strong&gt;

&lt;ol&gt;
&lt;li&gt;The app runs the pasted code in a separate process with a 30-second timeout and catches the error.&lt;/li&gt;
&lt;li&gt;It sends the code and the error to the model with a beginner-friendly prompt.&lt;/li&gt;
&lt;li&gt;For Auto-fix, it asks the model for fixed code, runs it again, and repeats until it works or reaches 3 tries.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Safety:&lt;/strong&gt; API keys are hidden from the code being run, and the app keeps them in secrets, not in the repo.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Switchable AI:&lt;/strong&gt; one small file (&lt;code&gt;llm.py&lt;/code&gt;) decides which model to use, so the same project works online with Groq or fully offline with Ollama.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;Open-weight models made this possible for a student with a normal laptop and no budget:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It runs offline and privately.&lt;/strong&gt; With Ollama, your code never leaves your computer, which matters when you're pasting homework or work code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It's free.&lt;/strong&gt; I didn't need to pay for a closed API to build and test it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It's swappable.&lt;/strong&gt; When one hosted service ran out of free credits during deployment, I switched to another provider by changing one file. A closed API would have locked me in.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Others can contribute.&lt;/strong&gt; The repo is open for Hacktoberfest, so anyone can add new languages or features.
__&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
  </channel>
</rss>
