<?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: Harsh Mangukia</title>
    <description>The latest articles on DEV Community by Harsh Mangukia (@harshmangukia123).</description>
    <link>https://dev.to/harshmangukia123</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F99mvlsfu5tfj9m7ku25d.png</url>
      <title>DEV Community: Harsh Mangukia</title>
      <link>https://dev.to/harshmangukia123</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/harshmangukia123"/>
    <language>en</language>
    <item>
      <title>Autonomous-Repository-Support-Agent</title>
      <dc:creator>Harsh Mangukia</dc:creator>
      <pubDate>Mon, 05 Oct 2026 00:36:09 +0000</pubDate>
      <link>https://dev.to/harshmangukia123/autonomous-repository-support-agent-2cd</link>
      <guid>https://dev.to/harshmangukia123/autonomous-repository-support-agent-2cd</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/hacktoberfest-weekend-2026-10-01"&gt;Hacktoberfest Weekend Challenge: Build for a Friend&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;I built an &lt;strong&gt;Autonomous GitHub Issue Debugger Agent&lt;/strong&gt; for a close friend of mine who maintains an open-source library and constantly gets overwhelmed sorting through bug reports. &lt;/p&gt;

&lt;p&gt;Instead of manually digging through repositories or guessing error traces, my friend can trigger an autonomous agent via &lt;strong&gt;Temporal workflows&lt;/strong&gt;. The agent uses &lt;strong&gt;Local RAG (MongoDB Atlas + Ollama)&lt;/strong&gt; to scan the local codebase context, queries live data via &lt;strong&gt;SerpApi&lt;/strong&gt; when external package updates break things, reasons through multi-step logic using &lt;strong&gt;Qwen via OpenRouter&lt;/strong&gt;, and writes out a precise TypeScript code fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&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/harsh-mangukia44" rel="noopener noreferrer"&gt;
        harsh-mangukia44
      &lt;/a&gt; / &lt;a href="https://github.com/harsh-mangukia44/Autonomous-Repository-Support-Agent" rel="noopener noreferrer"&gt;
        Autonomous-Repository-Support-Agent
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      A TypeScript prototype that combines a Mastra AI agent, Temporal workflows, MongoDB Atlas Vector Search, Ollama embeddings, SerpApi web search, and Sentry monitoring. The agent is designed to investigate a technical issue using repository context and web search, then return a suggested fix.
    &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;Autonomous Repository Support Agent&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;A TypeScript prototype that combines a Mastra AI agent, Temporal workflows, MongoDB Atlas Vector Search, Ollama embeddings, SerpApi web search, and Sentry monitoring. The agent is designed to investigate a technical issue using repository context and web search, then return a suggested fix.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;How it works&lt;/h2&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;ingest.ts&lt;/code&gt; reads TypeScript files from &lt;code&gt;src/&lt;/code&gt;, splits them into overlapping chunks, creates embeddings with the local Ollama &lt;code&gt;nomic-embed-text&lt;/code&gt; model, and stores the chunks in MongoDB.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;techSupportAgent&lt;/code&gt; in &lt;code&gt;src/mastra/index.ts&lt;/code&gt; can use
&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Search Codebase&lt;/strong&gt; to find relevant chunks in MongoDB Atlas Vector Search.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Web Search&lt;/strong&gt; to retrieve current technical references through SerpApi.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;src/workflows/workflow.ts&lt;/code&gt; defines a Temporal workflow that calls the agent activity. Temporal retries activity failures up to five times.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;src/worker.ts&lt;/code&gt; starts the Temporal worker on the &lt;code&gt;agent-tasks&lt;/code&gt; task queue and reports uncaught worker failures to Sentry.&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Requirements&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Node.js with npm&lt;/li&gt;
&lt;li&gt;A running Temporal server, reachable at &lt;code&gt;localhost:7233&lt;/code&gt; unless configured…&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/harsh-mangukia44/Autonomous-Repository-Support-Agent" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


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

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Workflow Orchestration: Used Temporal to guarantee durable, reliable agent state transitions and task queues (worker.ts and trigger.ts).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Agentic Framework: Built on Mastra to manage tools, agent instructions, and execution steps.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Local RAG: Embedded repository files into MongoDB Atlas using RecursiveCharacterTextSplitter and local Ollama embeddings (nomic-embed-text).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;External Tooling: Integrated SerpApi for real-time web debugging when issues involve outdated third-party library specs.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Observability: Tracked performance and execution spans using Sentry.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;Building this with open-source and open-weight AI was essential. Relying on closed, proprietary cloud APIs exposes developer repositories to strict key-validation blocks, rate limits, and opaque error structures.By keeping the embedding pipeline local and the agent orchestration open my friend maintains total privacy over their codebase context, can swap models instantly without rewriting code, and runs the entire diagnostic engine with zero licensing costs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;p&gt;Best Use of Gemma / Open-Weight Models&lt;br&gt;
Best Use of Temporal&lt;br&gt;
Best Use of MongoDB&lt;br&gt;
Best Use of Sentry&lt;/p&gt;

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