MCPcopy Index your code
hub / github.com/codeaashu/claude-code / stripThinking

Function stripThinking

src/utils/permissions/yoloClassifier.ts:567–571  ·  view source on GitHub ↗

* Strip thinking content so that / tags inside * the model's chain-of-thought don't get matched by parsers.

(text: string)

Source from the content-addressed store, hash-verified

565 * the model's chain-of-thought don't get matched by parsers.
566 */
567function stripThinking(text: string): string {
568 return text
569 .replace(/<thinking>[\s\S]*?<\/thinking>/g, '')
570 .replace(/<thinking>[\s\S]*$/, '')
571}
572
573/**
574 * Parse XML block response: <block>yes/no</block>

Callers 2

parseXmlBlockFunction · 0.85
parseXmlReasonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected