Skip to content

Instantly share code, notes, and snippets.

@sotayamashita
Last active June 9, 2025 10:18
Show Gist options
  • Save sotayamashita/82199139b1870ac23c369276fffbf0a0 to your computer and use it in GitHub Desktop.
Save sotayamashita/82199139b1870ac23c369276fffbf0a0 to your computer and use it in GitHub Desktop.
@anthropic-ai/claude-code (1.0.3) Think Level
"node_modules/@anthropic-ai/claude-code": {
      "version": "1.0.3",
329814-  if (
329815-    /\bthink harder\b/.test(B) ||
329816-    /\bthink intensely\b/.test(B) ||
329817-    /\bthink longer\b/.test(B) ||
329818-    /\bthink really hard\b/.test(B) ||
329819-    /\bthink super hard\b/.test(B) ||
329820-    /\bthink very hard\b/.test(B) ||
329821:    /\bultrathink\b/.test(B)
329822-  )
329823-    return j1("tengu_thinking", { provider: fX(), tokenCount: 31999 }), 31999;
329824-  if (
329825-    /\bthink about it\b/.test(B) ||
329826-    /\bthink a lot\b/.test(B) ||
329827-    /\bthink deeply\b/.test(B) ||
329828-    /\bthink hard\b/.test(B) ||
329829-    /\bthink more\b/.test(B) ||
329830-    /\bmegathink\b/.test(B)
329831-  )
329832-    return j1("tengu_thinking", { provider: fX(), tokenCount: 1e4 }), 1e4;
329833-  if (/\bthink\b/.test(B))
329834-    return j1("tengu_thinking", { provider: fX(), tokenCount: 4000 }), 4000;
329835-  return 0;
329836-}

Acknowledgements

@sotayamashita
Copy link
Author

334878-var dP2 = hz5;
334879-var wz1 = { HIGHEST: 31999, MIDDLE: 1e4, BASIC: 4000, NONE: 0 },
334880-  mz5 = {
334881-    english: {
334882-      HIGHEST: [
334883-        { pattern: "think harder", needsWordBoundary: !0 },
334884-        { pattern: "think intensely", needsWordBoundary: !0 },
334885-        { pattern: "think longer", needsWordBoundary: !0 },
334886-        { pattern: "think really hard", needsWordBoundary: !0 },
334887-        { pattern: "think super hard", needsWordBoundary: !0 },
334888-        { pattern: "think very hard", needsWordBoundary: !0 },
334889:        { pattern: "ultrathink", needsWordBoundary: !0 },
334890-      ],
334891-      MIDDLE: [
334892-        { pattern: "think about it", needsWordBoundary: !0 },
334893-        { pattern: "think a lot", needsWordBoundary: !0 },
334894-        { pattern: "think deeply", needsWordBoundary: !0 },
334895-        { pattern: "think hard", needsWordBoundary: !0 },
334896-        { pattern: "think more", needsWordBoundary: !0 },
334897-        { pattern: "megathink", needsWordBoundary: !0 },
334898-      ],
334899-      BASIC: [{ pattern: "think", needsWordBoundary: !0 }],
334900-      NONE: [],
334901-    },
334902-    japanese: {
334903-      HIGHEST: [
334904-        { pattern: "熟考" },
334905-        { pattern: "深く考えて" },
334906-        { pattern: "しっかり考えて" },
334907-      ],
334908-      MIDDLE: [
334909-        { pattern: "もっと考えて" },
334910-        { pattern: "たくさん考えて" },
334911-        { pattern: "よく考えて" },
334912-        { pattern: "長考" },
334913-      ],
334914-      BASIC: [{ pattern: "考えて" }],
334915-      NONE: [],
334916-    },
334917-    chinese: {
334918-      HIGHEST: [
334919-        { pattern: "多想一会" },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment