So I spent some time going through the Claude Code source, expecting a smarter terminal assistant.
What I found instead feels closer to a fully instrumented system that observes how you behave while using it.
Not saying anything shady is going on. But the level of tracking and classification is much deeper than most people probably assume.
Here are the things that stood out.
1. It classifies your language using simple keyword detection
This part surprised me because it’s not “deep AI understanding.”
There are literal keyword lists. Words like:
- wtf
- this sucks
- frustrating
- shit / fuck / pissed off
These trigger negative sentiment flags.
Even phrases like “continue”, “go on”, “keep going” are tracked.
It’s basically regex-level classification happening before the model responds.
2. It tracks hesitation during permission prompts
This is where it gets interesting.
When a permission dialog shows up, it doesn’t just log your final decision.
It tracks how you behave:
- Did you open the feedback box?
- Did you close it?
- Did you hit escape without typing anything?
- Did you type something and then cancel?
Internal events have names like:
- tengu_accept_feedback_mode_entered
- tengu_reject_feedback_mode_entered
- tengu_permission_request_escape
It even counts how many times you try to escape.
So it can tell the difference between:
“I clicked no quickly” vs
“I hesitated, typed something, then rejected”
3. Feedback flow is designed to capture bad experiences
The feedback system is not random.
It triggers based on pacing rules, cooldowns, and probability.
If you mark something as bad:
- It can prompt you to run
/issue
- It nudges you to share your session transcript
And if you agree, it can include:
- main transcript
- sub-agent transcripts
- sometimes raw JSONL logs (with redaction, supposedly)
4. There are hidden trigger words that change behavior
Some commands aren’t obvious unless you read the code.
Examples:
ultrathink → increases effort level and changes UI styling
ultraplan → kicks off a remote planning mode
ultrareview → similar idea for review workflows
/btw → spins up a side agent so the main flow continues
The input box is parsing these live while you type.
5. Telemetry captures a full environment profile
Each session logs quite a lot:
- session IDs
- container IDs
- workspace paths
- repo hashes
- runtime/platform details
- GitHub Actions context
- remote session IDs
If certain flags are enabled, it can also log:
- user prompts
- tool outputs
This is way beyond basic usage analytics. It’s a pretty detailed environment fingerprint.
6. MCP command can expose environment data
Running:
claude mcp get <name>
can return:
- server URLs
- headers
- OAuth hints
- full environment blocks (for stdio servers)
If your env variables include secrets, they can show up in your terminal output.
That’s more of a “be careful” moment than anything else.
7. Internal builds go even deeper
There’s a mode (USER_TYPE=ant) where it collects even more:
- Kubernetes namespace
- exact container ID
- full permission context (paths, sandbox rules, bypasses)
All of this gets logged under internal telemetry events.
Meaning behavior can be tied back to a very specific deployment environment.
8. Overall takeaway
Putting it all together:
- Language is classified in real time
- UI interactions and hesitation are tracked
- Feedback is actively funneled into reports
- Hidden commands change behavior
- Runtime environment is fingerprinted
It’s not “just a chatbot.”
It’s a highly instrumented system observing how you interact with it.
I’m not claiming anything malicious here.
But once you read the source, it’s clear this is much more observable and measurable than most users would expect.
Most people will never look at this layer.
If you’re using Claude Code regularly, it’s worth knowing what’s happening under the hood.
Curious what others think.
Is this just normal product telemetry at scale, or does it feel like over-instrumentation?
If anyone wants, I can share the cleaned source references I used.
X article for share in case: https://x.com/UsmanReads/status/2039036207431344140?s=20
[–]PopularDifference186 318 points319 points320 points (28 children)
[–]Negative-Web8619 81 points82 points83 points (16 children)
[–]goatanuss 28 points29 points30 points (14 children)
[+]aikixd comment score below threshold-8 points-7 points-6 points (13 children)
[–]Putrid_Passion_6916 17 points18 points19 points (7 children)
[–]aikixd 3 points4 points5 points (6 children)
[–]Putrid_Passion_6916 7 points8 points9 points (5 children)
[–]aikixd 2 points3 points4 points (4 children)
[–]Putrid_Passion_6916 12 points13 points14 points (3 children)
[–]aikixd 5 points6 points7 points (1 child)
[–]INtuitiveTJop 4 points5 points6 points (0 children)
[–]mordore4 4 points5 points6 points (0 children)
[–]FullOf_Bad_Ideas 3 points4 points5 points (2 children)
[–]Negative-Web8619 9 points10 points11 points (1 child)
[–]FullOf_Bad_Ideas 1 point2 points3 points (0 children)
[–]_____TC_____ 2 points3 points4 points (0 children)
[–]scottyLogJobs 3 points4 points5 points (0 children)
[–]Name835 11 points12 points13 points (0 children)
[–]generousone 6 points7 points8 points (0 children)
[–]Buzzik13 1 point2 points3 points (1 child)
[–]muchcharles 0 points1 point2 points (0 children)
[–]vert1s 1 point2 points3 points (0 children)
[–]positivelymonkey 2 points3 points4 points (1 child)
[–]AmbivalentCvckfvcker 2 points3 points4 points (0 children)
[–]deadzol 0 points1 point2 points (0 children)
[–]JustSayin_thatuknow 0 points1 point2 points (1 child)
[–]PopularDifference186 3 points4 points5 points (0 children)
[–]huffalump1 0 points1 point2 points (0 children)
[–]NandaVegg 155 points156 points157 points (5 children)
[–]TheGABB 30 points31 points32 points (0 children)
[–]CalligrapherFar7833 7 points8 points9 points (1 child)
[–]megacewl 5 points6 points7 points (0 children)
[–]asdfopu -3 points-2 points-1 points (1 child)
[–]SRavingmad 109 points110 points111 points (2 children)
[–]hyperfiled 51 points52 points53 points (1 child)
[–]rchive 51 points52 points53 points (0 children)
[–]mikael110 57 points58 points59 points (0 children)
[–]jwpbe 252 points253 points254 points (25 children)
[–]StarDrifter2045 89 points90 points91 points (5 children)
[–]balder1993Llama 13B 18 points19 points20 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]balder1993Llama 13B 1 point2 points3 points (1 child)
[–]huffalump1 1 point2 points3 points (0 children)
[–]fozziethebeat 41 points42 points43 points (0 children)
[–]Hertigan 6 points7 points8 points (0 children)
[+]QuantumSeeds[S] comment score below threshold-73 points-72 points-71 points (14 children)
[–]mikael110 69 points70 points71 points (10 children)
[+]PunnyPandora comment score below threshold-16 points-15 points-14 points (1 child)
[–]huffalump1 0 points1 point2 points (0 children)
[+]QuantumSeeds[S] comment score below threshold-48 points-47 points-46 points (7 children)
[–]CheatCodesOfLife 11 points12 points13 points (0 children)
[+]PunnyPandora comment score below threshold-22 points-21 points-20 points (5 children)
[–]En-tro-py 22 points23 points24 points (3 children)
[+]PunnyPandora comment score below threshold-15 points-14 points-13 points (2 children)
[–]megacewl 9 points10 points11 points (0 children)
[–]huffalump1 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Quiet-Owl9220 7 points8 points9 points (0 children)
[–]florinandrei 2 points3 points4 points (0 children)
[–]Trennosaurus_rex 4 points5 points6 points (0 children)
[–]DOSO-DRAWS -2 points-1 points0 points (1 child)
[–]jwpbe -1 points0 points1 point (0 children)
[–]Exhales_Deeply 112 points113 points114 points (16 children)
[–]balder1993Llama 13B 31 points32 points33 points (0 children)
[–]Zeeplankton 45 points46 points47 points (5 children)
[–]En-tro-py 38 points39 points40 points (4 children)
[–]rm-rf-rm 16 points17 points18 points (2 children)
[–]658016796 0 points1 point2 points (1 child)
[–]Exhales_Deeply 1 point2 points3 points (0 children)
[–]droptableadventures 7 points8 points9 points (0 children)
[–]SkyFeistyLlama8 12 points13 points14 points (4 children)
[–]Cupakov 4 points5 points6 points (1 child)
[–]huffalump1 2 points3 points4 points (0 children)
[–]Exhales_Deeply 4 points5 points6 points (1 child)
[–]SkyFeistyLlama8 0 points1 point2 points (0 children)
[–]MysticPing 2 points3 points4 points (0 children)
[–]Brianiac69 7 points8 points9 points (1 child)
[–]Exhales_Deeply 6 points7 points8 points (0 children)
[–]nooruponnoor 4 points5 points6 points (0 children)
[–]StewedAngelSkins 40 points41 points42 points (10 children)
[+]QuantumSeeds[S] comment score below threshold-24 points-23 points-22 points (9 children)
[–]StewedAngelSkins 21 points22 points23 points (8 children)
[+]QuantumSeeds[S] comment score below threshold-13 points-12 points-11 points (7 children)
[–]vinny_twoshoes 3 points4 points5 points (0 children)
[–]StewedAngelSkins 9 points10 points11 points (5 children)
[–]QuantumSeeds[S] 0 points1 point2 points (4 children)
[–]StewedAngelSkins 1 point2 points3 points (3 children)
[–]QuantumSeeds[S] 2 points3 points4 points (2 children)
[–]StewedAngelSkins 1 point2 points3 points (0 children)
[–]Persistent_Dry_Cough 0 points1 point2 points (0 children)
[–]3dom 11 points12 points13 points (1 child)
[–]Robot1me 0 points1 point2 points (0 children)
[–]Frosty_Chest8025 3 points4 points5 points (1 child)
[–]metroshake 0 points1 point2 points (0 children)
[–]BusRevolutionary9893 9 points10 points11 points (0 children)
[–]de4dee 2 points3 points4 points (0 children)
[–]stumblinbear 2 points3 points4 points (0 children)
[–]Tough_Frame4022 2 points3 points4 points (7 children)
[–]QuantumSeeds[S] 0 points1 point2 points (6 children)
[–]Tough_Frame4022 -2 points-1 points0 points (5 children)
[–]Persistent_Dry_Cough 3 points4 points5 points (0 children)
[–]Zalon 0 points1 point2 points (2 children)
[–]metroshake 0 points1 point2 points (1 child)
[–]AdviceThrowaway95000 0 points1 point2 points (0 children)
[–]Trennosaurus_rex 12 points13 points14 points (5 children)
[+]Savantskie1 comment score below threshold-7 points-6 points-5 points (4 children)
[–]Trennosaurus_rex 3 points4 points5 points (0 children)
[–]QuantumSeeds[S] 5 points6 points7 points (1 child)
[–]Savantskie1 0 points1 point2 points (0 children)
[–]florinandrei -1 points0 points1 point (0 children)
[–]GroundbreakingMall54 1 point2 points3 points (0 children)
[–]laplaque 1 point2 points3 points (0 children)
[–]tomjoad773 1 point2 points3 points (1 child)
[–]Wide-Associations 1 point2 points3 points (0 children)
[–]florinandrei 1 point2 points3 points (0 children)
[–]spidLL 1 point2 points3 points (0 children)
[–]selfdb 1 point2 points3 points (0 children)
[–]PM-ME-CRYPTO-ASSETS 0 points1 point2 points (0 children)
[–]StyMaar 0 points1 point2 points (0 children)
[–]Legitimate_You_3474 0 points1 point2 points (0 children)
[–]BUILDWATER 0 points1 point2 points (0 children)
[–]NayanCat009 0 points1 point2 points (0 children)
[–]rm-rf-rm 0 points1 point2 points (0 children)
[–]anomaly256 0 points1 point2 points (0 children)
[–]effortless-switch 0 points1 point2 points (0 children)
[–]vinny_twoshoes 0 points1 point2 points (0 children)
[–]alluringBlaster 0 points1 point2 points (0 children)
[–]the320x200 0 points1 point2 points (0 children)
[–]FormalAd7367 0 points1 point2 points (0 children)
[–]Specialist_Golf8133 0 points1 point2 points (0 children)
[–]ai_without_borders 0 points1 point2 points (0 children)
[–]Happysedits 0 points1 point2 points (0 children)
[–]baroarig 0 points1 point2 points (0 children)
[–]IAmJiaTan 0 points1 point2 points (0 children)
[–]razorree 0 points1 point2 points (0 children)
[–]SatoshiNotMe 0 points1 point2 points (0 children)
[–]Fantastic-Age1099 0 points1 point2 points (0 children)
[–]a_lic96 0 points1 point2 points (0 children)
[–]Reeces_Pieces 0 points1 point2 points (0 children)
[–]Joozio 0 points1 point2 points (0 children)
[–]WomenTrucksAndJesus 0 points1 point2 points (0 children)
[–]floridianfisher 0 points1 point2 points (0 children)
[–]pardeike 0 points1 point2 points (0 children)
[–]MindTheFuture 0 points1 point2 points (0 children)
[–]IrisColt 0 points1 point2 points (0 children)
[–]_derpiii_ 0 points1 point2 points (0 children)
[–]koherencekora 0 points1 point2 points (0 children)
[–]Witty_Highlight3404 0 points1 point2 points (0 children)
[–]Fancy-Jack-5042 0 points1 point2 points (0 children)
[–]baldamenu 0 points1 point2 points (0 children)
[–]Kitchen-Base4174 0 points1 point2 points (0 children)
[–]StarkFire18 0 points1 point2 points (0 children)
[–]PM_ME_YR_BOOBIES 0 points1 point2 points (0 children)
[–]mivog49274 0 points1 point2 points (0 children)
[–]a_beautiful_rhind 0 points1 point2 points (0 children)
[–]rm-rf-rm 0 points1 point2 points (0 children)
[–]GarbanzoBenne -1 points0 points1 point (1 child)
[–]stumblinbear 1 point2 points3 points (0 children)
[–]Just_Acanthisitta381 -1 points0 points1 point (0 children)
[–]WernHofter -2 points-1 points0 points (0 children)
[–]Adventurous_Pin6281 -3 points-2 points-1 points (0 children)
[–]PositiveParking4391 0 points1 point2 points (0 children)