<?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: Bulbul Gulzer</title>
    <description>The latest articles on DEV Community by Bulbul Gulzer (@gulzer).</description>
    <link>https://dev.to/gulzer</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%2F1862627%2F44e4fff9-efab-41e8-ae22-8f7b64fb3620.jpg</url>
      <title>DEV Community: Bulbul Gulzer</title>
      <link>https://dev.to/gulzer</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gulzer"/>
    <language>en</language>
    <item>
      <title>🔧 AI Automated Error Review &amp; AI Refactor Helper – Crushing the Command Line Challenge</title>
      <dc:creator>Bulbul Gulzer</dc:creator>
      <pubDate>Sun, 11 May 2025 14:42:55 +0000</pubDate>
      <link>https://dev.to/gulzer/ai-automated-error-review-ai-refactor-helper-crushing-the-command-line-challenge-5395</link>
      <guid>https://dev.to/gulzer/ai-automated-error-review-ai-refactor-helper-crushing-the-command-line-challenge-5395</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/aws-amazon-q-v2025-04-30"&gt;Amazon Q Developer "Quack The Code" Challenge&lt;/a&gt;: Crushing the Command Line&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;I created an &lt;strong&gt;AI Debugging and Automated Refactoring Assistant&lt;/strong&gt;, a powerful command-line tool built with TypeScript that helps backend developers automatically detect, explain, and fix issues in their projects. This tool scans your code using TypeScript, ESLint, and test runners, and when errors are found, it integrates with &lt;strong&gt;Amazon Q Developer CLI&lt;/strong&gt; to offer intelligent explanations and suggestions directly from the terminal.&lt;/p&gt;

&lt;p&gt;It solves the common pain point of context-switching between terminal and browser or IDE for debugging — bringing AI assistance to the CLI where developers spend a lot of time.&lt;/p&gt;




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



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx ts-node src/index.ts ./src
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Detects and displays TypeScript, ESLint, and test errors&lt;/li&gt;
&lt;li&gt;Prompts to open &lt;code&gt;q chat&lt;/code&gt; using Amazon Q Developer CLI&lt;/li&gt;
&lt;li&gt;Provides AI explanations for faster debugging without needing an IDE&lt;/li&gt;
&lt;/ul&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%2F8h4gt8mlitynul0e3ey3.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%2F8h4gt8mlitynul0e3ey3.png" alt="Demo Screenshot" width="800" height="349"&gt;&lt;/a&gt;&lt;br&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%2Fwp4jr4amjaai90ul8f26.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%2Fwp4jr4amjaai90ul8f26.png" alt="Demo Screenshot" width="800" height="465"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you can't run it, here's a short &lt;a href="https://drive.google.com/file/d/1RqmMBpvJmR9APmhRfxaM1T8Wc4Hrpq0g/view?usp=sharing" rel="noopener noreferrer"&gt;video demo&lt;/a&gt; &lt;/p&gt;


&lt;h2&gt;
  
  
  📂 Code Repository
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/gulzerr/crush-review" rel="noopener noreferrer"&gt;https://github.com/gulzerr/crush-review&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;License: MIT&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  🧠 How I Used Amazon Q Developer
&lt;/h2&gt;

&lt;p&gt;Amazon Q Developer CLI's &lt;code&gt;q chat&lt;/code&gt; was the key integration for this tool.&lt;/p&gt;

&lt;p&gt;Once errors are found using static analysis or test execution, the tool automatically invokes the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;q chat &lt;span class="nt"&gt;--trust-all-tools&lt;/span&gt; &lt;span class="nt"&gt;--no-interactive&lt;/span&gt; &amp;lt;error details&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This opens a &lt;strong&gt;non-interactive&lt;/strong&gt; (&lt;code&gt;--no-interactive&lt;/code&gt;) session in the terminal:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It explain linter errors&lt;/li&gt;
&lt;li&gt;Provide suggestions on how to refactor or fix the code&lt;/li&gt;
&lt;li&gt;And makes the necessary changes where needed as &lt;code&gt;--trust-all-tools&lt;/code&gt; does these changes&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  📝 Some points to be noted
&lt;/h2&gt;

&lt;p&gt;This is just a simple idea of what we can do using the Q Developer CLI; many more things can be done using this fascinating CLI.&lt;/p&gt;

&lt;p&gt;Tips:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;You can pipe files or error messages into q chat for detailed discussions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Combine this tool with CI/CD to flag and debug errors more intelligently.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;This tool works great in terminal-first workflows or headless environments.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




</description>
      <category>devchallenge</category>
      <category>awschallenge</category>
      <category>ai</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
