पाठ 1 / 25

Autocomplete, Chat और Agents

Coding assistant के तीन प्रकार पहचानें और जानें कि हर एक किसमें अच्छा है।

मदद के तीन रूप

Inline completion टाइप करते समय अगली पंक्ति या block सुझाता है, boilerplate और परिचित patterns के लिए सबसे अच्छा। Chat सवालों के उत्तर देता है, कोड समझाता है और snippets का मसौदा देता है जिन्हें आप कॉपी करते हैं। Agents और आगे जाते हैं: वे कई files पढ़ते हैं, उन्हें बदलते हैं, tests और commands चलाते हैं और काम पास होने तक दोहराते हैं। ज़्यादातर tools (GitHub Copilot, Cursor, Claude Code, JetBrains AI आदि) अब एक से ज़्यादा रूप देते हैं, और उनके features अक्सर बदलते हैं।

सुझाव से कर्म तक

Assistants autocomplete से chat तक और ऐसे agents तक होते हैं जो files बदलते और commands चलाते हैं। ज़्यादा स्वायत्तता का मतलब ज़्यादा review।

चार स्तर: पूरा करना, chat, edit, कर्म।
चित्र 1.1 — पूरा करना, chat, edit और कर्म।

काम के अनुसार रूप चुनें

काम करने वाला सबसे हल्का रूप चुनें। ज़्यादा स्वायत्तता टाइपिंग बचाती है पर नतीजे की ज़्यादा सावधान समीक्षा माँगती है।

Finish this line / repeat a pattern     -> inline completion
"What does this regex do?"                 -> chat
"Rename this function everywhere"          -> agent / multi-file edit
"Fix the failing tests in this module"     -> agent that can run tests

Spell-check, tutor, intern

Autocomplete spell-check जैसा है: तेज़ और स्थानीय। Chat ऐसा tutor है जिससे आप पूछ सकते हैं। Agent जूनियर intern है जो पूरा काम कर सकता है पर जिसका काम शिप होने से पहले आपको जाँचना है।

त्वरित जाँच: किस प्रकार का assistant कई files बदल सकता है और आपके tests चला सकता है?

  • सिर्फ़ inline completion
  • Spell-checker
  • Agent रूप
  • Syntax highlighter
Answer

Agent रूप — Agents file access, editing और command execution को एक loop में जोड़ते हैं।