Created
March 8, 2025 08:42
-
-
Save leehanchung/00b02ac54708718f08423c0f80309968 to your computer and use it in GitHub Desktop.
claude code thinking scratchpad
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function Lu(I) { | |
if (await ug.isEnabled()) | |
return ( | |
s1('tengu_thinking', { | |
method: 'scratchpad', | |
tokenCount: '0', | |
messageId: QZ(I), | |
provider: c9 ? 'bedrock' : p9 ? 'vertex' : '1p', | |
}), | |
0 | |
) | |
let G = rV(I) | |
if (G?.type !== 'user' || typeof G.message.content !== 'string') | |
return ( | |
s1('tengu_thinking', { | |
method: 'scratchpad', | |
tokenCount: '0', | |
messageId: QZ(I), | |
provider: c9 ? 'bedrock' : p9 ? 'vertex' : '1p', | |
}), | |
0 | |
) | |
let Z = G.message.content.toLowerCase() | |
if ( | |
Z.includes('think harder') || | |
Z.includes('think intensely') || | |
Z.includes('think longer') || | |
Z.includes('think really hard') || | |
Z.includes('think super hard') || | |
Z.includes('think very hard') || | |
Z.includes('ultrathink') | |
) | |
return ( | |
s1('tengu_thinking', { | |
method: 'scratchpad', | |
tokenCount: '31999', | |
messageId: QZ(I), | |
provider: c9 ? 'bedrock' : p9 ? 'vertex' : '1p', | |
}), | |
31999 | |
) | |
if ( | |
Z.includes('think about it') || | |
Z.includes('think a lot') || | |
Z.includes('think hard') || | |
Z.includes('think more') || | |
Z.includes('megathink') | |
) | |
return ( | |
s1('tengu_thinking', { | |
method: 'scratchpad', | |
tokenCount: '10000', | |
messageId: QZ(I), | |
provider: c9 ? 'bedrock' : p9 ? 'vertex' : '1p', | |
}), | |
1e4 | |
) | |
if (Z.includes('think')) | |
return ( | |
s1('tengu_thinking', { | |
method: 'scratchpad', | |
tokenCount: '4000', | |
messageId: QZ(I), | |
provider: c9 ? 'bedrock' : p9 ? 'vertex' : '1p', | |
}), | |
4000 | |
) | |
return ( | |
s1('tengu_thinking', { | |
method: 'scratchpad', | |
tokenCount: '0', | |
messageId: QZ(I), | |
provider: c9 ? 'bedrock' : p9 ? 'vertex' : '1p', | |
}), | |
0 | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment