Anthropic’s Claude Code Update Leaks Source Code, Reveals Always-on Agent and Memory Optimisation: Report

A file containing part of the source code appears to have been leaked with the recent Claude Code 2.1.88 update.

Advertisement
Written by Akash Dutta, Edited by Ketan Pratap | Updated: 2 April 2026 13:40 IST
Highlights
  • The file seemingly leaked over 5,12,000 lines of code
  • Anthropic is said to be using a novel method of memory optimisation
  • Evidence of an always-on agent dubbed Kairos was also found in the code

A hidden “buddy” system that adds a Tamagotchi-style terminal pet in Claude Code was also found

Photo Credit: Unsplash/Goran Ivos

Anthropic might have accidentally leaked part of its source code for Claude Code. As per reports and social media posts from users, the information was leaked with the latest Claude Code 2.1.88 update, revealing critical details about the product's architecture, memory utilisation, and under-development features. The reported accident could also reveal the company's critical source code to rival companies that might become aware of these implementations, and bad actors who might find ways to exploit the system.

Claude Code Source Code Reportedly Leaked

On Tuesday, Anthropic released the Claude Code 2.1.88 update, which introduced multiple command-line interface (CLI) and system prompt changes. However, soon after the update was released, several X (formerly known as Twitter) began posting about the package containing a map file in the npm registry, a package manager for JavaScript. The file is said to contain a part of the source code of the platform.

Advertisement

Ars Technica and VentureBeat separately reported that the file containing code, which contains more than 5,12,000 lines of TypeScript code, was quickly mirrored across GitHub and was analysed by developers. It reveals the inner workings of how the agentic coding platform works, as well as several hidden features.

Notably, VentureBeat stated that the leak was confirmed by an Anthropic spokesperson in an emailed statement, which said, “Earlier today, a Claude Code release included some internal source code. No sensitive customer data or credentials were involved or exposed. This was a release packaging issue caused by human error, not a security breach. We're rolling out measures to prevent this from happening again.”

Advertisement

The most revealing information is Anthropic's memory architecture, which is aimed at reducing the errors in output and instances of hallucinations. The company, reportedly, ditched the retrieval system where every piece of data is stored for a more complex and better-organised three-layer memory architecture, which is said to include a self-healing element to it.

Put simply, the foundation layer only stores locations instead of data. These locations are then accessed by agents who procure topic files based on the prompts. The report claims that a strict discipline is maintained, which lets agents update the index only after a successful file write. This means whenever there is a failed attempt, the file is simply not written, avoiding the chance of bad data contamination.

Advertisement

Another interesting revelation is Kairos, a feature that is said to be mentioned more than 150 times in the leaked source code. It is said to be an agentic operation that allows Claude Code to act as an always-on agent. The publication claims that the agent uses a process dubbed “autoDream,” which performs memory consolidation whenever the user is idle. It essentially performs a memory cleanse, merging disparate observations, removing logical contradictions, and converting vague insights into facts.

Finally, a Tamagotchi-style buddy system was also found within the code base. This appears to be a future feature, showing evidence for a terminal pet that can react to the user prompts and the output shared by Claude Code. Able to react with snippets mentioning “chaos” and “snark,” it is more of a quality-of-life change that brings more interactivity and personality to the platform.

Advertisement

Wider risk to Anthropic is still being assessed. The memory optimisation and the always-on agent are unique internal mechanisms that give Claude Code the edge against rivals when it comes to coding accuracy and quality. With rivals being aware, it could lead to platforms, such as OpenAI's Codex and Google's Antigravity IDE, implementing similar mechanisms.

Worrying still is the risk of this information reaching bad actors and hackers, who might devise specific tools and mechanisms to target the vulnerabilities in Claude Code. Anthropic has reportedly highlighted that it is rolling out measures to prevent such misuse.

 

Get your daily dose of tech news, reviews, and insights, in under 80 characters on Gadgets 360 Turbo. Connect with fellow tech lovers on our Forum. Follow us on X, Facebook, WhatsApp, Threads and Google News for instant updates. Catch all the action on our YouTube channel.

Advertisement

Related Stories

Popular Mobile Brands
  1. Realme 16 5G Launched in India With Selfie Mirror Feature: Check Price
  2. Vivo V70 FE Launched in India With 7,000mAh Battery, 200-Megapixel Main Camera
  3. PS Plus Monthly Games for April Revealed
  4. Govt Spends 180 Crore to Move Lakhs of Official Email to Zoho Cloud
  5. Infinix Note 60 Pro With Active Matrix Panel to Arrive in India on This Date
  6. Redmi Note 15 SE 5G Debuts in India With a Vegan Leather Finish: See Price
  7. Anthropic's Source Code Leak Reveals Critical Details About Claude Code
  8. Meta Reportedly Warns WhatsApp Users About This Fake App Spying on Them
  9. Samsung Galaxy 'Able' Reportedly Spotted in App, May Not Be Earphones
  10. Fourth Floor Now Available for Streaming Online: What You Need to Know
  1. DoT Reportedly Extends SIM Binding Mandate Till the End of 2026
  2. Government Migrates 16.68 Lakh Official Email Accounts to Zoho Cloud, Spends Rs. 180 Crore
  3. Infinix Note 60 Pro India Launch Date Revealed; Company Teases Active Matrix Feature on Rear Panel
  4. Naughty Dog's Neil Druckmann Mentions 'Road Ahead' for the Last of Us, Teasing the Last of Us Part 3
  5. Repu Udayam 10 Gantalaku Brings a Race Against Time to Prime Video
  6. Honor X80i Launched With 7,000mAh Battery, MediaTek Dimensity 6500 Elite Chip: Price, Specifications
  7. Honor Play 80 Pro Launched With 7,000mAh Battery, 50-Megapixel Rear Camera: Price, Specifications
  8. Hong Kong Misses March Target for Stablecoin Licences, HKMA Yet to Approve Issuers
  9. Samsung Galaxy Buds 'Able' Reportedly Spotted in Development, Model Number Raises Questions
  10. Khakee Circus OTT Release Date: When and Where to Watch it Online?
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2026. All rights reserved.