Podcasts पर वापस जाएंClaude
Claude Code subagents
सब-एजेंट क्या होते हैं?
Sub-agents are specialized assistants that Claude can delegate tasks to.
सब-एजेंट विशेष सहायक होते हैं जिन्हें Claude काम सौंप सकता है।
Each sub-agent runs in its own conversation contacts window with a custom system prompt that you define.
हर सब-एजेंट अपनी खुद की कॉन्टेक्स्ट विंडो में चलता है, जिसमें आपका तय किया हुआ एक कस्टम system prompt होता है।
When finished, it returns a summary to the main thread while all the intermediate work stays isolated.
काम पूरा होने पर, यह मुख्य थ्रेड को एक सारांश लौटाता है, जबकि सारा बीच का काम अलग-थलग रहता है।
One of the main advantages of sub-agents is that they help manage context window usage.
सब-एजेंट के मुख्य फायदों में से एक यह है कि ये कॉन्टेक्स्ट विंडो के इस्तेमाल को मैनेज करने में मदद करते हैं।
When you chat with Claude Code, you're adding context to the main context window.
जब आप Claude Code से बात करते हैं, तो आप मुख्य कॉन्टेक्स्ट विंडो में कॉन्टेक्स्ट जोड़ रहे होते हैं।
Every tool call and its results get stored in this main context window.
हर टूल कॉल और उसके नतीजे इसी मुख्य कॉन्टेक्स्ट विंडो में स्टोर होते हैं।
And so, when Claude uses a sub-agent, a separate window starts.
तो जब Claude किसी सब-एजेंट का इस्तेमाल करता है, तो एक अलग विंडो शुरू होती है।
The sub-agent receives two inputs, a custom system prompt from your configuration file, and a task description written by the parent or parent agent based on what you ask for.
सब-एजेंट को दो इनपुट मिलते हैं: आपकी कॉन्फ़िगरेशन फ़ाइल से एक कस्टम system prompt, और आपके अनुरोध के आधार पर पैरेंट एजेंट द्वारा लिखा गया एक काम का विवरण।
The sub-agent then works autonomously.
इसके बाद सब-एजेंट स्वायत्त रूप से काम करता है।
When it reads files, edits files, or uses tools, none of these will appear in the main conversation.
जब यह फ़ाइलें पढ़ता है, फ़ाइलें एडिट करता है, या टूल्स का उपयोग करता है, तो इनमें से कुछ भी मुख्य बातचीत में नहीं दिखता।
Just a summary is returned back.
बस एक सारांश वापस आता है।
The entire sub-agent conversation then gets completely discarded.
सब-एजेंट की पूरी बातचीत फिर पूरी तरह हटा दी जाती है।
Consider a task like investigating how the payment system works in an unfamiliar code base.
किसी अपरिचित कोड बेस में पेमेंट सिस्टम कैसे काम करता है यह जांचने जैसे काम को सोचें।
Maybe you're trying to use Claude Code to figure out which service handles refunds.
शायद आप Claude Code का उपयोग यह पता लगाने के लिए कर रहे हों कि कौन-सी सर्विस रिफंड संभालती है।
Well, without a sub-agent, Claude might read 15 files, run several searches, and trace through multiple function calls.
बिना किसी सब-एजेंट के, Claude शायद 15 फ़ाइलें पढ़े, कई सर्च चलाए, और कई फ़ंक्शन कॉल्स को ट्रेस करे।
All of that context fills your context window, even if you only needed one single fact, which service handles refunds.
यह सारा कॉन्टेक्स्ट आपकी कॉन्टेक्स्ट विंडो को भर देता है, भले ही आपको बस एक तथ्य चाहिए था: कौन-सी सर्विस रिफंड संभालती है।
With a sub-agent, you get the answer without the journey.
सब-एजेंट के साथ, आपको सफर किए बिना जवाब मिल जाता है।
The sub-agent explores, discovers the answer, and returns a focused summary, keeping your main context clean.
सब-एजेंट खोजता है, जवाब ढूंढता है, और एक केंद्रित सारांश लौटाता है, जिससे आपका मुख्य कॉन्टेक्स्ट साफ रहता है।
But, the main window loses visibility into how the sub-agent reaches its conclusions and what it discovered along the way.
लेकिन मुख्य विंडो यह नहीं देख पाती कि सब-एजेंट अपने निष्कर्षों तक कैसे पहुंचा और रास्ते में उसने क्या खोजा।
Claude Code includes several built-in sub-agents that you can use immediately, like the general-purpose sub-agent, used for multi-step tasks that require both exploration and action.
Claude Code में कई बिल्ट-इन सब-एजेंट हैं जिन्हें आप तुरंत उपयोग कर सकते हैं, जैसे कि सामान्य-उद्देश्य वाला सब-एजेंट, जो ऐसे मल्टी-स्टेप कामों के लिए होता है जिनमें खोज और एक्शन दोनों की जरूरत हो।
The explore sub-agent, used for fast searching of code bases.
explore सब-एजेंट, कोड बेस की तेज़ खोज के लिए उपयोग किया जाता है।
The plan sub-agent, used during plan mode for research and analysis of your code base before presenting a plan.
plan सब-एजेंट, प्लान मोड में आपकी कोड बेस की रिसर्च और विश्लेषण के लिए उपयोग किया जाता है, ताकि एक प्लान पेश किया जा सके।
And you can also create your own sub-agents with custom system prompts and tool access.
और आप कस्टम system prompts और टूल एक्सेस के साथ अपने खुद के सब-एजेंट भी बना सकते हैं।
Sub-agents like Claude Code break work into focused pieces, keep your main context window clean, and bring back just what you need, whether you're using the built-in ones or creating your own.
Claude Code जैसे सब-एजेंट काम को केंद्रित हिस्सों में बांटते हैं, आपकी मुख्य कॉन्टेक्स्ट विंडो को साफ रखते हैं, और बस वही वापस लाते हैं जो आपको चाहिए, चाहे आप बिल्ट-इन का इस्तेमाल करें या अपने बनाएं।
They're a practical way to get more out of longer Claude Code sessions.
ये Claude Code के लंबे सेशन से ज्यादा फायदा उठाने का एक व्यावहारिक तरीका है।