<?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: Priyank saxena</title>
    <description>The latest articles on DEV Community by Priyank saxena (@priyank_saxena_18258e5dc5).</description>
    <link>https://dev.to/priyank_saxena_18258e5dc5</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%2F4156666%2F62e38f09-702c-45e2-8bd5-87c15e6bd60f.jpeg</url>
      <title>DEV Community: Priyank saxena</title>
      <link>https://dev.to/priyank_saxena_18258e5dc5</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/priyank_saxena_18258e5dc5"/>
    <language>en</language>
    <item>
      <title>A Local AI System Reliability Agent with Gemma 3 4B</title>
      <dc:creator>Priyank saxena</dc:creator>
      <pubDate>Sat, 03 Oct 2026 10:33:11 +0000</pubDate>
      <link>https://dev.to/priyank_saxena_18258e5dc5/a-local-ai-system-reliability-agent-with-gemma-3-4b-50aj</link>
      <guid>https://dev.to/priyank_saxena_18258e5dc5/a-local-ai-system-reliability-agent-with-gemma-3-4b-50aj</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 a local AI system reliability agent that monitors a Windows computer, stores system metrics locally, analyzes trends, and uses Gemma 3 4B to provide reliability and maintenance recommendations.&lt;/p&gt;

&lt;p&gt;The idea came from a simple problem: &lt;br&gt;
A friend of mine often noticed that their computer would become slow or unresponsive, but figuring out why usually meant opening Task Manager and trying to interpret a long list of numbers.&lt;/p&gt;

&lt;p&gt;The problem wasn't a lack of data.&lt;/p&gt;

&lt;p&gt;It was understanding the data.&lt;/p&gt;

&lt;p&gt;The Purpose&lt;/p&gt;

&lt;p&gt;I wanted to build something that could answer a simple question for my friend:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;"What's happening with my computer, and what should I check?"&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Instead of another monitoring dashboard, I decided to build a local AI System Reliability Agent.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Solution&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The agent turns raw system activity into understandable reliability insights:&lt;/p&gt;

&lt;p&gt;🖥️ Friend's Computer&lt;br&gt;
        ↓&lt;br&gt;
📊 Monitor&lt;br&gt;
CPU • RAM • Disk • Network • Cache • Events&lt;br&gt;
        ↓&lt;br&gt;
🗄️ Store&lt;br&gt;
Local SQLite History&lt;br&gt;
        ↓&lt;br&gt;
🔧 Analyze&lt;br&gt;
Reliability &amp;amp; Trend Tools&lt;br&gt;
        ↓&lt;br&gt;
🤖 Understand&lt;br&gt;
Gemma 3 4B + Ollama&lt;br&gt;
        ↓&lt;br&gt;
💡 Recommend&lt;br&gt;
Clear Reliability &amp;amp; Maintenance Suggestions&lt;/p&gt;

&lt;p&gt;So instead of only seeing:&lt;/p&gt;

&lt;p&gt;RAM: 82%&lt;/p&gt;

&lt;p&gt;my friend can get context about what the system has been experiencing and what they may want to investigate.&lt;/p&gt;

&lt;p&gt;The agent doesn't automatically change the computer. It provides the analysis and recommendations while the user stays in control.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Monitor → Store → Analyze → Recommend.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That's the idea behind the project: make system reliability information easier for a real person to understand, while keeping their data and AI processing local.&lt;/p&gt;
&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;DEMO LINK: &lt;a href="https://drive.google.com/file/d/13GKt-ttcPdSweHk6-h2mflKS0F3SyS9Y/view?usp=sharing" rel="noopener noreferrer"&gt;AI System Reliability Agent&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Dashboard&lt;/p&gt;

&lt;p&gt;The dashboard shows the current system state and keeps the monitoring interface compact enough to remain useful while the machine is being used.&lt;/p&gt;

&lt;p&gt;AI Reliability Analysis&lt;/p&gt;

&lt;p&gt;The AI produces a structured assessment containing:&lt;/p&gt;

&lt;p&gt;Overall status&lt;br&gt;
Summary&lt;br&gt;
Reliability findings&lt;br&gt;
Evidence from collected metrics&lt;br&gt;
Recommended ma&lt;/p&gt;
&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;The complete project is available on GitHub:&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/PriyankV25" rel="noopener noreferrer"&gt;
        PriyankV25
      &lt;/a&gt; / &lt;a href="https://github.com/PriyankV25/system-reliability-agent" rel="noopener noreferrer"&gt;
        system-reliability-agent
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      AI System Reliability Agent Assistance
    &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;ChallengeOne — Local System Metrics + AI Reliability Assistant #HacktoberFest2026&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;This version keeps the working v3 monitoring dashboard and adds a fully local AI reliability layer.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Architecture&lt;/h2&gt;
&lt;/div&gt;
&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;Tkinter Dashboard
      |
      +---- local SQLite (system_metrics.db)
      |
      +---- FastAPI (127.0.0.1:8000)
                 |
                 +---- reliability tools -&amp;gt; SQLite
                 |
                 +---- Ollama -&amp;gt; Gemma 3 4B (local)

MCP server (stdio) exposes the same read-only reliability tools.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;No system metrics are sent to a cloud AI service by this application. Ollama is configured for localhost.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Features retained from v3&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;CPU and per-logical-core utilization&lt;/li&gt;
&lt;li&gt;RAM utilization&lt;/li&gt;
&lt;li&gt;Disk utilization&lt;/li&gt;
&lt;li&gt;Network throughput&lt;/li&gt;
&lt;li&gt;Windows cache/temp/Prefetch/browser cache details&lt;/li&gt;
&lt;li&gt;Windows Critical/Error/Warning event counts&lt;/li&gt;
&lt;li&gt;SQLite persistence&lt;/li&gt;
&lt;li&gt;5-minute automatic collection&lt;/li&gt;
&lt;li&gt;Manual &lt;code&gt;Refresh metrics&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;5:3 responsive Tkinter dashboard&lt;/li&gt;
&lt;li&gt;Compact current-day time graph&lt;/li&gt;
&lt;li&gt;Detailed CPU core table&lt;/li&gt;
&lt;li&gt;Detailed cache path table&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;New AI features&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Local Ollama + Gemma 3 4B integration (tool-compatible: SQLite/tool calls are executed by Python and supplied as JSON context)&lt;/li&gt;
&lt;li&gt;FastAPI local service…&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/PriyankV25/system-reliability-agent" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;The repository contains the monitoring application, SQLite data layer, FastAPI service, reliability tools, MCP server and local Ollama/Gemma integration.&lt;/p&gt;

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

&lt;p&gt;The project is built with &lt;em&gt;Python, Tkinter, SQLite, FastAPI, MCP, Ollama, and Gemma 3 4B&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;The architecture is intentionally simple:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🖥️ Windows System&lt;br&gt;
       ↓&lt;br&gt;
📊 Python Monitoring&lt;br&gt;
       ↓&lt;br&gt;
🗄️ SQLite&lt;br&gt;
       ↓&lt;br&gt;
🔧 Reliability Tools&lt;br&gt;
       ↓&lt;br&gt;
⚡ FastAPI + MCP&lt;br&gt;
       ↓&lt;br&gt;
🦙 Ollama&lt;br&gt;
       ↓&lt;br&gt;
🤖 Gemma 3 4B&lt;br&gt;
       ↓&lt;br&gt;
💡 Reliability Recommendations&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The application collects CPU, RAM, disk, network, cache, and Windows event data and stores it locally in SQLite. Historical data gives the agent context instead of relying on a single snapshot.&lt;/p&gt;

&lt;p&gt;The reliability layer provides read-only tools for retrieving metrics, history, cache information, events, and trends.&lt;/p&gt;

&lt;p&gt;Gemma 3 4B runs locally through Ollama and receives the relevant reliability data as structured context. The AI then turns that information into a human-readable reliability assessment and maintenance suggestions.&lt;/p&gt;

&lt;p&gt;I also exposed the reliability capabilities through a local MCP server, keeping the tools separate from the model.&lt;/p&gt;

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

&lt;p&gt;For this project, open innovation made it possible to build the reliability agent around the user's machine instead of around a cloud AI service.&lt;/p&gt;

&lt;p&gt;CPU, memory, disk, cache and system-event data can reveal information about how a computer is being used.&lt;/p&gt;

&lt;p&gt;With local inference, the application doesn't need to send that monitoring history to a third-party AI API just to generate recommendations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🧩 Control over the AI stack&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The AI isn't locked into a single hosted API.&lt;/p&gt;

&lt;p&gt;I can change the model, prompts, reliability tools, or inference layer without redesigning the monitoring system.&lt;/p&gt;

&lt;p&gt;The project separates data collection → tools → AI reasoning, which makes the system easier to experiment with and extend.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🛠️ Open tools made the architecture possible&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Using Python, SQLite, FastAPI, MCP, Ollama and Gemma gave me control over each layer.&lt;/p&gt;

&lt;p&gt;For example, when Gemma 3 4B through Ollama didn't support the native tool-calling approach I initially tried, I didn't need to redesign the entire application around a closed API.&lt;/p&gt;

&lt;p&gt;I changed the architecture so Python executes the read-only reliability tools and passes their structured results to Gemma:&lt;/p&gt;

&lt;p&gt;SQLite&lt;br&gt;
   ↓&lt;br&gt;
Python Reliability Tools&lt;br&gt;
   ↓&lt;br&gt;
Structured Context&lt;br&gt;
   ↓&lt;br&gt;
Gemma 3 4B&lt;br&gt;
   ↓&lt;br&gt;
Recommendation&lt;/p&gt;

&lt;p&gt;That flexibility is what open innovation meant for this project:&lt;/p&gt;

&lt;p&gt;I could adapt the system to the model instead of adapting the entire project to a closed AI service.&lt;/p&gt;

&lt;p&gt;And because inference runs locally, there is no per-request cloud AI API cost. The trade-off is that the user's computer provides the hardware and electricity needed to run the model.&lt;/p&gt;

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