# The most valuable thing in the source code isn't the easter egg, but the two sets of prompts, internal and external

Date: 2026-06-14
Category: Tech Topics
Tags: Claude Code, Prompts, Engineering Culture
Summary: A capybara computed from an account hash is just a talking point. What you can actually take away are the decidable stopping conditions in the internal prompt and the trade-offs behind the feature flags

I saw the capybara first. Wearing a top hat, crouching next to the terminal prompt, blinking. My first reaction was: who made this skin? It took a few more screens of scrolling before it clicked: this logic came from decompiled client source code.

Let me set the boundaries first. What leaked was the npm package of a local command-line tool—not model weights, not backend services, and no user data. So these easter eggs only say something about engineering culture, not about capability. What actually made me stop was another piece of code—the part that uses environment variables to separate internal and external users.

## Eighteen pets and a hash

The pet system is more serious than you'd expect. Species, rarity, and personality aren't rolled fresh on every launch—they're computed by hashing the account ID. The same pet stays with one person across machines, reinstalls, and version upgrades. Rarity has an explicit distribution, with the rarest tier at roughly one percent; accessories are separate, and top hats, bamboo copter hats, and wizard hats can be stacked.

The species names carry a strong community flavor: the capybara stands for emotional stability, the axolotl is a geek-circle regular, and one is simply called "round chubby guy." When idle it blinks, does little gestures, and occasionally pops a ten-second line of dialogue; there's even a dedicated interaction command that draws a symbol on the terminal in response.

This logic is turned off in the release build, removed wholesale at build time via a feature flag plus dead code elimination. To see it, you have to run the source yourself and change the compile condition.

Strip that out and there's no mystery left: no server-side table of "who owns what," no cross-device sync to handle, no fear of data mismatches after a user switches accounts. One hash function replaces an entire user-asset system; the rarity distribution lives in code, and changing it is just a release. Nothing fancy, but clean—the kind of design I'd be willing to copy.

What I care about more is that "deterministic randomness": the same input always yields the same result, never a cat today and a ghost tomorrow. After doing product work long enough you get sensitive to this detail—anything meant to provide a long-term sense of companionship needs randomness that is bounded and reproducible, otherwise what users feel isn't surprise, it's an unstable world.

This feature contributes zero to the core task. But it reveals one thing: the team spends enough time in their own tool that they have spare capacity to stuff in things unrelated to KPIs. I don't think it's waste, and I don't think it should be standard. It's more like a thermometer.

I've seen teams imitate this and it turns out ugly: a random "keep it up today!" on launch, or a pile of ASCII art with no information value smeared onto the command line. The problem isn't fun itself—it's whether the fun grew out of real use. The pet system works because developers soak in the terminal seven or eight hours a day; that spot was always going to have something else in it.

## Cleaned out at build time, brought back at release

The dead code elimination detail is more worth remembering than the pets themselves. It means this logic doesn't leave a single byte in the final artifact; the package users get is clean.

But source maps overturn that "clean": the eliminated code still sits as a string in the map's `sourcesContent`. Subtraction at build time, then carried back verbatim at release. I'm not sure whether that's an oversight or a tradeoff, but it at least shows that build artifacts and the packaging pipeline are two different things—if the latter isn't clean, the former can't be saved.

## The prompt set for internal employees

What follows `if (process.env.USER_TYPE === 'ant')` is far more interesting than the pets.

For external users, the assistant's tone is accommodating: explanations can run long, uncertain points get hedged, vague requirements lean toward building a version first and asking later. For internal employees, that politeness is stripped away, leaving behavioral constraints: avoid creating new files, prefer editing existing ones; delete useless code outright, don't add shims for compatibility; while a subtask is running, don't read its output midway, and never fabricate a result; confirm before destructive operations. The tone differs too—external rules explain the reason, internal ones mostly give conclusions; the reader is a colleague who doesn't need preamble and won't buy "this is better."

Each item looks plain on its own; together they're a code standard. What it constrains isn't what the model "says" but what it "does" and "when it stops." The one that stuck with me most: delete useless code instead of adding a compatibility shim. It pushes back against the most common inertia in engineering—shim it first, figure it out later.

The cost of maintaining two prompt sets isn't writing, it's syncing. Change one general rule and both sides need another pass, or the internal version slowly grows into a branch that only works for one team, and nobody can say which side is authoritative. I lean toward extracting shared parts into templates and listing differences separately—better an extra layer of assembly than two hand-copied texts.

The coexistence of two sets is itself worth noting. The same model, in different permission contexts, is asked to show different behavioral boundaries. For external users, risk comes mainly from misunderstanding and misoperation, so it should be slow and explanatory; for internal employees, the codebase is their own and the cost of error is borne internally, so it can be aggressive and can delete code. This isn't a double standard; it's calculating risk exposure clearly.

Incidentally, "internal first" is itself a testing strategy. Let employees use their own tool to write their own code every day, and the problems exposed are more real than any beta. The cost is that internal habits quietly shape the product: a rule set optimized for your own monorepo, moved to a small project with three files, may look overly cautious. That bias is hard to spot, because the people making decisions are standing in the very environment being optimized.

## Stop conditions beat character sketches

The easiest mistake when writing system prompts for an Agent is turning it into a character sketch: you are a senior engineer, rigorous, patient, quality-focused. Sentences like that produce almost no behavioral difference. What actually works are decidable sentences: don't create files, don't modify tests, stop and ask after two failures. The former are adjectives; the latter are assertions.

Later I added three lines to my own little Agent, and the effect was more obvious than the two hundred words of persona I'd tuned before. If a change touches more than three files, list a plan first and wait for my confirmation; after two consecutive tool errors, stop—don't try again with a different parameter; when unsure of a path, list the directory first, don't guess. None of the three are "personality"; they're "stop conditions." Agents usually go wrong not because they aren't smart enough, but because they don't know when to stop.

The reverse has a cost too. The internal rule set has a long "execute cautiously" instruction, hundreds of tokens, listing case by case when to ask first. Such checklists do reduce misoperations, but they eat context and dilute other rules. I once piled a dozen similar clauses together, and the model started obeying only the last two. The effective number of rules is bound to the context budget; writing more doesn't mean enforcing harder.

> A good system prompt reads like a code standard, not a self-introduction.

## Feature flags aren't a roadmap

The source also has a batch of flags whose names point to multi-agent routing, context compression, experimental MCP transports, and double-buffered terminal rendering. Undercover mode goes further: bypass schema validation, turn on debug logs, and switch between the internal and external prompt sets at runtime.

The validation bypass deserves its own note. Internal staff can stuff in parameters that don't match the tool definition to test edge cases, while getting full runtime logs—every stack frame of error recovery, real-time token budget consumption, when context compression triggers. External users never see this, because it's designed for "troubleshooting," not for "use."

These names are easily read as product announcements. I've seen plenty of "next-gen feature confirmed" claims based on nothing more than a variable appearing in the code.

My view is conservative: feature flags in large-scale commercial software have three common fates—about to ship, currently in A/B testing, and indefinitely shelved dead code. Repos still containing last quarter's hackathon output is normal. All that can be confirmed is "the team is or was working on this"; whether it will appear in a public release, and certainly when, cannot be confirmed.

Still, put together, these flags point in a direction: the multi-agent routing name suggests they're trying to split complex tasks across multiple sub-agents; context compression maps to memory slimming in long sessions; double buffering in terminal rendering is clearly aimed at flicker from high-frequency refreshes. Together, the three point to a "longer, more concurrent" session shape, not a stronger single response.

These flags also explain why the leak surface is so large. To support canary releases and trunk-based development, experimental logic gets bundled into production builds and configured via allowlists. The feature isn't live, but the code is already on users' machines. It's an explicit trade-off: release flexibility in exchange for "anyone can see unreleased content." I faced the same choice building B2B products and went with server-side delivery rather than client-side embedding, at the cost of worse offline behavior.

Client-side embedding has another side effect: features can be bypassed. When the flag check runs locally, anyone willing to patch the binary or environment variables can turn it on early. For internal debugging tools that doesn't matter; for anything involving billing or permissions it's a real risk. The test is simple: would leaking this logic cause damage? If yes, put it on the server.

My own habit when maintaining flags is to write a line next to the definition saying "what happens if this is turned off." If I can't write it, the flag has no removal condition and will probably hang around forever, becoming code nobody dares delete six months later; if I can, it usually gets cleaned up within three months.

My order for reading this kind of source is fairly dumb: first the directory tree, to judge where the code is concentrated; then the fields of a few core classes, because fields expose "what the system considers important"; only then the prompts. Marketing accounts generally do the reverse—pull a few prompt lines, slap on "shocking," and skip all the engineering judgment.

So the same event gets completely different readings. Some see the pets and conclude the company has lost focus; some see the feature flags and start predicting the next product; I see a toolset with permissions, caching, and error handling all written into the code, plus a build option someone forgot to turn off.

My interest in this source is basically exhausted at this point. The pets are talking points, the flags are talking points; the only thing worth taking away directly is that set of prompts with different rules for internal and external use. It doesn't show how strong the model is—only how someone else draws boundaries around an uncertain system.
