<?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>Forem: Anuj Sharma</title>
    <description>The latest articles on Forem by Anuj Sharma (@anuj_sharma).</description>
    <link>https://forem.com/anuj_sharma</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%2F3757156%2F3f6cb4a8-7b6c-4c7e-91e4-b150726ac176.png</url>
      <title>Forem: Anuj Sharma</title>
      <link>https://forem.com/anuj_sharma</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/anuj_sharma"/>
    <language>en</language>
    <item>
      <title>COSMIC SAFECLI</title>
      <dc:creator>Anuj Sharma</dc:creator>
      <pubDate>Sun, 15 Feb 2026 19:50:43 +0000</pubDate>
      <link>https://forem.com/anuj_sharma/cosmic-safecli-256d</link>
      <guid>https://forem.com/anuj_sharma/cosmic-safecli-256d</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/github-2026-01-21"&gt;GitHub Copilot CLI Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;I built Cosmic SafeCLI, a command-line safety assistant that helps users understand terminal commands before running them.&lt;/p&gt;

&lt;p&gt;It explains each part of a command in simple English, detects risky operations (like rm -rf or git reset --hard), and uses GitHub Copilot CLI to suggest a safer alternative.&lt;br&gt;
Instead of blocking execution, it lets the user learn and decide whether to run or cancel the command.&lt;/p&gt;

&lt;p&gt;The goal is to prevent accidental damage and turn the terminal into something that teaches, not just executes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;GitHub Repo link :&lt;a href="https://github.com/ANUJ-codes07/Cosmic-SafeCli" rel="noopener noreferrer"&gt;https://github.com/ANUJ-codes07/Cosmic-SafeCli&lt;/a&gt;&lt;/p&gt;

&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%2F8zk9xc83549vrt660md4.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%2F8zk9xc83549vrt660md4.png" alt=" " width="800" height="465"&gt;&lt;/a&gt;&lt;/p&gt;

&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%2F54x1k3p9mzttdo75h0mb.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%2F54x1k3p9mzttdo75h0mb.png" alt=" " width="800" height="296"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  My Experience with GitHub Copilot CLI
&lt;/h2&gt;

&lt;p&gt;While building Cosmic SafeCLI, I didn’t use GitHub Copilot CLI just to generate code — I used it as a real-time decision engine inside the application.&lt;/p&gt;

&lt;p&gt;Whenever a risky command is detected, the tool sends the command to Copilot CLI with a safety-focused prompt and shows the safer alternative it suggests. This made Copilot act like a terminal mentor, helping users understand consequences instead of blindly executing commands.&lt;/p&gt;

&lt;p&gt;What I liked most is that Copilot adapts suggestions to context rather than giving fixed rules. Instead of hard-coding every possible dangerous case, the app can intelligently guide the user at runtime.&lt;/p&gt;

&lt;p&gt;It changed my perspective: AI in development shouldn’t only help write commands — it should help humans make safer decisions.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>githubchallenge</category>
      <category>cli</category>
      <category>githubcopilot</category>
    </item>
  </channel>
</rss>
