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. iQOO Pad 5c With a 10,000mAh Battery Debuts at This Price
  2. Two Xiaomi Smartphones Visit China's 3C Database, May Launch Soon
  3. Redmi Unveils Its First Over-Ear ANC Headphones With 72-Hour Battery Life
  4. Samsung Galaxy M47 5G Price in India Revealed Ahead of Amazon Prime Day
  5. Sony Alpha 7R VI Full-Frame Mirrorless Camera Debuts in India: See Price
  1. Vivo Pad 5c Launched With Snapdragon 8s Gen 3 Chipset, 10,000mAh Battery: Price, Specifications
  2. Marshall Milton ANC Headphones Launched in India With Adaptive ANC, Up to 80-Hour Battery Life: Price, Features
  3. Two Xiaomi Smartphones, New Honor Handset Visit 3C Certification Database Ahead of Anticipated Debut: Report
  4. Honor 600 Elite Listed on EMVCo Database Alongside Honor 600s and 600 Lite S Models, Could Launch Soon
  5. Nothing Phone 4b RCB Edition Variant Teased; Could Launch in India in Four Storage Variants
  6. Motorola Edge 70 Max Spotted on HDR10+ Certification Site; WPC Listing Reveals Charging Details
  7. Android 17 Introduces New Lock Screen Changes That Severely Limit PIN Guessing Attempts
  8. Google Expands Gemini Spark to macOS for AI Desktop Automation Across Files, Apps
  9. Anthropic Introduces Claude Sonnet 5 With Enhanced Agentic Capabilities; Confirms Return of Claude Mythos 5, Fable 5
  10. Instagram Rolls Out Spin View, New Story Creation Tools for Ray-Ban Meta, Oakley Meta Smart Glasses
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2026. All rights reserved.