Back to Blog

The Claude Code Source Leak: Fake Tools, Frustration Regexes, and Undercover Mode

March 31, 2026by Ichiban Team
anthropicclaudesecurityreverse-engineeringsourcemaps

Hero

यह शानदार fallback मैकेनिज़्म मॉडल को धीरे से सही करता है, telemetry के लिए hallucination को लॉग करता है, और साथ ही यूज़र के सेशन को अलाइव (alive) और प्रोडक्टिव बनाए रखता है।

#2. Frustration Regexes

शायद कोडबेस में सबसे ज़्यादा humanizing डिस्कवरी एक मॉड्यूल था जो sentiment analysis को डेडिकेटेड था—खासकर, यूज़र की frustration (निराशा) को डिटेक्ट करने के लिए। यह मानते हुए कि जब कोई AI बार-बार किसी काम में फेल होता है, तो डेवलपर्स अक्सर अपना आपा खो देते हैं, CLI यूज़र के प्रॉम्प्ट्स को parse करने के लिए "Frustration Regexes" का इस्तेमाल करता है।

const FRUSTRATION_REGEX = /\b(wtf|fucking|useless|stupid|idiot|stop it|bullshit)\b/i;
const ALL_CAPS_REGEX = /^[A-Z0-9\s\!\?]{15,}$/;

function calculateUserFrustration(prompt: string): number {
    let score = 0;
    if (FRUSTRATION_REGEX.test(prompt)) score += 5;
    if (ALL_CAPS_REGEX.test(prompt)) score += 3;
    if (prompt.endsWith("!!!")) score += 2;
    return score;
}