---
title: "Leaked Claude Code Shows Anthropic Building Mysterious “Tamagotchi” Feature Into It"
description: "Internet sleuths found a \"Tamagotchi\" feature buried in leaked source code of Anthropic's Claude Code chatbot."
date: "2026-04-01"
modified: "2026-04-01"
authors:
  - name: "Frank Landymore"
    job_title: "Contributing Writer"
    link: "https://futurism.com/authors/flandymore"
url: "https://futurism.com/artificial-intelligence/leaked-claude-code-tamagotchi"
categories:
  - "Anthropic"
  - "Artificial Intelligence"
---

# Leaked Claude Code Shows Anthropic Building Mysterious “Tamagotchi” Feature Into It

![A close-up of a hand holding a red digital pet keychain toy with a small screen in the center. The toy has a clock-like design with numbers 12, 3, 6, and 9 around the screen and small arrows pointing outward. It also has three blue buttons below the screen and a silver ball chain attached at the top. The hand is wearing a teal glove.](<https://futurism.com/wp-content/uploads/2026/04/leaked-claude-code-tamagotchi.jpg>)
*Illustration by Tag Hartman-Simkins / Futurism. Source: Chesnot / Getty Images*

After Anthropic [accidentally leaked](<https://arstechnica.com/ai/2026/03/entire-claude-code-cli-source-code-leaks-thanks-to-exposed-map-file/>) the source code to its blockbuster Claude chatbot, netizens swiftly pounced to start plowing through its more than 512,000 lines of code — and have uncovered numerous curiosities sprinkled throughout.

In an [extensive thread](<https://www.reddit.com/r/ClaudeAI/comments/1s8lkkm/i_dug_through_claude_codes_leaked_source_and/>) in the r/ClaudeAI subreddit, one user said they found a "Tamagotchi"-like feature buried in the code, referring to the handheld digital pets that you need to keep checking in on to keep them alive.

"There's an entire pet system called /buddy. When you type it, you hatch a unique ascii companion based on your user id," the user claimed. "The pet sits beside your input box and reacts to your coding."

The user said they found 18 different pet species, including a duck, dragon, capybara, and a so-called "chonk," along with a rarity system resembling those found in Gacha games, which assigns a user a pet based on chance.

Will Tamagotchis inside Claude be a mainstay? Likely not: an included string reading "friend-2026-401," the user found, almost certainly means that Anthropic intended the feature to be an April Fools one off.

That wasn't the only item of note internet sleuths found. They also [uncovered a feature](<https://x.com/itsolelehmann/status/2039018963611627545?s=20>) called "kairos" that purportedly can serve as an always-on AI agent that constantly runs in the background and can take actions on your behalf without you having to ask. It can even send push notifications to your phone or desktop to get your attention, users who viewed the code claimed.

Others said they [found](<https://x.com/vedolos/status/2039028274047893798?s=20>) an "undercover" mode to mask the fact that Claude is an AI when contributing code in public repositories, as well as a [mood tracking feature](<https://x.com/vedolos/status/2039196124645560799?s=20>) that measures a coder's "frustration" levels based on their messages and clues like swear words. Someone also unearthed a message one of Anthropic's coders left in, in which they admit that "memoization here increases complexity by a lot, and im not sure it really improves performance."

In all, there's no smoking guns here, but the leak provides an intriguing peek behind the curtain — as well as easy fodder for any competitors looking to reverse engineer the company's tech.

For Anthropic, it's undoubtedly an embarrassing blunder. The code base appears to have been leaked after what's known as a source map file was accidentally left in in a public release of the company's 2.1.88 of Claude Code npm package. A map file links bundled code back to the original source, [*The Register* explains](<https://www.theregister.com/2026/03/31/anthropic_claude_code_source_code/>), and one resourceful programmer used it to find where Claude's source code is stored, [backing the whole thing up on GitHub](<https://github.com/DonutShinobu/claude-code-fork>).

Anthropic scrambled to get the exposed source code pulled by issuing copyright takedowns, though at this point it may already be out of the company's hands.

As to how the map filed slipped through the cracks in the first place, Anthropic officially blames "human error" and stressed it was not a "security breach."

Notably, however, the leak comes after Anthropic figures have consistently boasted about much of Claude's code is now being produced with the help of the AI itself, and [recent incidents at Amazon](<https://futurism.com/artificial-intelligence/amazon-ai-tools-business>) and a [cybersecurity blunder at Meta](<https://futurism.com/artificial-intelligence/rogue-ai-agent-triggers-emergency-at-meta>) all caused by AI models raise the possibility that Anthropic's own tool [may have played a role in this one, too](<https://futurism.com/artificial-intelligence/anthropic-development-claude-code-leak>).

**More on AI:** [*Anthropic Just Leaked Upcoming Model With “Unprecedented Cybersecurity Risks” in the Most Ironic Way Possible*](<https://futurism.com/artificial-intelligence/anthropic-step-change-new-model-claude-mythos>)

## Author
At Futurism, my work has often centered on bringing a sense of clarity and insight to complex topics ranging from the regulation of emerging technologies to the esoteric ideologies of Silicon Valley executives, while striving not to lose the poetic sense of awe inspired by often-obscure fields like astrophysics and quantum computing. I broke the story of CNET using AI to produce articles that turned out to be riddled with factual errors and plagiarism — a dam-breaking inflection point, as I've reported, that's inspired copycats and endless discourse while beguiling stakeholders ranging from tech giants to purveyors of spam around the web. My work at Futurism has been cited by publications including CBS News, the Los Angeles Times, Vice, Gizmodo, Engadget, the Verge, and Vanity Fair. I grew up in locales ranging from India to China, and now live in the exotic suburbs of Virginia. In my free time, I'm an avid reader of weird sci-fi literature, an aficionado of East Asian cinema, and, regrettably, a relapsed gamer. Allegedly, I’m working on a debut novel, currently untitled.

### Author social links  
[Bluesky](<https://bsky.app/profile/f-w-l.bsky.social>)