<?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>Forem: Anupam hegde </title>
    <description>The latest articles on Forem by Anupam hegde  (@anup15).</description>
    <link>https://forem.com/anup15</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3728622%2F43bd7fe2-a013-436d-81c4-fdd13b469a43.jpg</url>
      <title>Forem: Anupam hegde </title>
      <link>https://forem.com/anup15</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/anup15"/>
    <language>en</language>
    <item>
      <title>AI-Hallucination-Detector-for-Code</title>
      <dc:creator>Anupam hegde </dc:creator>
      <pubDate>Sun, 08 Feb 2026 16:11:24 +0000</pubDate>
      <link>https://forem.com/anup15/ai-hallucination-detector-for-code-2od9</link>
      <guid>https://forem.com/anup15/ai-hallucination-detector-for-code-2od9</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/github-2026-01-21"&gt;GitHub Copilot CLI Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;I built &lt;strong&gt;AI Hallucination Detector for Code&lt;/strong&gt;, a command-line tool that detects hallucinations in AI-generated Python code using &lt;strong&gt;static analysis&lt;/strong&gt;.  &lt;/p&gt;

&lt;p&gt;The tool identifies:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hallucinated or fake APIs&lt;/strong&gt; (non-existent imports)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Logical inconsistencies&lt;/strong&gt; such as misleading time-complexity claims&lt;/li&gt;
&lt;li&gt;Produces a clear &lt;strong&gt;hallucination risk score&lt;/strong&gt; to help developers judge reliability&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This project matters to me because AI-assisted coding is becoming mainstream, but correctness and trust remain critical. Instead of generating more code, this project focuses on &lt;strong&gt;verifying AI-generated code responsibly&lt;/strong&gt;.&lt;/p&gt;




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

&lt;p&gt;🔗 &lt;strong&gt;GitHub Repository:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://github.com/anupam-hegde/AI-Hallucination-Detector-for-Code" rel="noopener noreferrer"&gt;https://github.com/anupam-hegde/AI-Hallucination-Detector-for-Code&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🎥 &lt;strong&gt;Demo GIF / Video:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
(Attached in the repository README)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Demo Flow:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A Python file with a fake import and nested loops is analyzed&lt;/li&gt;
&lt;li&gt;The CLI detects:

&lt;ul&gt;
&lt;li&gt;API hallucinations&lt;/li&gt;
&lt;li&gt;Logic hallucinations&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;risk score&lt;/strong&gt; is generated with a clean, readable CLI output&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The demo shows the tool working end-to-end using a single CLI command.&lt;/p&gt;




&lt;h2&gt;
  
  
  My Experience with GitHub Copilot CLI
&lt;/h2&gt;

&lt;p&gt;GitHub Copilot CLI played a key role as a &lt;strong&gt;development and reasoning assistant&lt;/strong&gt; throughout this project.&lt;/p&gt;

&lt;p&gt;I used Copilot CLI to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Understand and implement &lt;strong&gt;AST-based static analysis&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Design safe logic for validating Python imports without executing code&lt;/li&gt;
&lt;li&gt;Debug CLI architecture issues related to Typer&lt;/li&gt;
&lt;li&gt;Reason about algorithmic complexity and scoring strategies&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Copilot helped me move faster and think more clearly, but it was never treated as a source of truth.&lt;br&gt;&lt;br&gt;
All suggestions were &lt;strong&gt;manually reviewed and validated&lt;/strong&gt; using deterministic static analysis — which directly aligns with the goal of this project.&lt;/p&gt;

&lt;p&gt;This experience reinforced how Copilot CLI can be a powerful productivity tool when used &lt;strong&gt;responsibly and thoughtfully&lt;/strong&gt;.&lt;/p&gt;




</description>
      <category>devchallenge</category>
      <category>githubchallenge</category>
      <category>cli</category>
      <category>githubcopilot</category>
    </item>
  </channel>
</rss>
