<?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: Bishnu Prasad Sahu</title>
    <description>The latest articles on DEV Community by Bishnu Prasad Sahu (@mebishnusahu0595).</description>
    <link>https://dev.to/mebishnusahu0595</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%2F3801540%2F606c51f6-eba2-4c9f-8766-1ebbb07f7399.png</url>
      <title>DEV Community: Bishnu Prasad Sahu</title>
      <link>https://dev.to/mebishnusahu0595</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mebishnusahu0595"/>
    <language>en</language>
    <item>
      <title>Building a Privacy-First Agentic OS: Announcing SamarthyaBot v2.3.0 🚀</title>
      <dc:creator>Bishnu Prasad Sahu</dc:creator>
      <pubDate>Mon, 01 Jun 2026 07:02:04 +0000</pubDate>
      <link>https://dev.to/mebishnusahu0595/building-a-privacy-first-agentic-os-announcing-samarthyabot-v230-ogm</link>
      <guid>https://dev.to/mebishnusahu0595/building-a-privacy-first-agentic-os-announcing-samarthyabot-v230-ogm</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnfzdjw1oxeugljkyqer6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnfzdjw1oxeugljkyqer6.png" alt=" " width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Managing files, running automation tasks, and orchestrating terminal commands with local LLMs can be challenging, especially when running across multiple operating systems. &lt;/p&gt;

&lt;p&gt;Today, I am releasing SamarthyaBot v2.3.0 to npm and GitHub. This release transforms SamarthyaBot from a Linux-centric utility into a cross-platform local Agentic AI Operating System.&lt;/p&gt;

&lt;p&gt;Here is a technical walkthrough of how we resolved cross-platform challenges, sandboxed execution, and added native capabilities.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Achieving OS Portability (Linux, macOS, Windows)
&lt;/h2&gt;

&lt;p&gt;Previously, SamarthyaBot relied on Unix-style paths, shell utilities, and a pre-compiled Go worker binary specifically built for Linux. &lt;/p&gt;

&lt;p&gt;To achieve true cross-platform compatibility, we introduced a centralized Platform Service (backend/services/system/platform.js):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Dynamic Shell Discovery: Resolves execution contexts between Windows (cmd.exe or powershell.exe) and Unix platforms (/bin/sh or /bin/bash).&lt;/li&gt;
&lt;li&gt;Process Fallback: If the Go binary is not compiled for the host OS, the runtime falls back to a native Node executor (workerClient.js). This ensures streaming executors run reliably without crashes.&lt;/li&gt;
&lt;li&gt;Context Injected Prompts: The host OS type is supplied directly to the LLM system prompt. The LLM adjusts its code generation to match the OS constraints (e.g., using dir on Windows and ls on Unix).&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  2. Hardening the Sandbox &amp;amp; Preventing Command Injection
&lt;/h2&gt;

&lt;p&gt;Allowing an AI agent to run shell commands and read/write files presents significant security challenges. In v2.3.0, we introduced multi-layered boundaries:&lt;/p&gt;

&lt;h3&gt;
  
  
  A. Spawning over Shell Interpretation
&lt;/h3&gt;

&lt;p&gt;We removed raw shell string execution from utility tools such as open_path. Instead of running:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Vulnerable to target = "file.txt; rm -rf /"&lt;/span&gt;
&lt;span class="nf"&gt;exec&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`open "&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;target&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;"`&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We now spawn processes with clean argument arrays and reject shell metacharacters:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Secure approach&lt;/span&gt;
&lt;span class="nf"&gt;spawn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;opener&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;target&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;shell&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  B. Segment Validation for Chained Commands
&lt;/h3&gt;

&lt;p&gt;Users or models might try chaining commands using &amp;amp;&amp;amp;, ;, |, or \r. The command validation engine now splits inputs by these delimiters and inspects each segment against a blacklist (blocking unauthorized sudo, fork-bombs, and destructive commands).&lt;/p&gt;

&lt;h3&gt;
  
  
  C. Workspace-Scoped Sandbox
&lt;/h3&gt;

&lt;p&gt;All file system tools are constrained to the current project workspace by default. Boundary checks ensure the agent cannot use directory traversal (../../) or absolute path patterns to escape the designated workspace.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Expanding the Agent Skillset (34 Skills)
&lt;/h2&gt;

&lt;p&gt;We added 10 new functional tools to give the agent more capabilities out of the box:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Utilities: password_generate, qr_generate, url_shorten, ip_geolocate, timezone_now.&lt;/li&gt;
&lt;li&gt;Automation: clipboard_copy, translate_text (with dedicated Hindi capabilities), open_path, and http_request (with SSRF guard blocking standard and local schemes like file://).&lt;/li&gt;
&lt;li&gt;Security &amp;amp; Math: hash_text, base64_tool, currency_convert, crypto_price.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  4. Zero-Latency Slash Commands
&lt;/h2&gt;

&lt;p&gt;To keep the agent responsive, slash commands such as /help, /status, /tools, and /memory are processed instantly at the controller level without calling the LLM. This cuts down token usage and latency to zero for routine status checks across Web, Telegram, and Discord channels.&lt;/p&gt;




&lt;h2&gt;
  
  
  5. UI/UX Refresh
&lt;/h2&gt;

&lt;p&gt;The web dashboard is updated with modern design aesthetics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Tricolor aurora animated background gradient.&lt;/li&gt;
&lt;li&gt;Subtle grid-pattern background.&lt;/li&gt;
&lt;li&gt;Glassmorphism panels with top-border highlights.&lt;/li&gt;
&lt;li&gt;Dynamic hover actions, sheen sweep buttons, and responsive scale transitions.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;

&lt;p&gt;You can self-host SamarthyaBot locally with your choice of LLMs (Gemini, Claude, GPT, Ollama, DeepSeek, or Qwen).&lt;/p&gt;

&lt;h3&gt;
  
  
  Quick Install
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; samarthya-bot
samarthya gateway
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We invite you to explore the source code, open issues, or contribute:&lt;br&gt;
⭐ GitHub: &lt;a href="https://github.com/mebishnusahu0595/SamarthyaBot" rel="noopener noreferrer"&gt;https://github.com/mebishnusahu0595/SamarthyaBot&lt;/a&gt;&lt;br&gt;
📦 npm Package: &lt;a href="https://www.npmjs.com/package/samarthya-bot" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/samarthya-bot&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let me know what automation workflows you build with it.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
      <category>agentaichallenge</category>
    </item>
    <item>
      <title>Building an Indian Privacy-First Autonomous AI CLI Agent with Background Automation (SamarthyaBot)</title>
      <dc:creator>Bishnu Prasad Sahu</dc:creator>
      <pubDate>Mon, 02 Mar 2026 11:19:20 +0000</pubDate>
      <link>https://dev.to/mebishnusahu0595/building-an-indian-privacy-first-autonomous-ai-cli-agent-with-background-automation-samarthyabot-2l78</link>
      <guid>https://dev.to/mebishnusahu0595/building-an-indian-privacy-first-autonomous-ai-cli-agent-with-background-automation-samarthyabot-2l78</guid>
      <description>&lt;p&gt;When I started building SamarthyaBot, I wasn’t interested in making another website. Websites are easy. What fascinated me was something harder — building a real autonomous AI system that can act, not just respond.&lt;/p&gt;

&lt;p&gt;SamarthyaBot is a privacy-first, local AI CLI agent designed to execute real OS-level actions with background automation, encrypted memory, and dynamic plugins.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This isn’t a chatbot wrapper.&lt;br&gt;
It’s an AI operator.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What Makes It Different?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Most AI tools:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Run in the cloud&lt;/li&gt;
&lt;li&gt;Only generate text&lt;/li&gt;
&lt;li&gt;Have limited real-world execution&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;SamarthyaBot can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Execute terminal commands (with permission control)&lt;/li&gt;
&lt;li&gt;Read/write local files&lt;/li&gt;
&lt;li&gt;Schedule background tasks (cron-style AI engine)&lt;/li&gt;
&lt;li&gt;Send emails&lt;/li&gt;
&lt;li&gt;Generate UPI deep-links&lt;/li&gt;
&lt;li&gt;Take system screenshots&lt;/li&gt;
&lt;li&gt;Run Telegram-controlled automation remotely&lt;/li&gt;
&lt;li&gt;Load external plugins dynamically&lt;/li&gt;
&lt;li&gt;Encrypt sensitive memory using AES-256&lt;/li&gt;
&lt;li&gt;Switch between multiple LLM providers (Gemini, Claude, OpenAI, Groq, Ollama)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It runs even when I’m not actively using it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🔄 Background Autonomous Engine&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can tell it:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;“Check my server every 30 minutes and notify me if it goes down.”&lt;/strong&gt;&lt;br&gt;
And it will silently monitor in the background and only alert you when needed.&lt;/p&gt;

&lt;p&gt;No babysitting required.&lt;br&gt;
It feels like having a remote AI employee.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🔌 Plugin-Based Architecture&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;SamarthyaBot supports dynamic plugin loading.&lt;br&gt;
Any developer can drop a JS file into the plugins folder, and the system auto-loads it at startup.&lt;/p&gt;

&lt;p&gt;This turns the agent into a platform — not just a tool.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🔐 Privacy &amp;amp; Security First&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Sensitive data like API keys, passwords, or bank details are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Automatically masked before LLM processing&lt;/li&gt;
&lt;li&gt;Encrypted using AES-256-CBC&lt;/li&gt;
&lt;li&gt;Stored securely in MongoDB&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;High-risk actions require explicit user permission (Ask / Always / Never model).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;📲 Remote Control via Telegram&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;One of my favorite features:&lt;/p&gt;

&lt;p&gt;I can message the bot on Telegram from anywhere, and even if my laptop is miles away, it can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Manage files&lt;/li&gt;
&lt;li&gt;Run commands&lt;/li&gt;
&lt;li&gt;Monitor systems&lt;/li&gt;
&lt;li&gt;Execute background tasks&lt;/li&gt;
&lt;li&gt;Send alerts&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It feels like having a remote AI employee.&lt;/p&gt;

&lt;p&gt;Github: &lt;a href="https://github.com/mebishnusahu0595/SamarthyaBot" rel="noopener noreferrer"&gt;https://github.com/mebishnusahu0595/SamarthyaBot&lt;/a&gt;&lt;br&gt;
Npm : &lt;a href="https://www.npmjs.com/package/samarthya-bot" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/samarthya-bot&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>openclaw</category>
      <category>openai</category>
    </item>
  </channel>
</rss>
