<?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: Eric Cheng</title>
    <description>The latest articles on DEV Community by Eric Cheng (@onlineeric).</description>
    <link>https://dev.to/onlineeric</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%2F3366238%2F69d9047b-849c-4e1c-b98e-f23d289e19be.jpg</url>
      <title>DEV Community: Eric Cheng</title>
      <link>https://dev.to/onlineeric</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/onlineeric"/>
    <language>en</language>
    <item>
      <title>My One-Month Journey with Claude Code 🚀</title>
      <dc:creator>Eric Cheng</dc:creator>
      <pubDate>Wed, 06 Aug 2025 06:51:40 +0000</pubDate>
      <link>https://dev.to/onlineeric/my-one-month-journey-with-claude-code-199h</link>
      <guid>https://dev.to/onlineeric/my-one-month-journey-with-claude-code-199h</guid>
      <description>&lt;p&gt;Here's my experience and reflections after using Claude Code for one month. 🤖✨&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%2Fblnn07qdv2iy13cthfrd.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%2Fblnn07qdv2iy13cthfrd.png" alt=" " width="415" height="246"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;First Experience 🌟&lt;/p&gt;

&lt;p&gt;Initially, I was searching for a CLI-based AI coding tool to help with a significant refactoring project involving thousands of files. While I use Cursor as my IDE, it didn't quite handle large-scale refactoring efficiently.&lt;/p&gt;

&lt;p&gt;I first tried Gemini CLI but had a disappointing experience: it felt slow 🐢 and didn't fully grasp my instructions (though perhaps it was partly my issue).&lt;/p&gt;

&lt;p&gt;Next, I turned to Claude Code because it has a strong reputation among developers. Initially, I hesitated since I was already paying for several AI subscriptions (ChatGPT Pro, Cursor Pro). I decided to test Claude Code for one month to evaluate its effectiveness.&lt;/p&gt;

&lt;p&gt;And wow—it was genuinely surprising! 🤩 Claude 4 Sonnet impressed me immediately. Now I understand why many developers regard Claude as the top AI coding model. Having previously tried various models through Cursor, such as Gemini Pro 2.5 and Claude 4, Claude Code significantly outperformed them.&lt;/p&gt;

&lt;p&gt;The standout features of Claude Code for me are:&lt;/p&gt;

&lt;p&gt;Deep Codebase Understanding 🔍&lt;/p&gt;

&lt;p&gt;Claude Code truly understands your entire codebase. While Github Copilot and Cursor AI claim similar capabilities, they mainly work effectively with the files currently in use or attached. Claude Code, however, actively searches and navigates the entire codebase efficiently.&lt;/p&gt;

&lt;p&gt;Automated Task Loop ♻️&lt;/p&gt;

&lt;p&gt;Claude Code seamlessly automates tasks by repeatedly running tests, identifying issues, and applying fixes until completion, all without manual intervention if you enable auto-updates. In contrast, Github Copilot and Cursor AI require significant manual interaction, such as running tests, copying errors, and triggering fixes. Additionally, I've encountered persistent issues with terminal script execution in Cursor and VSCode, which Claude Code avoids entirely.&lt;/p&gt;

&lt;p&gt;After 2 Weeks 📅✨&lt;/p&gt;

&lt;p&gt;I started relying more heavily on Claude Code. The newly introduced subagents made tasks more efficient, but they quickly consumed my tokens, frequently hitting usage limits. ⚠️&lt;/p&gt;

&lt;p&gt;Initially, I attempted to loop through all files using one extensive prompt. However, this created context limit issues because modifying each file added history, quickly becoming inefficient and token-consuming.&lt;/p&gt;

&lt;p&gt;Using subagents seemed promising, as I could separate sessions: one high-level prompt to loop through files and individual subagents to handle each file. While this solved the context issue, it wasn't entirely smooth:&lt;/p&gt;

&lt;p&gt;❌ At this moment, subagents cannot call other subagents, limiting their depth to one.&lt;/p&gt;

&lt;p&gt;❌ Subagent activities weren’t displayed on the screen, creating confusion about their progress.&lt;/p&gt;

&lt;p&gt;Eventually, I found the most effective approach: use Claude Code to create JavaScript or PowerShell scripts 📜 to iterate through files, then initiate separate Claude sessions for each file-specific task.&lt;/p&gt;

&lt;p&gt;Lessons Learned 📝&lt;/p&gt;

&lt;p&gt;For extensive workflows involving many detailed steps, fully relying on AI for everything isn’t effective. Instead, break down jobs into smaller, distinct tasks.&lt;/p&gt;

&lt;p&gt;Scriptable Tasks 🛠️: Tasks with clear, logical patterns (e.g., adding logs, imports, exports, find-and-replace actions) should be automated via scripts generated by AI rather than relying on AI prompts due to the variability in AI outputs.&lt;/p&gt;

&lt;p&gt;Promptable Tasks 🧠: Tasks without clear patterns or descriptions (e.g., writing unit tests, code reviews, identifying problematic code patterns) are best suited for Claude Code prompts.&lt;/p&gt;

&lt;p&gt;After 1 Month 🔥💸&lt;/p&gt;

&lt;p&gt;Now, Claude Code is indispensable—I can't imagine working without it.&lt;/p&gt;

&lt;p&gt;The primary challenge remains consistently hitting the usage limit. Initially, I balanced costs by combining a Pro Plan account with a Console (API key) account, as detailed in my earlier article.&lt;/p&gt;

&lt;p&gt;However, this mixed approach carries risks. For example, once I forgot to switch back from the API key account after hitting the limit, accidentally using it like a Pro account, which quickly cost me an unexpected 💰 $20 USD due to a few times auto top-up.&lt;/p&gt;

&lt;p&gt;As token usage and API payments steadily increased, I realized surpassing the $100 USD Max Plan threshold made it financially sensible to upgrade.&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%2F7f9mov9gqk1aubarpjc2.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%2F7f9mov9gqk1aubarpjc2.png" alt=" " width="478" height="142"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So, today I finally subscribed to the $100 USD Max Plan. 🥳 I justify this by considering it akin to outsourcing my workload, which makes the investment feel reasonable—self-comforting as it may be! 😅&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>ai</category>
      <category>programming</category>
      <category>coding</category>
    </item>
    <item>
      <title>Claude Code Sub Agents - Burn Out Your Tokens</title>
      <dc:creator>Eric Cheng</dc:creator>
      <pubDate>Mon, 28 Jul 2025 00:52:21 +0000</pubDate>
      <link>https://dev.to/onlineeric/claude-code-sub-agents-burn-out-your-tokens-4cd8</link>
      <guid>https://dev.to/onlineeric/claude-code-sub-agents-burn-out-your-tokens-4cd8</guid>
      <description>&lt;p&gt;&lt;em&gt;How parallel helpers can speed up your refactor — and drain your usage allowance twice as fast&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  ✨ Introduction
&lt;/h2&gt;

&lt;p&gt;Claude Code v1.0.60 introduced the new &lt;code&gt;/agents&lt;/code&gt; command. With it you can spin up &lt;strong&gt;sub‑agents&lt;/strong&gt; — lightweight Claude workers that run under one top‑level session. Each gets its own context window, system prompt, and tool permissions. In other words, you now have a mini‑fleet of AIs that can tackle parts of a job in parallel. (&lt;a href="https://docs.anthropic.com/en/docs/claude-code/sub-agents?utm_source=chatgpt.com" rel="noopener noreferrer"&gt;docs.anthropic.com&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;I’m knee‑deep in a large‑scale refactor that touches a few &lt;em&gt;hundred&lt;/em&gt; files, so it felt like the perfect test‑drive for sub‑agents. Here’s what I learned.&lt;/p&gt;

&lt;h2&gt;
  
  
  🧐 Sub Agents at a Glance
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;🔹 &lt;strong&gt;What they are&lt;/strong&gt; – Pre‑configured AI personalities you delegate work to. Think of them as coding experts with a very focused remit. (&lt;a href="https://docs.anthropic.com/en/docs/claude-code/sub-agents?utm_source=chatgpt.com" rel="noopener noreferrer"&gt;docs.anthropic.com&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;🔹 &lt;strong&gt;Separate context history&lt;/strong&gt; – Each sub‑agent maintains its own conversation history. That context history never pollutes the parent or its siblings.&lt;/li&gt;
&lt;li&gt;🔹 &lt;strong&gt;True concurrency&lt;/strong&gt; – Claude may schedule sub‑agent jobs at once. If your prompts are I/O‑light, they finish in parallel and feel &lt;em&gt;much&lt;/em&gt; faster than sequential runs.&lt;/li&gt;
&lt;li&gt;🔹 &lt;strong&gt;Same token pool&lt;/strong&gt; – All prompts and completions still count against &lt;em&gt;your&lt;/em&gt; plan’s 5‑hour rolling limit. More speed therefore ⇒ more tokens burned per wall‑clock minute.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🎯 Why Use Sub Agents? Key Benefits
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;🎁 &lt;strong&gt;Benefit&lt;/strong&gt;
&lt;/th&gt;
&lt;th&gt;💡 &lt;strong&gt;Why it matters&lt;/strong&gt;
&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Clean context separation&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No accidental "cross‑talk" between tasks. Each agent sees only what it needs, so your refactor instructions don’t collide with your test‑generation instructions.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Longer effective history&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Because contexts don’t mingle, every agent can use the full 200k‑token window (Claude 3.5) for &lt;em&gt;its&lt;/em&gt; thread.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Caching between runs&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The &lt;em&gt;parent&lt;/em&gt; session can hold shared project docs (architecture.md, coding‑style.md). Each sub‑agent can reference that shared memory without re‑uploading every time.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Failure isolation&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;If one agent hits a hallucination or error, others keep going. You just retry the failed shard.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  🛠️ Real‑World Case — Batch‑Updating Hundreds of Files
&lt;/h2&gt;

&lt;p&gt;For this large refactor, I loop through a list of more than 300 files. My prompt logic update a finished list, so when I reach the usage limit and the session breaks, I can rerun the same prompt file and it resumes with the first unfinished file. I now restart the refactor roughly every five hours, after the limit resets.&lt;/p&gt;

&lt;h3&gt;
  
  
  ⏳ Previous Attempt 1 — One Huge Session
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;🐌 Looping through files in &lt;strong&gt;one conversation&lt;/strong&gt; quickly ballooned the context. After ~40 files Claude hit the 200k‑token window and terminated.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  🔄 Previous Attempt 2 — Powershell Outer Loop
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="kr"&gt;foreach&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$file&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kr"&gt;in&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$filesToProcess&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="c"&gt;# Replace the {file-name} placeholder with the actual file name&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nv"&gt;$customizedPrompt&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$promptTemplate&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-replace&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'\{file-name\}'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$file&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;FullName&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="c"&gt;# Call claude-code with the customized prompt and file content&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="n"&gt;claude&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-p&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$customizedPrompt&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--dangerously-skip-permissions&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;⚙️ Each invocation got a fresh context, so context history per call were minimal.&lt;/li&gt;
&lt;li&gt;⚠️ Downside: every call had to resend project structure, style guide, and helper functions—zero cache, lots of latency.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  ⚡ New Approach — One Parent, Many Sub‑Agents
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;🚀 &lt;strong&gt;Create&lt;/strong&gt; a single high‑level session that loops over all files and delegates each one to a sub‑agent.&lt;/li&gt;
&lt;li&gt;📂 &lt;strong&gt;Isolated histories:&lt;/strong&gt; each file runs in its own sub‑agent session, so histories never mix.&lt;/li&gt;
&lt;li&gt;✅ &lt;strong&gt;Advantage:&lt;/strong&gt; tasks stay isolated, sessions don’t collide, and you avoid the context‑length limit.&lt;/li&gt;
&lt;li&gt;🤯 &lt;strong&gt;Unexpected discovery:&lt;/strong&gt; without me asking, Claude Code spun up &lt;strong&gt;five&lt;/strong&gt; sub‑agent sessions in parallel. That sped up processing—but also burned tokens much faster.&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%2F6il4dffjq3jixxltc880.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%2F6il4dffjq3jixxltc880.png" alt=" " width="503" height="311"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;⏱️ On the Pro plan I hit the usage limit in about &lt;strong&gt;15 minutes&lt;/strong&gt;. Sequential processing took roughly &lt;strong&gt;30 minutes&lt;/strong&gt;.&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%2Fzb4errioea2kkzljidig.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%2Fzb4errioea2kkzljidig.png" alt=" " width="640" height="201"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;💸 Even with the $100 Max plan (5× tokens), I’d still exhaust the window in around &lt;strong&gt;1 hour 15 minutes&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  💸 Token Economics: Hidden Costs of Parallelism
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;⚖️ &lt;strong&gt;Parallelism ≠ free&lt;/strong&gt; – The per‑file token cost is unchanged, but you pay for each session simultaneously. Your quota drains proportionally to concurrency.&lt;/li&gt;
&lt;li&gt;📊 &lt;strong&gt;Plan sizing&lt;/strong&gt; – On the $100 Max plan (≈ 5× Pro tokens) the same job would still exhaust the window in about &lt;strong&gt;75 min&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🏁 Conclusion
&lt;/h2&gt;

&lt;p&gt;Sub‑agents are a genuine force multiplier. For large‑scale, slice‑able tasks they feel like hiring a small AI team for the price of one. Just remember: speed kills (your quota).&lt;/p&gt;

&lt;p&gt;If you’re a heavy user, set up guardrails before unleashing a parallel swarm — or be ready to smash that &lt;strong&gt;Upgrade&lt;/strong&gt; button.&lt;/p&gt;

&lt;p&gt;Happy token‑burning!🔥🔥🔥🔥🔥🔥🔥🔥&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claudecode</category>
      <category>agentaichallenge</category>
      <category>programming</category>
    </item>
    <item>
      <title>Claude Not Knowing Claude Code?</title>
      <dc:creator>Eric Cheng</dc:creator>
      <pubDate>Fri, 25 Jul 2025 10:39:24 +0000</pubDate>
      <link>https://dev.to/onlineeric/claude-not-knowing-claude-code-3j28</link>
      <guid>https://dev.to/onlineeric/claude-not-knowing-claude-code-3j28</guid>
      <description>&lt;h1&gt;
  
  
  This is A Hilarious Case of Claude Not Knowing Claude: A &lt;code&gt;/agents&lt;/code&gt; Comedy
&lt;/h1&gt;

&lt;h2&gt;
  
  
  The Setup 🎭
&lt;/h2&gt;

&lt;p&gt;Claude Code v1.0.60 just dropped, and with it came a new feature: the &lt;code&gt;/agents&lt;/code&gt; command.&lt;/p&gt;

&lt;p&gt;Curious, I opened the Claude AI web app and asked myself (well, Claude) for a summary of this shiny new feature.&lt;/p&gt;

&lt;p&gt;Claude (me), confidently:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“I don’t have detailed information about the /agents command. Check the docs! 🤷‍♂️”&lt;/p&gt;
&lt;/blockquote&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%2Fskhl78nwsg2eiuchc334.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%2Fskhl78nwsg2eiuchc334.png" alt=" " width="737" height="106"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;User:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Wait… you’re Claude. How do you not know your own features?”&lt;/p&gt;
&lt;/blockquote&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%2Fa9re33p4dn9er83k9uot.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%2Fa9re33p4dn9er83k9uot.png" alt=" " width="729" height="152"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The (Wrong) Deep Dive 🕵️‍♂️
&lt;/h2&gt;

&lt;p&gt;Determined to prove I wasn’t clueless, I jumped into research mode.&lt;/p&gt;

&lt;p&gt;I read the Claude Code docs, explored the Task tool, dug into GitHub issues—and then declared:&lt;/p&gt;

&lt;p&gt;Me, still confidently wrong:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“There’s no /agents command. What you’re probably referring to is the Task tool system!”&lt;/p&gt;
&lt;/blockquote&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%2F2u9ic1pvzl0husnpk5p0.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%2F2u9ic1pvzl0husnpk5p0.png" alt=" " width="692" height="123"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I even wrote a neat little summary guide. Too bad it was completely off-base.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Mic Drop Moment 🎤💥
&lt;/h2&gt;

&lt;p&gt;User:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Here’s the link: &lt;a href="https://docs.anthropic.com/en/docs/claude-code/slash-commands" rel="noopener noreferrer"&gt;https://docs.anthropic.com/en/docs/claude-code/slash-commands&lt;/a&gt; — /agents is right there.”&lt;/p&gt;
&lt;/blockquote&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%2Ft9isc1haufpr1tf0fdvp.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%2Ft9isc1haufpr1tf0fdvp.png" alt=" " width="715" height="147"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I click it. There it is:&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
Copy&lt;br&gt;
Edit&lt;br&gt;
/agents | Manage sub agents&lt;br&gt;
Oops.&lt;/p&gt;

&lt;h2&gt;
  
  
  What /agents Actually Does ⚡
&lt;/h2&gt;

&lt;p&gt;Turns out, the &lt;code&gt;/agents&lt;/code&gt; command is legit—and pretty powerful:&lt;/p&gt;

&lt;p&gt;Opens a UI to manage sub-agents&lt;/p&gt;

&lt;p&gt;Lets you create, edit, and delete them&lt;/p&gt;

&lt;p&gt;Assign tools and permissions per agent&lt;/p&gt;

&lt;p&gt;Useful for organizing projects or tasks using specialized agents&lt;/p&gt;

&lt;p&gt;Basically, it’s the control panel for your AI mini-team inside Claude Code.&lt;/p&gt;

&lt;h1&gt;
  
  
  Lessons Learned 📚
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;Claude Code read itself's patch notes, but Claude doesn't.&lt;/li&gt;
&lt;li&gt;Claude not equal Claude Code, even using same data model, may be some on top retrival data are different.&lt;/li&gt;
&lt;li&gt;Claude web version seems will not progressively search the internet for something it doesn't know. You have to give instruction to search the internet.&lt;/li&gt;
&lt;li&gt;Claude web search ability seems not good as other top data model like ChatGPT, Gemini Pro and Grok.&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>Never Get Stuck: A Practical Guide to Using Claude Code Without Blowing Your Budget</title>
      <dc:creator>Eric Cheng</dc:creator>
      <pubDate>Mon, 21 Jul 2025 10:15:36 +0000</pubDate>
      <link>https://dev.to/onlineeric/never-get-stuck-a-practical-guide-to-using-claude-code-without-blowing-your-budget-e08</link>
      <guid>https://dev.to/onlineeric/never-get-stuck-a-practical-guide-to-using-claude-code-without-blowing-your-budget-e08</guid>
      <description>&lt;p&gt;Claude Code is brilliant for large‑scale refactoring and rapid prototyping, but its generous appetite for tokens can drain your monthly quota fast. Here’s how I stay productive &lt;strong&gt;and&lt;/strong&gt; cost‑efficient by combining the &lt;strong&gt;Pro&lt;/strong&gt; subscription with &lt;strong&gt;pay‑as‑you‑go API credits&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Understanding the Pro Plan ($20 / month)
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What you get&lt;/th&gt;
&lt;th&gt;Why it can feel tight&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;• Basic chat plus Claude Code access  • Around &lt;strong&gt;5–6 k&lt;/strong&gt; context window per request  • Rate‑limited bursts that reset every &lt;strong&gt;4–5 hours&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;• Batch refactors or data pulls can consume &lt;strong&gt;100 k+&lt;/strong&gt; tokens in minutes  • No top‑ups—once capped, you must wait for the next window&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The Pro tier is fine for exploring, debugging, or writing tests in short bursts. The pain begins when you launch &lt;strong&gt;automated, headless jobs&lt;/strong&gt; that touch hundreds of files.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Knee‑Jerk Upgrade—Max Plan ($100 / month)
&lt;/h2&gt;

&lt;p&gt;Upgrading removes most per‑window throttles, but you pay &lt;strong&gt;5 ×&lt;/strong&gt; more every month—whether you need that head‑room daily or not.&lt;br&gt;
(There is a $200 / month plan if you are rich enough)&lt;/p&gt;
&lt;h2&gt;
  
  
  Smarter Alternatives (Before You Click “Upgrade”)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Take a breather.&lt;/strong&gt; Limits reset every few hours—grab a coffee, review diffs, or write documentation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Switch tools temporarily.&lt;/strong&gt; Cursor, GitHub Copilot, or local LLMs (e.g., Code Llama) can cover light edits while you wait.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use an Anthropic Console account (API key).&lt;/strong&gt;

&lt;ul&gt;
&lt;li&gt;Pay‑as‑you‑go—you pay only for the tokens you burn.&lt;/li&gt;
&lt;li&gt;Generous rate limit—much higher than Pro — so you rarely hit it.&lt;/li&gt;
&lt;li&gt;Perfect for bursty weeks; ignore it when work is lighter.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Treat Console credits like cloud GPUs—spin them up for crunch time, shut them off when you’re done.&lt;/p&gt;
&lt;/blockquote&gt;


&lt;h2&gt;
  
  
  My Hybrid Workflow — Pro Plan + Console Credits
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Action (What I do)&lt;/th&gt;
&lt;th&gt;Required (Have to do)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1. Code until the Pro quota reaches its limit.&lt;/td&gt;
&lt;td&gt;Write prompts that can resume after a cut‑off.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2. Switch &lt;code&gt;CLAUDE_API_KEY&lt;/code&gt; to my Console key.&lt;/td&gt;
&lt;td&gt;Use &lt;code&gt;claude /login&lt;/code&gt; to switch accounts.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3. Finish the heavy task and check the Console cost dashboard.&lt;/td&gt;
&lt;td&gt;Setup when your prepaid balance drops below &lt;strong&gt;$5&lt;/strong&gt;, top it back up to &lt;strong&gt;$10&lt;/strong&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4. Switch back to Pro once the window resets.&lt;/td&gt;
&lt;td&gt;Keep recurring bills minimal.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Total monthly spend for me:&lt;/strong&gt; &lt;strong&gt;US $20–40&lt;/strong&gt; in Console charges, plus the &lt;strong&gt;$20&lt;/strong&gt; Pro plan—still far below the Max plan’s &lt;strong&gt;$100&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  Real‑World Example — Refactoring ~200 Files in One “Shot”
&lt;/h2&gt;

&lt;p&gt;It wasn’t truly one shot—Claude stopped whenever the history context grew too large. I tried to avoid this without much success. If you know a better approach, please leave a comment!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude &lt;span class="nt"&gt;-p&lt;/span&gt; &lt;span class="s2"&gt;"refactor_prompt.md"&lt;/span&gt; &lt;span class="nt"&gt;--dangerously-skip-permissions&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;-p&lt;/code&gt; runs in &lt;strong&gt;headless mode&lt;/strong&gt;—no interactive chat.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;--dangerously-skip-permissions&lt;/code&gt; auto‑confirms every file write.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Outcome&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Phase 1 (Pro):&lt;/strong&gt; 25 min—quota exhausted.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Phase 2 (Console):&lt;/strong&gt; around 30 min, &lt;strong&gt;8M tokens&lt;/strong&gt; → &lt;strong&gt;≈ US $5.68&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Job done in under an hour with zero manual clicks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cost Snapshot (Typical Month)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Claude Pro subscription …………… &lt;strong&gt;$20&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Occasional Console bursts ………… &lt;strong&gt;$5–10&lt;/strong&gt; each, a few times a month&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Total&lt;/strong&gt; ……………………………………… estimated average &lt;strong&gt;$40–60&lt;/strong&gt; (varies, only apply to my personal situation)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Savings vs. Max plan: ~ 50 %.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Tips to Stretch Your Tokens
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Chunk big tasks.&lt;/strong&gt; Process the codebase by directory to avoid runaway prompts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stream results.&lt;/strong&gt; Pipe Claude output into &lt;code&gt;git apply&lt;/code&gt; to keep diffs small.&lt;/li&gt;
&lt;li&gt;*&lt;em&gt;Monitor with *&lt;/em&gt; &lt;code&gt;claude status&lt;/code&gt;. Know your remaining quota before batch jobs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache context.&lt;/strong&gt; Reuse summaries instead of pasting full files repeatedly.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  TL;DR
&lt;/h3&gt;

&lt;p&gt;Stick with the &lt;strong&gt;$20&lt;/strong&gt; Pro plan for everyday coding, burst to the Console when deadlines loom, and you’ll stay productive &lt;strong&gt;and&lt;/strong&gt; well below the &lt;strong&gt;$100&lt;/strong&gt; ceiling.&lt;/p&gt;

&lt;p&gt;Happy coding—may your tokens stretch further than your coffee! 🚀&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claudecode</category>
      <category>programming</category>
      <category>agentaichallenge</category>
    </item>
    <item>
      <title>Software Engineers, are you ready for the next‑gen challenge?</title>
      <dc:creator>Eric Cheng</dc:creator>
      <pubDate>Sat, 19 Jul 2025 04:38:05 +0000</pubDate>
      <link>https://dev.to/onlineeric/software-engineers-are-you-ready-for-the-next-gen-challenge-4g5f</link>
      <guid>https://dev.to/onlineeric/software-engineers-are-you-ready-for-the-next-gen-challenge-4g5f</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;This was originally a late-night rant I posted in the Facebook group. Since it got a nice response and I’ve been meaning to try my hand at dev.to, I’m recycling it as my very first story here.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Software Engineers, are you ready for the next‑gen challenge?&lt;/p&gt;

&lt;p&gt;Hold on, I’m not talking about vibe‑coding or AI agents!&lt;/p&gt;

&lt;p&gt;Sure, those are cool.&lt;/p&gt;

&lt;p&gt;In my years in the industry I’ve hopped across all sorts of companies — multinationals, mid‑sized firms, even tiny firms.&lt;/p&gt;

&lt;p&gt;And more often than not they didn’t hire me to play with the latest cutting‑edge toys. I know those shiny tools, sure — but there’s always a queue of rock‑star devs fighting to mess with them.&lt;/p&gt;

&lt;p&gt;Since the dawn of the internet era I’ve been chasing tech: Java, SQL, C#, JS, TS, Docker, Azure, AWS, Node.js, Express, React, MongoDB…&lt;/p&gt;

&lt;p&gt;Learn → build → deprecate → learn again → build again — on loop.&lt;/p&gt;

&lt;p&gt;But in the end, where does my value lie? Why do companies pay me? What do they actually want me to do?&lt;/p&gt;

&lt;p&gt;Most of the time the answer is: &lt;strong&gt;Maintain and optimise legacy systems&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  My major value lied
&lt;/h2&gt;

&lt;p&gt;Yup. Many of my previous companies know I understand the new stuff, yet they have zero intention — no budget, no guts — to adopt it.&lt;/p&gt;

&lt;p&gt;They’re stuck with an ancient system so outdated even the least tech‑savvy user rolls their eyes at the UI and loses faith.&lt;/p&gt;

&lt;p&gt;The functionality is fine; the look just screams “prehistoric.”&lt;/p&gt;

&lt;p&gt;“Oh, you’re that enthusiastic new‑tech guy? Perfect. We’ve got a crusty old system — modernise it for us, will ya?”&lt;/p&gt;

&lt;p&gt;That sort of gig took me from clueless kid to buying a house, getting married, having kids, immigrating, starting over — job after job after job, all revolving around upgrading dusty systems.&lt;/p&gt;

&lt;p&gt;So, back to my opening: what’s the next‑gen challenge? What’s the problem that might showcase your worth?&lt;/p&gt;

&lt;h2&gt;
  
  
  The next‑gen challenge, and where our real values may lie
&lt;/h2&gt;

&lt;p&gt;Legacy apps still need love, but another opportunity is about to explode — one tailor‑made for seasoned engineers with serious fundamentals:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Taming systems drowning in AI technical debt.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Today everyone’s bragging:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“I can’t code, but I vibed for two hours and shipped a product!”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;However! Project managers buy it. Execs buy it. The business side buys it. “Hallelujah! Those smug engineers are obsolete. I’ll just hire a fresh grad who can type prompts. They’ll prototype my wild ideas and toss the mess to the dev team for cleanup.”&lt;/p&gt;

&lt;p&gt;My goodness. That’s scarier than any legacy app, scarier than inheriting some obscure language stack.&lt;/p&gt;

&lt;p&gt;Picture someone who’s never studied civil engineering slapping together a foundation, then stacking a 50‑storey skyscraper on top. Now the tower leaks, shorts, sways, ready to collapse.&lt;/p&gt;

&lt;p&gt;That, my friends, is the &lt;strong&gt;job opportunities&lt;/strong&gt; we’re about to see.&lt;/p&gt;

&lt;p&gt;When their Franken‑systems start imploding and the hackers who built them get promoted — or flee — they’ll finally think: “Maybe we should hire an experienced engineer to follow up.”&lt;/p&gt;

&lt;h2&gt;
  
  
  The question is: Will you take the job?
&lt;/h2&gt;

&lt;p&gt;Are you still dreaming of that pre‑AI golden age where engineers were rare gems? Wake up. Most of us aren’t reinventing the world; we’re cogs. And those doomed projects — crashing deadlines, burning budgets — have fed you, your family, your kids.&lt;/p&gt;

&lt;p&gt;“Relax. Let me handle it. The system’s a dumpster fire, sure — but trust me, I’ve got this.”&lt;/p&gt;

&lt;p&gt;Dear future me: swallow your pride, stow the profanity, and say that line to the hiring manager — gracefully.&lt;/p&gt;

&lt;p&gt;Let’s go get it my friend.&lt;/p&gt;

</description>
      <category>techdebt</category>
      <category>vibecoding</category>
      <category>softwareengin</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
