<?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: Surya Sourav</title>
    <description>The latest articles on DEV Community by Surya Sourav (@omtrimoco).</description>
    <link>https://dev.to/omtrimoco</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%2F1401171%2F1a25cb2d-4963-4330-b03d-74bccdd9551a.jpg</url>
      <title>DEV Community: Surya Sourav</title>
      <link>https://dev.to/omtrimoco</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/omtrimoco"/>
    <language>en</language>
    <item>
      <title>Claude Code CLI Source Code</title>
      <dc:creator>Surya Sourav</dc:creator>
      <pubDate>Tue, 31 Mar 2026 16:32:18 +0000</pubDate>
      <link>https://dev.to/omtrimoco/claude-code-cli-source-code-4cnd</link>
      <guid>https://dev.to/omtrimoco/claude-code-cli-source-code-4cnd</guid>
      <description>&lt;p&gt;Just for educational Purpose , i am sharing the backup Source code of Claude-Code along with documentation : &lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/Surya-sourav" rel="noopener noreferrer"&gt;
        Surya-sourav
      &lt;/a&gt; / &lt;a href="https://github.com/Surya-sourav/xlaude-xode" rel="noopener noreferrer"&gt;
        xlaude-xode
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Xlaude Xode — Leaked Source (2026-03-31)&lt;/h1&gt;
&lt;/div&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;On March 31, 2026, the full source code of Anthropic's Claude Code CLI was leaked&lt;/strong&gt; via a &lt;code&gt;.map&lt;/code&gt; file exposed in their npm registry.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;How It Leaked&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;&lt;a href="https://x.com/Fried_rice" rel="nofollow noopener noreferrer"&gt;Chaofan Shou (@Fried_rice)&lt;/a&gt; discovered the leak and posted it publicly:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;"Claude code source code has been leaked via a map file in their npm registry!"&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;— &lt;a href="https://x.com/Fried_rice/status/2038894956459290963" rel="nofollow noopener noreferrer"&gt;@Fried_rice, March 31, 2026&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The source map file in the published npm package contained a reference to the full, unobfuscated TypeScript source, which was downloadable as a zip archive from Anthropic's R2 storage bucket.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Overview&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;Claude Code is Anthropic's official CLI tool that lets you interact with Claude directly from the terminal to perform software engineering tasks — editing files, running commands, searching codebases, managing git workflows, and more.&lt;/p&gt;
&lt;p&gt;This repository contains the leaked &lt;code&gt;src/&lt;/code&gt; directory.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Leaked on&lt;/strong&gt;: 2026-03-31&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Language&lt;/strong&gt;: TypeScript&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Runtime&lt;/strong&gt;: Bun&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Terminal UI&lt;/strong&gt;: React +…&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/Surya-sourav/xlaude-xode" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


</description>
      <category>claudecode</category>
      <category>ai</category>
      <category>security</category>
    </item>
    <item>
      <title>Built a CLI that gives your codebase a memory</title>
      <dc:creator>Surya Sourav</dc:creator>
      <pubDate>Sun, 22 Mar 2026 08:31:06 +0000</pubDate>
      <link>https://dev.to/omtrimoco/built-a-cli-that-gives-your-codebase-a-memory-4b0o</link>
      <guid>https://dev.to/omtrimoco/built-a-cli-that-gives-your-codebase-a-memory-4b0o</guid>
      <description>&lt;p&gt;Two weeks ago I was debugging a module I had written myself.&lt;br&gt;
Sat staring at it for twenty minutes. everything was unfamiliar. The structure made no sense to me. I had to reverse-engineer my own code like a stranger had written it.&lt;br&gt;
The uncomfortable truth — an AI had written significant chunks of it, I had reviewed, merged, and completely moved on. Two weeks later it was an alien to me !&lt;/p&gt;

&lt;p&gt;I kept thinking about this. We talk constantly about LLMs having a context window like it is some fundamental technical limitation. We never apply the same framing to ourselves.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Developers have a context window too. AI-assisted development is just filling it faster than any human brain can track.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;The problem with existing solutions&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
The obvious answer is "write better documentation." Every team says this. No team actually does it consistently — not because developers are lazy but because documentation written as a separate task from coding immediately starts drifting from reality.&lt;br&gt;
Asking your IDE to document as it goes is worse. Cursor adds a new README for every three lines it touches. Imagine 3-4 Readme files just for an Auth module ! nobody on earth would feel enthusiastic to open ai generated docs !&lt;/p&gt;

&lt;p&gt;What I actually needed was something that treated documentation as a continuous output of development — written automatically at the one moment developers never skip.&lt;br&gt;
The commit. ( &lt;em&gt;~ Version Controlled Documentation&lt;/em&gt; ) &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;What I built&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;DevMem is an open source Go CLI that hooks into your git workflow and maintains a living knowledge base inside your repository.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;First run — crawls your entire repo and documents everything&lt;br&gt;
devmem init&lt;br&gt;
After every commit — patches only what changed&lt;br&gt;
devmem capture&lt;br&gt;
Ask your codebase anything&lt;br&gt;
devmem query "how does the auth module work?"&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;The thing I did not expect&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The .devmem/ folder ends up being genuinely useful context for AI coding tools.&lt;br&gt;
When Cursor or Copilot has access to accurate, current, structured documentation of every module — what it does, what its API surface is, what it depends on, what changed recently — it becomes meaningfully better at helping you. It stops making assumptions about your architecture because it is reading your actual architecture.&lt;br&gt;
One knowledge base. Useful for your teammates and your AI tools simultaneously. That was not the original goal but it might be the most valuable outcome.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;_&lt;br&gt;
Honest rough edges_&lt;/strong&gt;&lt;br&gt;
Module detection uses directory heuristics. It works well on standard Go, Node, and Python project layouts. Unconventional structures need a small manual config to define module boundaries explicitly — the heuristics will miss or misgroup things.&lt;br&gt;
Large messy refactor commits that touch many modules simultaneously stress-test the capture prompt in ways I have not fully solved. The classification is harder and the patches are less surgical than I want them to be.&lt;br&gt;
The query command is only as good as your documentation is — which is only as good as your captures are. If you skip captures for two weeks the query answers drift.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;_Stack&lt;br&gt;
_&lt;/strong&gt;&lt;br&gt;
Go + Cobra&lt;br&gt;
Anthropic API (Claude)&lt;br&gt;
Single binary — no runtime dependencies&lt;br&gt;
go install, direct download&lt;br&gt;
MIT licensed&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/surya-sourav/devmem" rel="noopener noreferrer"&gt;https://github.com/surya-sourav/devmem&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://fun-tomato-aiuks1hrge.edgeone.app/" rel="noopener noreferrer"&gt;https://fun-tomato-aiuks1hrge.edgeone.app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Demo : &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%2Fxiw2e4r3qadbizzjuv9y.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%2Fxiw2e4r3qadbizzjuv9y.png" alt="Commands List of CLI " width="800" height="335"&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%2Frovmi12b2d0seqq2ults.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%2Frovmi12b2d0seqq2ults.png" alt="DevMem in Action " width="576" height="512"&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%2F0his7euu7ayvhylnx5tp.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%2F0his7euu7ayvhylnx5tp.png" alt="Docs Arrangement Within the Root Project " width="475" height="478"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Built this because I was tired of being a stranger in my own codebase. Curious whether anyone else has felt the same way and what approaches you have tried.&lt;br&gt;
Brutal feedback welcome — especially on the module detection and the query command. Those are the two places where real-world codebases will stress-test the assumptions hardest.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>ai</category>
      <category>productivity</category>
      <category>go</category>
    </item>
  </channel>
</rss>
