<?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: Jitendra Kumar</title>
    <description>The latest articles on DEV Community by Jitendra Kumar (@jitendra_kumar_8f047ffe2a).</description>
    <link>https://dev.to/jitendra_kumar_8f047ffe2a</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%2F3720288%2F9bc07661-22c5-45b7-9996-4d0210c058ec.png</url>
      <title>DEV Community: Jitendra Kumar</title>
      <link>https://dev.to/jitendra_kumar_8f047ffe2a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jitendra_kumar_8f047ffe2a"/>
    <language>en</language>
    <item>
      <title>Claude Code Slow? Master /clear and /compact in 2 Minutes (Day 3 of 10)</title>
      <dc:creator>Jitendra Kumar</dc:creator>
      <pubDate>Wed, 06 May 2026 17:12:41 +0000</pubDate>
      <link>https://dev.to/jitendra_kumar_8f047ffe2a/claude-code-slow-use-these-2-commands-fl9</link>
      <guid>https://dev.to/jitendra_kumar_8f047ffe2a/claude-code-slow-use-these-2-commands-fl9</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt; — Long Claude Code conversations slow down because the context window fills up. Use &lt;code&gt;/clear&lt;/code&gt; when starting a brand new task, and &lt;code&gt;/compact&lt;/code&gt; when you want to keep working on the same task but free up memory. Master this rule and your Pro plan will go 2x further.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Welcome back to &lt;strong&gt;Day 3&lt;/strong&gt; of my "10 Days of Claude Code" series! 🚀&lt;/p&gt;

&lt;p&gt;If you missed the earlier days:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;📌 &lt;strong&gt;Day 1&lt;/strong&gt; — How &lt;code&gt;/init&lt;/code&gt; instantly understands your entire project&lt;/li&gt;
&lt;li&gt;📌 &lt;strong&gt;Day 2&lt;/strong&gt; — &lt;code&gt;/review&lt;/code&gt; and &lt;code&gt;/ask&lt;/code&gt; for instant code audits&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Today we're solving a problem &lt;strong&gt;every Claude Code user faces&lt;/strong&gt; but most don't know how to fix.&lt;/p&gt;




&lt;h2&gt;
  
  
  😩 The Problem Nobody Talks About
&lt;/h2&gt;

&lt;p&gt;You start a Claude Code session in VS Code. Everything is fast and crisp. You build a feature, fix a bug, refactor some code. &lt;/p&gt;

&lt;p&gt;Then 30 minutes in...&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;⏳ Replies become &lt;strong&gt;slower&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;💸 Tokens deplete &lt;strong&gt;faster&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;🤔 Claude starts giving &lt;strong&gt;slightly off answers&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;😤 You're getting frustrated&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What's happening?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every message you send adds to Claude's &lt;strong&gt;context window&lt;/strong&gt;. Your old chat from 30 minutes ago — the one about a totally different file — is still being processed with every new request. It's like asking your friend a quick question while they're holding 200 sticky notes from earlier in the day.&lt;/p&gt;

&lt;p&gt;Two slash commands solve this completely.&lt;/p&gt;




&lt;h2&gt;
  
  
  ⚡ Command #1: &lt;code&gt;/clear&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What it does:&lt;/strong&gt; Wipes the entire conversation history and starts fresh. Same session, same project, but Claude forgets everything you've discussed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use it:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;✅ Starting a &lt;strong&gt;completely new task&lt;/strong&gt; (e.g., done with auth, now working on payments)&lt;/li&gt;
&lt;li&gt;✅ Switching to an &lt;strong&gt;unrelated file or feature&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;✅ Claude is giving &lt;strong&gt;weird/confused&lt;/strong&gt; responses&lt;/li&gt;
&lt;li&gt;✅ You want &lt;strong&gt;maximum speed&lt;/strong&gt; and a clean slate&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;How to use it:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;/clear
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. One command. Fresh terminal, fresh brain, full speed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real example from my workflow:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[Worked on user authentication for 20 min]
[Bug fixed, feature shipped ✅]

Me: /clear

[New conversation begins]
Me: Now help me build the Stripe payment integration.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Claude doesn't carry over the auth context — which is exactly what I want. Less noise, faster response.&lt;/p&gt;




&lt;h2&gt;
  
  
  🗜️ Command #2: &lt;code&gt;/compact&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What it does:&lt;/strong&gt; Summarizes your current conversation, keeps the important parts, and discards the fluff. You don't lose context — you compress it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When to use it:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;✅ Continuing the &lt;strong&gt;same task&lt;/strong&gt; but the chat is getting long&lt;/li&gt;
&lt;li&gt;✅ You're deep in a &lt;strong&gt;complex feature&lt;/strong&gt; and need Claude to remember decisions&lt;/li&gt;
&lt;li&gt;✅ You see token usage climbing but &lt;strong&gt;can't afford to lose context&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;✅ Mid-debugging session where history matters&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;How to use it:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;/compact
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Claude generates a summary of what you've discussed and &lt;strong&gt;replaces the long history with that summary&lt;/strong&gt;. Same context, way less memory.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[60 messages deep into building a dashboard]
[Multiple component decisions, design choices made]

Me: /compact

Claude: [summarizes the entire session into ~5 key points]

Me: Now add a filter dropdown to the chart we built earlier.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Claude still remembers the chart, the design system, the framework choice — but it's not re-reading 60 messages every time.&lt;/p&gt;




&lt;h2&gt;
  
  
  🎯 The Golden Rule (memorize this)
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Situation&lt;/th&gt;
&lt;th&gt;Command&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Starting a &lt;strong&gt;new task&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/clear&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Continuing the &lt;strong&gt;same task&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/compact&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude is &lt;strong&gt;confused&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/clear&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Conversation is &lt;strong&gt;long but relevant&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;/compact&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That's it. Two commands, infinite productivity.&lt;/p&gt;




&lt;h2&gt;
  
  
  💰 Why This Matters for Pro Users
&lt;/h2&gt;

&lt;p&gt;If you're on the &lt;strong&gt;Pro plan&lt;/strong&gt; (like me), this is &lt;strong&gt;money saved&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Every token in your context window counts toward your usage&lt;/li&gt;
&lt;li&gt;Bloated conversations = wasted Pro quota&lt;/li&gt;
&lt;li&gt;A 5-second &lt;code&gt;/clear&lt;/code&gt; or &lt;code&gt;/compact&lt;/code&gt; can save you &lt;strong&gt;hundreds of tokens&lt;/strong&gt; per task&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I personally run &lt;code&gt;/clear&lt;/code&gt; between every major task switch. My Pro plan now lasts &lt;strong&gt;way longer&lt;/strong&gt; than it did before I knew this.&lt;/p&gt;




&lt;h2&gt;
  
  
  🧪 Try It Right Now
&lt;/h2&gt;

&lt;p&gt;Open Claude Code in VS Code, run a few prompts, then try:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Type &lt;code&gt;/compact&lt;/code&gt; — watch the conversation collapse into a clean summary&lt;/li&gt;
&lt;li&gt;Type &lt;code&gt;/clear&lt;/code&gt; — see a fresh terminal, ready for a new task&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You'll feel the difference &lt;strong&gt;immediately&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  🎬 Watch the 60-Second Version
&lt;/h2&gt;

&lt;p&gt;If you prefer video, I made a quick reel covering this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;📺 &lt;strong&gt;YouTube Shorts:&lt;/strong&gt; &lt;a href="https://www.youtube.com/shorts/lM1YE2FuD8o" rel="noopener noreferrer"&gt;https://www.youtube.com/shorts/lM1YE2FuD8o&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;📱 **Instagram Reel: **&lt;a href="https://www.instagram.com/tech_jitendra_nadol/reel/DX9oSwNMhIh/" rel="noopener noreferrer"&gt;https://www.instagram.com/tech_jitendra_nadol/reel/DX9oSwNMhIh/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  📅 What's Next?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Tomorrow — Day 4&lt;/strong&gt; I'm covering the &lt;code&gt;/model&lt;/code&gt; command — when to use &lt;strong&gt;Sonnet vs Opus&lt;/strong&gt; and how to save tokens by picking the right model for the right job. This one's a &lt;strong&gt;game-changer&lt;/strong&gt; for Pro users.&lt;/p&gt;

&lt;p&gt;🔔 Follow me on Dev.to so you don't miss it!&lt;/p&gt;




&lt;h2&gt;
  
  
  💬 Your Turn
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Did you know about &lt;code&gt;/clear&lt;/code&gt; and &lt;code&gt;/compact&lt;/code&gt;?&lt;/li&gt;
&lt;li&gt;Which one will you use more often?&lt;/li&gt;
&lt;li&gt;What's your biggest Claude Code pain point?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Drop a comment — I read every single one. 👇&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;About the series:&lt;/strong&gt; I'm sharing one Claude Code productivity tip every day for 10 days. Follow along on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🐦 Twitter/X: &lt;a href="https://x.com/JitendraV9521" rel="noopener noreferrer"&gt;https://x.com/JitendraV9521&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;📷 Instagram: &lt;a href="https://www.instagram.com/tech_jitendra_nadol/" rel="noopener noreferrer"&gt;https://www.instagram.com/tech_jitendra_nadol/&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;📺 YouTube: &lt;a href="https://www.youtube.com/@techjitendranadol9876" rel="noopener noreferrer"&gt;https://www.youtube.com/@techjitendranadol9876&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let's master Claude Code together! 🚀&lt;/p&gt;

&lt;h1&gt;
  
  
  ClaudeCode #AI #Productivity #VSCode #DevTools
&lt;/h1&gt;

</description>
      <category>claudecode</category>
      <category>ai</category>
      <category>productivity</category>
      <category>vscode</category>
    </item>
    <item>
      <title>Yajra DataTables Part 2 is LIVE!</title>
      <dc:creator>Jitendra Kumar</dc:creator>
      <pubDate>Thu, 22 Jan 2026 17:38:10 +0000</pubDate>
      <link>https://dev.to/jitendra_kumar_8f047ffe2a/yajra-datatables-part-2-is-live-21g1</link>
      <guid>https://dev.to/jitendra_kumar_8f047ffe2a/yajra-datatables-part-2-is-live-21g1</guid>
      <description>&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=jbujL-dJaK0" rel="noopener noreferrer"&gt;Video&lt;/a&gt;&lt;br&gt;
Today I explained the NEW DataTable Class approach&lt;br&gt;
(query &amp;amp; dataTable methods) in Laravel 12.&lt;/p&gt;

&lt;p&gt;Next video: Action Buttons (Edit/Delete) 🔥&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
      <category>datatable</category>
      <category>backend</category>
    </item>
    <item>
      <title>Laravel 12 Yajra DataTables – New Way Explained</title>
      <dc:creator>Jitendra Kumar</dc:creator>
      <pubDate>Mon, 19 Jan 2026 19:28:43 +0000</pubDate>
      <link>https://dev.to/jitendra_kumar_8f047ffe2a/laravel-12-yajra-datatables-new-way-explained-2889</link>
      <guid>https://dev.to/jitendra_kumar_8f047ffe2a/laravel-12-yajra-datatables-new-way-explained-2889</guid>
      <description>&lt;p&gt;&lt;a href="https://youtu.be/yhhfc7Xy4-Q" rel="noopener noreferrer"&gt;Video&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>datatables</category>
      <category>yajra</category>
      <category>developer</category>
    </item>
    <item>
      <title>Laravel 12 Yajra DataTables – New Way Explained</title>
      <dc:creator>Jitendra Kumar</dc:creator>
      <pubDate>Mon, 19 Jan 2026 19:28:43 +0000</pubDate>
      <link>https://dev.to/jitendra_kumar_8f047ffe2a/laravel-12-yajra-datatables-new-way-explained-4ik5</link>
      <guid>https://dev.to/jitendra_kumar_8f047ffe2a/laravel-12-yajra-datatables-new-way-explained-4ik5</guid>
      <description>&lt;p&gt;&lt;a href="https://youtu.be/yhhfc7Xy4-Q" rel="noopener noreferrer"&gt;Video&lt;/a&gt;&lt;br&gt;
&lt;a href="https://youtu.be/yhhfc7Xy4-Q" rel="noopener noreferrer"&gt;https://youtu.be/yhhfc7Xy4-Q&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>datatables</category>
      <category>yajra</category>
      <category>developer</category>
    </item>
    <item>
      <title>Laravel 12 Yajra DataTables – New Way Explained</title>
      <dc:creator>Jitendra Kumar</dc:creator>
      <pubDate>Mon, 19 Jan 2026 19:28:43 +0000</pubDate>
      <link>https://dev.to/jitendra_kumar_8f047ffe2a/laravel-12-yajra-datatables-new-way-explained-3fm7</link>
      <guid>https://dev.to/jitendra_kumar_8f047ffe2a/laravel-12-yajra-datatables-new-way-explained-3fm7</guid>
      <description>&lt;p&gt;&lt;a href="https://youtu.be/yhhfc7Xy4-Q" rel="noopener noreferrer"&gt;Video&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>datatables</category>
      <category>yajra</category>
      <category>developer</category>
    </item>
  </channel>
</rss>
