Skip to main content
यह पेज Embedder से लगातार बेहतर परिणाम पाने के लिए practical guidelines देता है। सबसे बड़ा फैक्टर है session length। बहुत लंबा सेशन होने पर context noise बढ़ता है और accuracy गिर सकती है। इसलिए session को focused रखें।

1) Verifiable prompts लिखें

Prompt में expected output, test command, और success criteria दें।
अच्छे prompts में ये चीज़ें हों:
  • क्या बदलना है
  • कौन-सी फाइलें बदलनी हैं
  • किस तरह verify करना है
  • failure होने पर root cause fix करना है
उदाहरण:

2) पहले Plan, फिर Act

जटिल बदलावों में Plan mode से analysis करके Act mode में implementation करें।
1

Explore

संबंधित फाइलें और architecture समझें।
2

Plan

step-by-step plan और test strategy बनवाएँ।
3

Implement

Plan के अनुसार बदलाव करें और build/test चलाएँ।
4

Commit

स्पष्ट commit message और PR बनवाएँ।

3) Context को specific रखें

  • @ से फाइलें reference करें
  • constraints साफ लिखें
  • existing patterns बताएं
  • scope सीमित रखें

4) EMBEDDER.md को lean रखें

/init से शुरुआत करें, फिर file को छोटा और relevant रखें।
EMBEDDER.md में केवल project-specific बातें रखें:
  • build/test commands
  • coding rules
  • environment quirks
  • common pitfalls
बहुत लंबी EMBEDDER.md से जरूरी rules दब जाते हैं।

5) Session hygiene

  • unrelated tasks के बीच /clear
  • लंबे सेशन में /compress
  • previous work उठाने के लिए /history
  • गलत दिशा पर /undo या /rewind

6) Subagents का उपयोग

बड़े investigation काम subagents से करवाएँ ताकि main context साफ रहे।

7) Common pitfalls

  • vague prompts
  • no acceptance criteria
  • context साफ न करना
  • बहुत broad exploration
Scope + constraints + verification, यही best results का सबसे reliable combo है।
अंतिम संशोधन 5 मार्च 2026