- Anthropic ने Claude-आधारित CLI agent टूल Claude Code के advanced उपयोग पर दस्तावेज़ जारी किया है
- खास keywords ("think", "ultrathink" आदि) का उपयोग करने पर Claude अधिक computational resources (tokens) इस्तेमाल करके अधिक गहराई से सोचता है
- "think" → 4,000 tokens, "megathink" → 10,000 tokens, "ultrathink" → अधिकतम 31,999 tokens तक आवंटित होते हैं
- यह Claude Code के internal code में सीधे पुष्टि किया गया, और यह Claude से अधिक Claude Code की सुविधा लगता है
- डेवलपर इस सुविधा का उपयोग करके जटिल समस्याओं को अधिक प्रभावी ढंग से संभालने के लिए Claude को agent-शैली coding tool की तरह इस्तेमाल कर सकते हैं
Claude Code का advanced उपयोग
- Anthropic ने अपने CLI coding agent Claude Code का कुशलतापूर्वक उपयोग करने के तरीकों पर दस्तावेज़ प्रकाशित किया है
- यह टूल Claude model का उपयोग करके coding tasks करता है, और commands के ज़रिए thinking intensity को नियंत्रित करने की सुविधा रखता है
- “think” श्रृंखला के keywords इस्तेमाल करने पर Claude दिए गए task के लिए अधिक computational resources का उपयोग करता है
thinking intensity नियंत्रण सुविधा
- Claude Code keyword के अनुसार Claude द्वारा उपयोग किए जा सकने वाले tokens की संख्या (thinking resource amount) को समायोजित करता है
- internal code में निम्न mapping की पुष्टि हुई:
- "think" → 4,000 tokens
- "think hard" / "think more" / "megathink" → 10,000 tokens
- "ultrathink" / "think very hard" / "think super hard" आदि → 31,999 tokens
- इस सुविधा के ज़रिए जटिल या multi-step problem solving के दौरान अधिक computation time और resources हासिल किए जा सकते हैं
internal implementation analysis
- Claude Code open source नहीं है, लेकिन यह JavaScript में लिखा गया है और इसका कुछ हद तक analysis किया जा सकता है
- डेवलपर ने
prettier और ripgrep का उपयोग करके code readability बढ़ाई और खास keywords खोजे
- परिणामस्वरूप, code में keyword के अनुसार thinking resource allocation logic को सीधे देखा जा सका
क्या यह Claude की अपनी सुविधा है?
- “ultrathink” सुविधा Claude model की नहीं बल्कि Claude Code में built-in सुविधा लगती है
- Claude में स्वयं Extended Thinking सुविधा है, लेकिन keyword-आधारित thinking amplification CLI tool की विशिष्ट सुविधा होने की संभावना अधिक है
practical उपयोग
- Claude को agent-शैली development tool की तरह उपयोग करते समय यह सुविधा बहुत उपयोगी है
- problem solving, code generation, analysis जैसे कार्य करते समय यह अधिक सटीक और परिष्कृत परिणाम पाने में मदद करती है
- केवल keywords के ज़रिए thinking resources को नियंत्रित किया जा सकता है, इसलिए यह बहुत intuitive और powerful tool है
2 टिप्पणियां
इंसान हो या AI, दोनों को "सोचकर बोलो" कहना पड़ता है.....
Hacker News टिप्पणियाँ
ultrathinkAnthropic के दस्तावेज़ों में स्पष्ट रूप से लिखा हुआ है