<?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: Keshav Melnad</title>
    <description>The latest articles on DEV Community by Keshav Melnad (@ksmelnad).</description>
    <link>https://dev.to/ksmelnad</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F917655%2F94201561-4e81-4bf6-acee-92d5f37e963d.jpeg</url>
      <title>DEV Community: Keshav Melnad</title>
      <link>https://dev.to/ksmelnad</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ksmelnad"/>
    <language>en</language>
    <item>
      <title>I scanned my laptop for API keys. 115 of them were in Claude Code's transcripts</title>
      <dc:creator>Keshav Melnad</dc:creator>
      <pubDate>Tue, 24 Nov 2026 22:33:57 +0000</pubDate>
      <link>https://dev.to/ksmelnad/i-scanned-my-laptop-for-api-keys-115-of-them-were-in-claude-codes-transcripts-365g</link>
      <guid>https://dev.to/ksmelnad/i-scanned-my-laptop-for-api-keys-115-of-them-were-in-claude-codes-transcripts-365g</guid>
      <description>&lt;p&gt;I expected my &lt;code&gt;.env&lt;/code&gt; files to be the problem. They weren't.&lt;/p&gt;

&lt;p&gt;I ran a key scanner over my whole home folder: 803,628 files. It found 179 real API keys, plus 5 that looked like examples. Between them, those 179 keys had 1,338 plain text copies on my disk. One key alone had 173 copies spread over 105 folders.&lt;/p&gt;

&lt;p&gt;Here is where they were. A key can be in more than one place, so the numbers add up to more than 179.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Where&lt;/th&gt;
&lt;th&gt;Keys with a copy there&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Coding agent folders (&lt;code&gt;~/.claude&lt;/code&gt;, &lt;code&gt;~/.codex&lt;/code&gt;, &lt;code&gt;~/.cursor&lt;/code&gt;, &lt;code&gt;.mcp.json&lt;/code&gt;...)&lt;/td&gt;
&lt;td&gt;119&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Other files (notes, configs, logs)&lt;/td&gt;
&lt;td&gt;53&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;.env&lt;/code&gt; files&lt;/td&gt;
&lt;td&gt;32&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Source code&lt;/td&gt;
&lt;td&gt;22&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shell history&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;And 16 of the keys sat in files that git tracks.&lt;/p&gt;

&lt;p&gt;The agent folders were the surprise. Of those 119 keys, 115 had a copy in Claude Code's session transcripts under &lt;code&gt;~/.claude/projects&lt;/code&gt;. Five were in other files under &lt;code&gt;~/.claude&lt;/code&gt;, two in &lt;code&gt;~/.codex&lt;/code&gt; and two in &lt;code&gt;.gemini&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why agent folders fill up with keys
&lt;/h2&gt;

&lt;p&gt;A coding agent keeps a record of its sessions. Claude Code's docs say it stores session transcripts "locally in plaintext under &lt;code&gt;~/.claude/projects/&lt;/code&gt; for 30 days by default". Transcripts from Claude Desktop and Cowork sessions are exempt from that 30-day limit by default.&lt;/p&gt;

&lt;p&gt;A transcript holds what the agent read and what its commands printed. So a key ends up there when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the agent reads a &lt;code&gt;.env&lt;/code&gt; file to debug something&lt;/li&gt;
&lt;li&gt;a command prints the environment, like &lt;code&gt;env&lt;/code&gt; or &lt;code&gt;printenv&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;a failing &lt;code&gt;curl -v&lt;/code&gt; or an HTTP client logs the &lt;code&gt;Authorization&lt;/code&gt; header&lt;/li&gt;
&lt;li&gt;you paste a key into the chat, or into a config the agent manages, like an MCP server's &lt;code&gt;env&lt;/code&gt; block&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of this is a bug. The agent did what it was asked, and the record kept the key.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check your own machine in five minutes
&lt;/h2&gt;

&lt;p&gt;Count the files in agent folders that hold something shaped like a key. This prints file counts, not keys:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;grep -rlE &lt;span class="s1"&gt;'sk-(proj|ant)-[A-Za-z0-9_-]{20}|ghp_[A-Za-z0-9]{36}|AKIA[0-9A-Z]{16}'&lt;/span&gt; ~/.claude ~/.codex ~/.cursor 2&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null &lt;span class="o"&gt;|&lt;/span&gt; wc -l
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a proper scan with hundreds of rules, point gitleaks at the folder:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gitleaks dir ~/.claude --redact
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;--redact&lt;/code&gt; keeps the keys out of the output.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;1. Rotate anything real.&lt;/strong&gt; A key that sat in a transcript, a synced folder or a git-tracked file has to be treated as leaked. Deleting the file doesn't un-leak it. Make a new key at the provider and revoke the old one.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Shorten how long transcripts live.&lt;/strong&gt; Set &lt;code&gt;cleanupPeriodDays&lt;/code&gt; in &lt;code&gt;~/.claude/settings.json&lt;/code&gt; to fewer days if you don't resume old sessions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Add deny rules, and know where they stop.&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"permissions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"deny"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"Read(./.env)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Read(./.env.*)"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Per Claude Code's permission docs, these rules cover its own file tools and the shell commands it recognizes, like &lt;code&gt;cat&lt;/code&gt;, &lt;code&gt;head&lt;/code&gt;, &lt;code&gt;tail&lt;/code&gt; and &lt;code&gt;sed&lt;/code&gt;. They don't cover a command that reads without naming the file, like &lt;code&gt;grep -r&lt;/code&gt; from the project root, or a script that opens the file itself. So &lt;code&gt;node -e 'require("dotenv").config(); console.log(process.env)'&lt;/code&gt; still prints everything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Don't start the agent from a shell with keys exported.&lt;/strong&gt; Every command the agent runs inherits that environment, and one &lt;code&gt;env&lt;/code&gt; puts it all in the transcript.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Keep the value out of files.&lt;/strong&gt; If a &lt;code&gt;.env&lt;/code&gt; file holds a reference instead of the key, a transcript that reads the file gets the reference. The real value goes to your app at run time. &lt;code&gt;op run&lt;/code&gt; (1Password) and &lt;code&gt;doppler run&lt;/code&gt; work this way, and dotenvx keeps the values encrypted in the file instead. The limit: the process you start still has the key, and so does anything it spawns, including an agent.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Use short-lived, scoped keys with spend limits&lt;/strong&gt; wherever the provider allows it. A leaked key that expired or can only spend $5 is a small problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Disclosure
&lt;/h2&gt;

&lt;p&gt;The scanner I used is &lt;code&gt;kj&lt;/code&gt;, part of KeyJar, which I'm building. It finds keys like this, keeps them in a local encrypted vault, and swaps &lt;code&gt;.env&lt;/code&gt; values for &lt;code&gt;kj://&lt;/code&gt; references. The scan is free and changes nothing. Everything above works without it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your turn
&lt;/h2&gt;

&lt;p&gt;If you run the grep or gitleaks on your own agent folders, I'd like to know: did your numbers look like mine?&lt;/p&gt;




&lt;p&gt;*I wrote this with help from Claude. The numbers come from a scan of my own laptop, and the quotes come from the Claude Code docs.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>webdev</category>
      <category>productivity</category>
    </item>
    <item>
      <title>I built a "Linktree for AI" because keeping up with tools is impossible</title>
      <dc:creator>Keshav Melnad</dc:creator>
      <pubDate>Thu, 01 Jan 2026 18:33:00 +0000</pubDate>
      <link>https://dev.to/ksmelnad/i-built-a-linktree-for-ai-because-keeping-up-with-tools-is-impossible-5gnn</link>
      <guid>https://dev.to/ksmelnad/i-built-a-linktree-for-ai-because-keeping-up-with-tools-is-impossible-5gnn</guid>
      <description>&lt;p&gt;&lt;strong&gt;Happy New Year, devs!&lt;/strong&gt; 🎉&lt;/p&gt;

&lt;p&gt;Let's be real for a second. How many AI tools did you try in 2025? And more importantly... how many of them can you actually remember the name of right now?&lt;/p&gt;

&lt;p&gt;If you're like me, your browser bookmarks are a graveyard of "cool AI thing I might use later," and your mental RAM is maxed out trying to remember if you preferred &lt;em&gt;Claude&lt;/em&gt; or &lt;em&gt;ChatGPT&lt;/em&gt; for refactoring React components, or which image generator was the good one for vector assets.&lt;/p&gt;

&lt;p&gt;We are living in the "AI Era," but our way of organizing these tools is stuck in the Web 1.0 era.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Problem: Tool Fatigue is Real 😫
&lt;/h3&gt;

&lt;p&gt;I realized I had a problem when a junior dev asked me, &lt;em&gt;"What's your AI stack for coding?"&lt;/em&gt; and I had to spend 15 minutes digging through history and Slack messages to give him a coherent answer.&lt;/p&gt;

&lt;p&gt;We have a &lt;code&gt;package.json&lt;/code&gt; for our code dependencies. Why don't we have something similar for our &lt;strong&gt;AI dependencies&lt;/strong&gt;?&lt;/p&gt;

&lt;p&gt;I wanted a place where I could:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;Showcase my "AI Identity":&lt;/strong&gt; A single public page that says, &lt;em&gt;"This is what I use to build cool stuff."&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Group tools meaningfully:&lt;/strong&gt; My "Coding Stack" is different from my "Content Creation Stack."&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Discover what others are using:&lt;/strong&gt; I want to see what the 10x devs are using without asking them every time.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;So, I spent my holidays building it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Introducing stk.bio 🚀
&lt;/h3&gt;

&lt;p&gt;Think of &lt;strong&gt;&lt;a href="https://stk.bio" rel="noopener noreferrer"&gt;stk.bio&lt;/a&gt;&lt;/strong&gt; as Linktree, but completely re-engineered for the AI ecosystem.&lt;/p&gt;

&lt;p&gt;It’s an open platform where you can curate, organize, and share your AI tool stacks.&lt;/p&gt;

&lt;h4&gt;
  
  
  🛠️ What it actually does:
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;The "AI Identity" Page:&lt;/strong&gt; You get a dedicated &lt;code&gt;stk.bio/username&lt;/code&gt;. This is your new home on the internet for your AI workflow. Put it in your Twitter/GitHub bio.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Built-in Library:&lt;/strong&gt; I’ve indexed &lt;strong&gt;1000s of AI tools&lt;/strong&gt;. You don't have to manually upload logos or type descriptions. Just search "Perplexity" or "Cursor" and boom—it’s in your stack.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Beautiful "Stacks":&lt;/strong&gt; create collections like &lt;em&gt;"My VS Code AI Setup"&lt;/em&gt; or &lt;em&gt;"Design Automation"&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Themes that don't suck:&lt;/strong&gt; I know we're devs, not designers. I built in dynamic themes (gradients, glassmorphism) so your stacks look pro immediately.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Why I'm posting on Dev.to
&lt;/h3&gt;

&lt;p&gt;I built this &lt;em&gt;for&lt;/em&gt; us. I know "Link-in-bio" tools are a dime a dozen, but none of them treat AI tools as first-class citizens. They treat them like just another URL.&lt;/p&gt;

&lt;p&gt;On &lt;strong&gt;stk.bio&lt;/strong&gt;, tools are entities. We track what's popular, trending, and essential.&lt;/p&gt;

&lt;h3&gt;
  
  
  I need your feedback! 🤝
&lt;/h3&gt;

&lt;p&gt;I just pushed this live for the New Year. It's an MVP. It might have bugs. But I really believe it solves a specific pain point we're all feeling right now.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I’d love for you to:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Claim your handle (before the good ones are gone! 😉).&lt;/li&gt;
&lt;li&gt; Create your first stack.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;Roast it here.&lt;/strong&gt; Tell me what features you need. API integrations? Embeddable widgets for your portfolio?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Let's make 2026 the year we actually organized our AI workflow.&lt;/p&gt;

&lt;p&gt;Check it out: &lt;strong&gt;&lt;a href="https://stk.bio" rel="noopener noreferrer"&gt;stk.bio&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Happy coding!&lt;br&gt;
Keshav&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>productivity</category>
      <category>showdev</category>
    </item>
    <item>
      <title>I Kept Forgetting Basic Syntax, So I Built an App to Train My Coding Muscle Memory</title>
      <dc:creator>Keshav Melnad</dc:creator>
      <pubDate>Mon, 17 Nov 2025 19:31:19 +0000</pubDate>
      <link>https://dev.to/ksmelnad/i-kept-forgetting-basic-syntax-so-i-built-an-app-to-train-my-coding-muscle-memory-p0</link>
      <guid>https://dev.to/ksmelnad/i-kept-forgetting-basic-syntax-so-i-built-an-app-to-train-my-coding-muscle-memory-p0</guid>
      <description>&lt;p&gt;Hey everyone, I need to confess something I used to be a bit embarrassed about: I’m a full-stack developer, but I was constantly Googling basic syntax. Things like JavaScript's &lt;code&gt;.reduce()&lt;/code&gt; method, Python list comprehensions, or even CSS Flexbox properties. I knew the concepts, but my fingers just couldn't seem to remember the code. In this age of AI, where we can generate entire applications with a single prompt, it felt almost ridiculous to be stuck on these fundamentals. It turns out, I wasn't alone. After sharing my frustration on Reddit and X, I realized tons of developers—from juniors to seniors—felt the same way.&lt;/p&gt;

&lt;p&gt;That's when I decided to build a solution for myself, and for all of us. I created &lt;strong&gt;CodeRepeat&lt;/strong&gt; (&lt;a href="//coderepeat.dev"&gt;coderepeat.dev&lt;/a&gt;), a web app designed to turn coding knowledge into pure muscle memory. The idea is simple and heavily inspired by learning tools like Anki. It uses a Spaced Repetition System (SRS) to help you practice typing out code snippets. You create a "deck" (like "Python Fundamentals" or "Webdev Fundamentals"), and the app presents you with code to type. Based on how difficult you rate each snippet, the SRS algorithm schedules it for practice again in the future—sooner for the tough ones, later for the easy ones. It’s not about learning from scratch; it’s about making the code you already know flow effortlessly.&lt;/p&gt;

&lt;p&gt;I’ve been the first and most dedicated user of CodeRepeat for a few weeks now, and the change has been incredible. I spend way less time breaking my focus to look up syntax I should know by heart. My coding feels more fluid, and I can stay in the zone for longer, which has been a massive boost to my productivity and confidence. I built this because I was tired of feeling like my own brain was a bottleneck, and it has genuinely helped me become a more efficient developer.&lt;/p&gt;

&lt;p&gt;Now, I'm sharing it with the community because I believe it can help you too. I would be incredibly grateful if you could give &lt;a href="https://coderepeat.dev" rel="noopener noreferrer"&gt;CodeRepeat&lt;/a&gt; a try and let me know what you think. The app is free to get started with, so you can see if it works for you. I'm looking for honest, constructive feedback to make it better. What do you find yourself constantly looking up? Do you think a tool like this could help you? Let me know in the comments below!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>startup</category>
      <category>coding</category>
    </item>
  </channel>
</rss>
