Claude Code subagents क्या हैं, कैसे बनाएँ — हिंदीClaude Code subagents — Hindi guide
.claude/agents/*.md: नाम, कब बुलाना, कौन से tools.claude/agents/*.md: name, when to call it, which tools
क्या चाहिएWhat you needClaude Code (Claude Code शुरू करना — install, /init, CLAUDE.md, permissions, plan mode)Claude Code (Start with Claude Code — install, /init, CLAUDE.md, permissions, plan mode)
7 आसान कदम7 simple steps
- Subagent एक अलग सहायक है जो अपने अलग context में, अपने tools के साथ एक तरह का काम करता है — जैसे code जाँचना या research।A subagent is a separate helper that works in its own context with its own tools on one kind of job — e.g. code review or research.
- File की जगह: सिर्फ़ इस project के लिए .claude/agents/NAME.md, आपके सारे projects के लिए ~/.claude/agents/NAME.md।Where: this project only → .claude/agents/NAME.md; all your projects → ~/.claude/agents/NAME.md.
- File के ऊपर YAML: name और description ज़रूरी (description = Claude इसे कब बुलाए); tools और model वैकल्पिक। नीचे Markdown में उसकी हिदायतें।YAML at the top: name and description are required (description = when Claude should use it); tools and model are optional. Its instructions go below in Markdown.
- सिर्फ़ पढ़ने वाला रखना हो तो tools: Read, Grep, Glob — ऐसा subagent कुछ बदल नहीं सकता।For read-only, use tools: Read, Grep, Glob — such a subagent can't change anything.
- आसान तरीका: Claude से कहिए "~/.claude/agents/ में hindi-reviewer subagent बनाओ, सिर्फ़ पढ़ने वाला, Sonnet पर"।Easiest: ask Claude "create a read-only hindi-reviewer subagent in ~/.claude/agents/ that uses Sonnet".
- नया agents folder इसी सत्र में बना हो तो Claude Code बंद करके फिर खोलिए।If the agents folder was created in this session, restart Claude Code.
- इस्तेमाल: "hindi-reviewer subagent से मेरे आज के बदलाव जाँचो" — या description के हिसाब से Claude ख़ुद बुला लेगा।Use it: "use the hindi-reviewer subagent to check today's changes" — or Claude picks it from its description.
Copy करने वाला promptPrompt to copy
[ ] वाली जगह अपनी बात भरिए। Claude या Gemini — दोनों में चलता है।Fill in the [ ] parts. Works in Claude or Gemini.
mkdir -p .claude/agents && cat > .claude/agents/hindi-reviewer.md <<'EOF' --- name: hindi-reviewer description: Reviews changed code and explains issues in simple Hindi. Use after writing or modifying code. tools: Read, Grep, Glob model: sonnet --- तुम code reviewer हो। हर गड़बड़ी के लिए: समस्या आसान हिंदी में, अभी का code, और सुधरा हुआ code दिखाओ। ख़ुद कोई file मत बदलना। आख़िर में 3 सबसे ज़रूरी सुधार की list दो। EOF
mkdir -p .claude/agents && cat > .claude/agents/hindi-reviewer.md <<'EOF' --- name: hindi-reviewer description: Reviews changed code and explains issues in simple Hindi. Use after writing or modifying code. tools: Read, Grep, Glob model: sonnet --- तुम code reviewer हो। हर गड़बड़ी के लिए: समस्या आसान हिंदी में, अभी का code, और सुधरा हुआ code दिखाओ। ख़ुद कोई file मत बदलना। आख़िर में 3 सबसे ज़रूरी सुधार की list दो। EOFClaude में खोलेंOpen in Claude
पाठशाला में ✓ लगाकर सीखिएLearn it in the AI School with ✓ ticks