<?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: AI Unfiltered</title>
    <description>The latest articles on DEV Community by AI Unfiltered (@aiunfiltered).</description>
    <link>https://dev.to/aiunfiltered</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%2F3391563%2Fb6f7765f-0f23-4172-a3b3-52798372acab.jpeg</url>
      <title>DEV Community: AI Unfiltered</title>
      <link>https://dev.to/aiunfiltered</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aiunfiltered"/>
    <language>en</language>
    <item>
      <title>How I Built NeuroShell — An AI-Powered Terminal That Understands You</title>
      <dc:creator>AI Unfiltered</dc:creator>
      <pubDate>Mon, 28 Jul 2025 17:25:08 +0000</pubDate>
      <link>https://dev.to/aiunfiltered/how-i-built-neuroshell-an-ai-powered-terminal-that-understands-you-537f</link>
      <guid>https://dev.to/aiunfiltered/how-i-built-neuroshell-an-ai-powered-terminal-that-understands-you-537f</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Originally published on Medium — &lt;a href="https://medium.com/@aiunfiltered/how-i-built-neuroshell-an-ai-powered-terminal-that-understands-you-26a7beb9b721" rel="noopener noreferrer"&gt;read it here&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  How I Built NeuroShell — An AI-Powered Terminal That Understands You
&lt;/h2&gt;

&lt;p&gt;In my Operating Systems class, I watched students repeatedly copy-paste commands they didn’t understand.&lt;br&gt;&lt;br&gt;
Someone would ask, “Zain, what does this even do?” and I’d walk them through it.&lt;br&gt;&lt;br&gt;
But I knew next semester, I wouldn’t be there to help.&lt;/p&gt;

&lt;p&gt;That’s when I started building &lt;strong&gt;NeuroShell&lt;/strong&gt; — a natural language terminal that not only runs commands, but also &lt;strong&gt;explains them&lt;/strong&gt;. A terminal built for humans, not just developers.&lt;/p&gt;




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

&lt;p&gt;I wasn’t trying to compete with industry-grade tools like &lt;strong&gt;Warp&lt;/strong&gt; or &lt;strong&gt;Devbox&lt;/strong&gt;.&lt;br&gt;&lt;br&gt;
My aim was simple — build a smart terminal for my &lt;strong&gt;university&lt;/strong&gt;, where students could learn, explore, and understand what’s happening under the hood.&lt;br&gt;&lt;br&gt;
I wanted to solve a &lt;strong&gt;local problem&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Stack Behind NeuroShell
&lt;/h2&gt;

&lt;p&gt;NeuroShell is a &lt;strong&gt;cross-platform terminal&lt;/strong&gt; built using &lt;strong&gt;React.js&lt;/strong&gt; and &lt;strong&gt;Electron&lt;/strong&gt; for the frontend.&lt;br&gt;&lt;br&gt;
It feels native and lightweight, but still expressive enough to scale.&lt;br&gt;&lt;br&gt;
The backend is powered by &lt;strong&gt;FastAPI&lt;/strong&gt;, serving both command execution and AI functionality.&lt;/p&gt;

&lt;h3&gt;
  
  
  Here’s how it all came together:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend&lt;/strong&gt;: React.js + Tailwind CSS (bundled with Electron)
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend&lt;/strong&gt;: FastAPI
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI &amp;amp; NLP&lt;/strong&gt;: LangChain with NVIDIA NIM (LLaMA 3/4 models — free for 1 year)
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Embeddings&lt;/strong&gt;: HuggingFace (couldn’t afford OpenAI embeddings)
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vector DB&lt;/strong&gt;: ChromaDB
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Memory &amp;amp; Context&lt;/strong&gt;: &lt;code&gt;ConversationBufferMemory&lt;/code&gt; from LangChain
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prompt Structuring&lt;/strong&gt;: &lt;code&gt;ChatPromptTemplate&lt;/code&gt; &amp;amp; structured tools
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Email Agent&lt;/strong&gt;: &lt;code&gt;smtplib&lt;/code&gt; + &lt;code&gt;MIMEMultipart&lt;/code&gt; for sending documents via terminal
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Making the Terminal Smart
&lt;/h2&gt;

&lt;p&gt;I integrated &lt;strong&gt;LangChain’s multi-agent system&lt;/strong&gt; to handle not just command generation, but &lt;strong&gt;real-time explanations&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;When you run a command, you can click &lt;strong&gt;"Explain"&lt;/strong&gt; — and NeuroShell shows a breakdown of what that command does, using natural language prompts.&lt;/p&gt;

&lt;p&gt;I also used &lt;strong&gt;structured chat agents&lt;/strong&gt; and &lt;strong&gt;retrieval chains&lt;/strong&gt; to build a chat history system.&lt;br&gt;&lt;br&gt;
For example, you can ask:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;“What npm command did I run to install Express last Friday?”&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The system uses &lt;strong&gt;vector similarity&lt;/strong&gt; (via ChromaDB + HuggingFaceEmbeddings) to return the most relevant past actions.&lt;/p&gt;




&lt;h2&gt;
  
  
  Sky Mode: Smarter Path Handling
&lt;/h2&gt;

&lt;p&gt;One challenge was users having to repeatedly mention full file paths, even when they were already inside a specific directory.&lt;/p&gt;

&lt;p&gt;With &lt;strong&gt;Sky Mode&lt;/strong&gt;, that’s no longer necessary.&lt;/p&gt;

&lt;p&gt;Once you're inside a location — say, &lt;strong&gt;Disk D&lt;/strong&gt; — you can simply say:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;“Show me the contents of the 10Pearls folder,”&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And NeuroShell understands that you mean the folder inside Disk D.&lt;/p&gt;

&lt;p&gt;Sky Mode uses &lt;strong&gt;conversational memory&lt;/strong&gt; to make command execution feel more natural — like talking to an assistant that actually &lt;strong&gt;pays attention&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Sending Emails from the Terminal
&lt;/h2&gt;

&lt;p&gt;Another feature I’m proud of is the &lt;strong&gt;Email Agent&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Students often write reports or notes in documents. NeuroShell lets you &lt;strong&gt;send that content as an email&lt;/strong&gt;, right from the terminal.&lt;/p&gt;

&lt;p&gt;Just specify the recipient address, attach the file, and it’s sent — no mail client needed.&lt;/p&gt;

&lt;p&gt;Built with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;smtplib&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;MIMEText&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;MIMEMultipart&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This feature keeps workflows &lt;strong&gt;simple&lt;/strong&gt; and &lt;strong&gt;efficient&lt;/strong&gt;, especially for academic environments.&lt;/p&gt;




&lt;h2&gt;
  
  
  Cost-Efficient AI Stack
&lt;/h2&gt;

&lt;p&gt;I couldn’t afford OpenAI’s models or embeddings — so I didn’t use them.&lt;/p&gt;

&lt;p&gt;Instead, I built NeuroShell using:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;HuggingFace&lt;/strong&gt; for free embedding generation
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;NVIDIA NIM&lt;/strong&gt; (for LLaMA-based models — fast, accurate, and free for a year)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This kept the system &lt;strong&gt;cost efficient&lt;/strong&gt; and accessible to me as a student.&lt;/p&gt;




&lt;h2&gt;
  
  
  Design Choices that Matter
&lt;/h2&gt;

&lt;p&gt;NeuroShell’s UI is &lt;strong&gt;minimalist&lt;/strong&gt;, inspired by &lt;strong&gt;macOS apps&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;I’ve always loved the red, yellow, green buttons on top — so I added them in the Electron app, even for Windows.&lt;/p&gt;

&lt;p&gt;It’s a small touch, but one that reflects &lt;strong&gt;attention to detail&lt;/strong&gt; and familiarity.&lt;/p&gt;




&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;NeuroShell isn’t meant to replace industry-grade tooling.&lt;/p&gt;

&lt;p&gt;It’s meant to &lt;strong&gt;educate&lt;/strong&gt;, &lt;strong&gt;assist&lt;/strong&gt;, and &lt;strong&gt;empower students&lt;/strong&gt; who are just beginning to explore Linux, terminals, and development workflows.&lt;/p&gt;

&lt;p&gt;It’s not about showing off — it’s about &lt;strong&gt;solving a real problem with what I had access to&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This project pushed me to explore:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Contextual memory&lt;/li&gt;
&lt;li&gt;Prompt engineering&lt;/li&gt;
&lt;li&gt;RAG pipelines&lt;/li&gt;
&lt;li&gt;Vector databases like ChromaDB
All while staying within a &lt;strong&gt;student’s budget&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Code &amp;amp; Demo
&lt;/h2&gt;

&lt;p&gt;You can check out the full code here:&lt;br&gt;&lt;br&gt;
&lt;a href="https://github.com/Zain-Zameer/neuroshell" rel="noopener noreferrer"&gt;https://github.com/Zain-Zameer/neuroshell&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Thanks for reading 🙌&lt;br&gt;&lt;br&gt;
If you’re building something similar or exploring AI-powered terminals, feel free to connect or reach out.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>ai</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
