<?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: Nishal Poojary</title>
    <description>The latest articles on DEV Community by Nishal Poojary (@nishal_poojary_235).</description>
    <link>https://dev.to/nishal_poojary_235</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%2F4038304%2Fa3f2a689-e363-47fc-9921-74d266e75950.png</url>
      <title>DEV Community: Nishal Poojary</title>
      <link>https://dev.to/nishal_poojary_235</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nishal_poojary_235"/>
    <language>en</language>
    <item>
      <title>Building Dev-Code: An Agentic AI Coding Assistant With RAG Memory and VS Code Integration</title>
      <dc:creator>Nishal Poojary</dc:creator>
      <pubDate>Mon, 20 Jul 2026 14:05:28 +0000</pubDate>
      <link>https://dev.to/nishal_poojary_235/building-dev-code-an-agentic-ai-coding-assistant-with-rag-memory-and-vs-code-integration-1hld</link>
      <guid>https://dev.to/nishal_poojary_235/building-dev-code-an-agentic-ai-coding-assistant-with-rag-memory-and-vs-code-integration-1hld</guid>
      <description>&lt;p&gt;I recently completed &lt;strong&gt;Dev-Code&lt;/strong&gt;, an AI coding assistant project built around Agentic AI, RAG-style memory, and developer-tool integration.&lt;/p&gt;

&lt;p&gt;GitHub repo: &lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/Ailover123" rel="noopener noreferrer"&gt;
        Ailover123
      &lt;/a&gt; / &lt;a href="https://github.com/Ailover123/Dev-Code" rel="noopener noreferrer"&gt;
        Dev-Code
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Dev-Code&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;Dev-Code is an A2A ReAct debugging agent for Python and JavaScript code. It runs broken code in a local sandbox, analyzes the error, searches memory and web context, generates a fix with Gemini when needed, verifies the fix, and logs the full trace for review.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;What It Does&lt;/h2&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Runs Python and JavaScript code through a guarded subprocess sandbox.&lt;/li&gt;
&lt;li&gt;Detects supported languages through a registry and can learn new one-liner runners from web search.&lt;/li&gt;
&lt;li&gt;Chunks large files with tree-sitter (306 supported languages) so only the relevant function/class is sent to the Fixer, then splices the fix back into the full file.&lt;/li&gt;
&lt;li&gt;Shows a visible ReAct-style trace with specialist agents.&lt;/li&gt;
&lt;li&gt;Uses an A2A flow: &lt;code&gt;OrchestratorAgent&lt;/code&gt;, &lt;code&gt;AnalyzerAgent&lt;/code&gt;, &lt;code&gt;FixerAgent&lt;/code&gt;, and &lt;code&gt;VerifierAgent&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Stores verified fixes in Supabase-backed vector memory, using Gemini embeddings with asymmetric retrieval (separate document/query embedding modes) and a cosine-similarity threshold to reject superficially-similar but unrelated past fixes.&lt;/li&gt;
&lt;li&gt;…&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/Ailover123/Dev-Code" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Dev-Code runs broken Python or JavaScript code, analyzes the error, searches memory for previous verified fixes, generates a new fix when needed, verifies the result, and logs the full trace.&lt;/p&gt;

&lt;p&gt;The goal was not just to build another AI wrapper around a model. The goal was to explore what it takes to make an AI assistant behave more like a real developer tool.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Core Idea
&lt;/h2&gt;

&lt;p&gt;Many AI coding demos work like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Code -&amp;gt; LLM -&amp;gt; Suggested fix
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Dev-Code uses a more structured workflow:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Broken code
  -&amp;gt; run the code
  -&amp;gt; analyze the error
  -&amp;gt; search fix memory
  -&amp;gt; verify remembered fixes
  -&amp;gt; generate a fix if memory fails
  -&amp;gt; verify the generated fix
  -&amp;gt; save successful fixes for future use
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That flow matters because confident text is not the same thing as a validated fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Agentic AI Architecture
&lt;/h2&gt;

&lt;p&gt;Dev-Code uses a multi-agent A2A ReAct-style pipeline:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;VerifierAgent&lt;/code&gt; runs the code and checks whether the issue is fixed.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;AnalyzerAgent&lt;/code&gt; reads the runtime error and extracts useful debugging context.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;OrchestratorAgent&lt;/code&gt; coordinates memory search, model usage, verification, and logging.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;FixerAgent&lt;/code&gt; calls Gemini when a remembered fix is not enough.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Splitting the system this way made it easier to reason about the workflow. Each agent has a focused responsibility instead of one large prompt trying to do everything.&lt;/p&gt;

&lt;h2&gt;
  
  
  RAG-Style Fix Memory
&lt;/h2&gt;

&lt;p&gt;One of the most useful parts of the project is the fix memory.&lt;/p&gt;

&lt;p&gt;When Dev-Code successfully verifies a fix, it stores that fix in Supabase-backed vector memory using Gemini embeddings. On future runs, it searches memory before calling the model again.&lt;/p&gt;

&lt;p&gt;The idea is simple:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Failure -&amp;gt; verified fix -&amp;gt; memory -&amp;gt; future retrieval -&amp;gt; faster debugging
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This helped me understand that RAG is not just about retrieving documents. For coding tools, retrieval needs to be tied to validation.&lt;/p&gt;

&lt;p&gt;A remembered fix should not be trusted only because it looks similar. It should be tested.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Real Memory Similarity Bug
&lt;/h2&gt;

&lt;p&gt;One important bug appeared in the memory retrieval layer.&lt;/p&gt;

&lt;p&gt;The system needed to avoid two problems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;missing previous fixes that should have matched,&lt;/li&gt;
&lt;li&gt;accepting superficially similar but unrelated fixes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The fix involved improving the retrieval logic around asymmetric embedding usage and cosine-similarity thresholding. Dev-Code now uses separate document/query embedding modes and rejects weak matches below the configured threshold.&lt;/p&gt;

&lt;p&gt;The lesson was clear: retrieval quality depends on embedding strategy, similarity scoring, thresholds, and verification. RAG systems can fail quietly if these pieces are not handled carefully.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code Chunking for Larger Files
&lt;/h2&gt;

&lt;p&gt;Large source files create another problem. Sending an entire file to a model can be noisy and inefficient.&lt;/p&gt;

&lt;p&gt;Dev-Code uses tree-sitter-based chunking to identify relevant functions or classes, send the useful section to the Fixer, and splice the corrected chunk back into the full file.&lt;/p&gt;

&lt;p&gt;This makes the assistant more practical because it can work with larger code while keeping the model context focused.&lt;/p&gt;

&lt;h2&gt;
  
  
  VS Code and MCP Integration
&lt;/h2&gt;

&lt;p&gt;Dev-Code includes a VS Code extension and a local MCP server.&lt;/p&gt;

&lt;p&gt;The extension lets a user select broken code in the editor, run the debugging workflow, and inspect the full agent trace in a side panel.&lt;/p&gt;

&lt;p&gt;The MCP server exposes tools such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;run_python_code&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;search_python_error&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;search_fix_memory&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;debug_code&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This was one of the most important parts of the project because developer tools are most useful when they fit into the developer's existing workflow.&lt;/p&gt;

&lt;h2&gt;
  
  
  Production-Level Lessons
&lt;/h2&gt;

&lt;p&gt;The most valuable learning did not come from the happy path. It came from debugging real issues.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Verification Is Essential
&lt;/h3&gt;

&lt;p&gt;An AI-generated answer is not enough. Dev-Code verifies fixes by running the code again.&lt;/p&gt;

&lt;p&gt;That turns the assistant from "the model suggests this" into "the system has evidence this works."&lt;/p&gt;

&lt;h3&gt;
  
  
  2. User Environments Are Complicated
&lt;/h3&gt;

&lt;p&gt;One real issue involved Python runner resolution. The VS Code extension needed to use the correct Python interpreter instead of relying on a fragile PATH lookup.&lt;/p&gt;

&lt;p&gt;This is the kind of issue that appears when a project moves beyond a controlled demo and starts behaving like a local developer tool.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Documentation Can Be the Right Decision
&lt;/h3&gt;

&lt;p&gt;A related JavaScript PATH risk was documented as a known limitation instead of being rushed into an unproven fix.&lt;/p&gt;

&lt;p&gt;That was a useful production-level lesson. Not every theoretical risk should immediately become code. Sometimes the better decision is to validate, document, and prioritize based on evidence.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Fallbacks Matter
&lt;/h3&gt;

&lt;p&gt;Dev-Code logs runs to MySQL when available, but falls back to local JSONL logs if the database is unavailable.&lt;/p&gt;

&lt;p&gt;That fallback keeps the project usable even when optional infrastructure is missing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech Stack
&lt;/h2&gt;

&lt;p&gt;The project uses:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Python&lt;/li&gt;
&lt;li&gt;FastAPI&lt;/li&gt;
&lt;li&gt;Streamlit&lt;/li&gt;
&lt;li&gt;Gemini&lt;/li&gt;
&lt;li&gt;Supabase vector memory&lt;/li&gt;
&lt;li&gt;MySQL&lt;/li&gt;
&lt;li&gt;JSONL fallback logging&lt;/li&gt;
&lt;li&gt;tree-sitter&lt;/li&gt;
&lt;li&gt;MCP&lt;/li&gt;
&lt;li&gt;TypeScript&lt;/li&gt;
&lt;li&gt;VS Code extension APIs&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;This project taught me that building AI developer tools is not only about prompting.&lt;/p&gt;

&lt;p&gt;The hard parts are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;designing the agent workflow,&lt;/li&gt;
&lt;li&gt;retrieving the right context,&lt;/li&gt;
&lt;li&gt;validating model output,&lt;/li&gt;
&lt;li&gt;handling local execution,&lt;/li&gt;
&lt;li&gt;preserving useful traces,&lt;/li&gt;
&lt;li&gt;supporting imperfect user environments,&lt;/li&gt;
&lt;li&gt;documenting known limitations honestly.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Dev-Code is complete as a project, but the bigger lesson is this:&lt;/p&gt;

&lt;p&gt;AI coding assistants become much more useful when they are grounded in memory, verification, integration, and production-level engineering judgment.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>rag</category>
      <category>python</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
