- Claude एप्लिकेशन को लागू करने के लिए व्यावहारिक गाइड और उदाहरणों का संग्रह, जिसमें एजेंट बनाने से लेकर RAG·टूल उपयोग·मल्टीमॉडल·इवैल्युएशन तक व्यापक विषय शामिल हैं
- Claude Agent SDK·Managed Agents उदाहरणों में मल्टी-एजेंट orchestration, सेशन मैनेजमेंट, डिप्लॉयमेंट, आउटेज प्रतिक्रिया, vulnerability detection, user memory जैसे ऑपरेशंस पैटर्न शामिल हैं
- लंबे समय तक चलने वाले एजेंटों के लिए memory·context compression, प्रोग्रामेटिक टूल कॉलिंग, embedding-आधारित टूल सर्च, और asynchronous sub-agent तकनीकें प्रदान की गई हैं
- RAG, SQL generation, knowledge graph, document summary, image·audio processing के साथ-साथ evaluation·cost·observability·guardrails भी इम्प्लीमेंटेशन उदाहरणों के जरिए देखे जा सकते हैं
- Docker·Modal·Kubernetes डिप्लॉयमेंट, prompt version management और rollback, human approval, cost analysis को समेटते हुए इसे development और production operations दोनों में इस्तेमाल किया जा सकता है
एजेंट इवैल्युएशन और guardrails
- Claude के agentic search benchmark scores का पुनरुत्पादन: Messages API harness के साथ DeepSearchQA·BrowseComp स्कोर पुन: उत्पन्न करता है, और प्रोग्रामेटिक टूल कॉलिंग, server-side compression, task budget का उपयोग करता है
- Claude Fable 5 में classifier fallback और billing: safety classifier द्वारा ब्लॉक किए जाने का पता लगाकर Opus 4.8 पर स्विच करता है, और server या SDK client-side fallback के साथ streaming तथा नए billing बदलावों को कवर करता है
- टूल इवैल्युएशन: इवैल्युएशन task files से स्वतंत्र रूप से टूल्स के लिए parallel agent evaluation चलाता है
- इवैल्युएशन बनाना: प्रमुख metrics पर Claude के प्रदर्शन को मापने और सुधारने के लिए evaluation system बनाता है
- prompt templates के लिए synthetic test data बनाना: Claude prompts का इवैल्युएशन और सुधार करने के लिए synthetic test cases बनाता है
- Claude से moderation filter बनाना: prompt में rules और categories परिभाषित करके कस्टम content moderation filter बनाता है
मल्टी-एजेंट और workflow patterns
- asynchronous multi-agent orchestration: shared hub में peer messages का आदान-प्रदान करने वाली निश्चित N-एजेंट टीम और dynamically generated asynchronous sub-agents की messaging और lifecycle संरचना को कवर करता है
- multi-agent: specialist team coordination: coordinator web search researcher·file review handler·rule-based pricing handler का नेतृत्व करके sales proposal तैयार करता है
- इसमें
multiagentफ़ील्ड,thread_created·thread_message_receivedevents, और role-based tool scope restrictions शामिल हैं
- इसमें
- Outcomes: अपने काम को सत्यापित करने वाला एजेंट: writer cited research summary बनाता है, फिर stateless grader URL और उद्धरणों की जांच करता है, और पास होने तक सुधार करने वाला grading·improvement loop बनाता है
user.define_outcome,span.outcome_evaluation_*events और grader द्वारा चलाए जा सकने वाले evaluation criteria लिखने के तरीके को कवर करता है
- बेसिक workflows: तीन multi-LLM patterns देता है जो cost या latency को performance के बदले ट्रेड ऑफ करते हैं
- evaluator-optimizer: एक LLM परिणाम बनाता है और दूसरा LLM evaluation feedback देता है, ऐसी iterative संरचना
- orchestrator-workers: केंद्रीय LLM काम को dynamically delegate करता है और worker LLMs के परिणामों को synthesize करता है
- Haiku को sub-agent के रूप में उपयोग करना: Haiku sub-agent वित्तीय रिपोर्टों से डेटा निकालता है और Opus परिणामों को synthesize करता है
Claude Agent SDK
- एक-पंक्ति research agent: Claude Code SDK और
WebSearchके साथ autonomous research agent बनाता है - chief of staff agent: sub-agents, hooks, output style, plan mode के साथ multi-agent system बनाता है
- observability agent: MCP server के जरिए एजेंट को बाहरी सिस्टम से जोड़कर GitHub monitoring और CI workflows संभालता है
- site reliability agent: read·write MCP tools से incidents का diagnosis·recovery करता है और postmortem report लिखता है
- OpenAI Agents SDK से migration: expense approval agent के उदाहरण से tools·guardrails·sessions·handoffs को Claude Agent SDK के बुनियादी घटकों से मैप करता है
- session browser बनाना: डिस्क पर मौजूद Agent SDK sessions को list·browse करके rename·tag·fork करता है, ताकि अलग conversation history parser के बिना sidebar बनाया जा सके
- vulnerability detection agent: C targets का threat modeling करता है, built-in file tools से memory safety bugs ढूंढता है, और them structured reports में classify करता है
- agent hosting: वही container image और HTTP interface बनाए रखते हुए research agent को Docker·Modal·Kubernetes के तीन चरणों में डिप्लॉय करता है
Claude Managed Agents
- यूज़र को याद रखने वाला एजेंट बनाना: Memory स्टोर का उपयोग करके कई interactions में यूज़र की पसंद सीखता और याद रखता है
- Claude Managed Agents से SRE incident response एजेंट बनाना: अलर्ट आने पर logs और runbooks पढ़ता है, root cause ढूंढता है, fix PR खोलता है, और मानव अनुमोदन के बाद merge करता है
- डेटा विश्लेषण एजेंट बनाना: sandbox environment और file mounts का उपयोग करके CSV को interactive charts वाली HTML report में बदलता है
- Slack डेटा विश्लेषण bot बनाना: bot को CSV के साथ mention करने पर thread में analysis report बनाता है और उसी session में आगे की बातचीत भी सपोर्ट करता है
- Managed Agents ट्यूटोरियल: failing tests के सेट को सुधारना: agent, environment, और session creation, file mounts, और streaming event loop का उपयोग करके
calc.pypackage के तीन bugs ठीक करता है - Managed Agents ट्यूटोरियल: production setup: vault-based MCP credentials, long-lived connection के बिना human-in-the-loop के लिए
session.status_idledwebhook, और resource lifecycle CRUD को कवर करता है - Managed Agents ट्यूटोरियल: prompt versioning और rollback: server पर v1 बनाकर labeled test set से evaluate करता है, फिर v2 regression detect करके session को version 1 पर pin करता है
agents.update,sessions.createमें version pinning, और prompt code न होने पर review gate कहाँ शिफ्ट होता है, यह शामिल है
मेमोरी और context management
- Context engineering: memory, compression, और tool removal: long-running agents में हर strategy को कब लागू करना है, उसकी cost क्या है, और उन्हें कैसे combine करना है, इसकी तुलना करता है
- Session memory compaction: background threading और prompt caching से long conversations की session memory को तुरंत compact करता है
- Automatic context compaction: long agent workflows में conversation history को अपने आप compact करके context limits manage करता है
- Claude Sonnet 4.6 में memory और context management: Claude के memory tools और context editing से persistent memory agent बनाता है
- Speculative prompt caching: यूज़र के query टाइप करते समय cache पहले से तैयार करके time to first token कम करता है
- Claude API में prompt caching: prompt context को cache और reuse करके लागत और response time कम करता है
Tool use और external integration
- Programmatic tool calling: Claude से code execution environment में tool-calling code लिखवाकर latency और token usage कम करता है
- Embeddings से tool search: semantic embeddings आधारित dynamic search से Claude applications को हज़ारों tools तक scale करता है
- Claude 3.7 Sonnet में parallel tool calling: workaround के रूप में batch-tool meta pattern का उपयोग करके parallel calls सक्षम करता है
- Tool choice:
tool_choiceparameter से Claude के tool selection को force या automate करता है - Pydantic और Anthropic tool use को जोड़ने वाला memory storage tool: Pydantic models से validated type-safe tools बनाता है
- Claude में calculator tool का उपयोग: arithmetic operations और math problems हल करने के लिए calculator tool देता है
- Client-side tools से customer service एजेंट बनाना: customer lookup और order management tools इस्तेमाल करने वाला chatbot बनाता है
- Claude और tool use से structured JSON extraction: कई inputs से structured JSON data निकालता है
- Claude में Wolfram Alpha LLM API को tool की तरह इस्तेमाल करना: calculation queries और answers के लिए Wolfram Alpha LLM API integrate करता है
- Threat intelligence enrichment एजेंट: कई threat intelligence sources से indicators of compromise की जांच और cross-verify करके, उन्हें MITRE ATT&CK से map करता है और SIEM·SOAR के लिए reports बनाता है
सर्च·RAG·नॉलेज प्रोसेसिंग
- Claude से knowledge graph बनाना: असंरचित टेक्स्ट से entities और relationships निकालकर, duplicates हटाकर multi-hop graph queries को सपोर्ट करता है
- Claude का उपयोग करके Text-to-SQL: RAG, chain of thought, और self-improvement तकनीकों से natural language को SQL में बदलता है
- contextual retrieval से RAG बेहतर बनाना: embedding से पहले chunks में context जोड़कर और prompt caching लागू करके RAG की accuracy बढ़ाता है
- retrieval-augmented generation: summary indexing और reranking से RAG system बनाता और optimize करता है
- Claude का उपयोग करके classification: insurance tickets के लिए RAG और chain of thought का उपयोग करने वाला classification system बनाता है
- citations: document-based queries के लिए verifiable detailed source citations देता है
- Claude 3 Haiku से web page content का सारांश: URL से content लाकर Claude 3 Haiku से उसका सारांश बनाता है
- Claude से SQL queries बनाना: database schema context देकर natural language questions से SQL generate करता है
- Pinecone का उपयोग करके retrieval-augmented generation: Claude को Pinecone vector database से जोड़कर RAG और semantic search लागू करता है
- Claude 3 और MongoDB से RAG system बनाना: tech news को knowledge base के रूप में इस्तेमाल करने वाला Claude·MongoDB chatbot बनाता है
- Claude 3 RAG agent और LangChain v1: LangChain v1 के updated agent framework patterns से RAG agent बनाता है
- multi-document agents: DocumentAgents और ReAct pattern से बड़े document collections के लिए RAG बनाता है
- LlamaIndex का उपयोग करके RAG pipeline: document retrieval और question answering के लिए basic pipeline बनाता है
- RouterQuery engine: LlamaIndex
RouterQueryEngineसे queries को अलग-अलग indexes तक भेजता है - SubQuestionQueryEngine: complex queries को कई documents में फैले sub-questions में तोड़ता है
- API के जरिए PDF को Claude में ‘upload’ करना: text extraction और encoding से PDF documents को process और summarize करता है
- Claude से Wikipedia पर iterative search: Claude 2 के साथ Wikipedia पर iterative search करने वाले research workflow की legacy notebook है
मल्टीमॉडल·वॉइस·डॉक्यूमेंट्स
- image analysis बेहतर बनाने के लिए crop tool देना: charts, documents, और diagrams के specific areas को zoom करके विस्तार से analyze करता है
- Claude में vision और tools साथ इस्तेमाल करना: image understanding और tools को मिलाकर nutrition labels जैसी images से structured data निकालता है
- Claude vision के लिए best practices: image processing performance बढ़ाने वाली techniques और tips देता है
- शुरुआत: Claude को image भेजना: Claude 3 API में images भेजकर vision-based text analysis करता है
- Claude से document transcription: images और PDFs से असंरचित टेक्स्ट निकालकर उसे structured बनाता है
- charts·graphs·slide decks के साथ काम: Claude vision से charts, graphs, और presentations से जानकारी निकालता है
- multimodal: LlamaIndex की Anthropic MultiModal LLM abstraction से image understanding और reasoning करता है
- ElevenLabs का उपयोग करके low-latency voice assistant: ElevenLabs की speech-to-text और text-to-speech capabilities को Claude के साथ जोड़ता है
- Deepgram से audio transcribe करना और Anthropic से interview questions तैयार करना: audio को transcribe करके Claude से interview questions generate करता है
प्रतिक्रिया·तर्क·प्रॉम्प्ट
- विस्तारित सोच: बजट प्रबंधन के साथ Claude की step-by-step विस्तारित सोच का उपयोग करता है
- टूल उपयोग के साथ संयुक्त विस्तारित सोच: बहु-चरणीय workflow में विस्तारित सोच और टूल्स को जोड़ता है
- फ्रंटएंड एस्थेटिक्स के लिए prompting: सामान्य एस्थेटिक्स से बचते हुए अलग पहचान वाला और polished फ्रंटएंड बनाने के लिए प्रॉम्प्ट लिखने का तरीका बताता है
- Claude से सारांश: मूल्यांकन और उन्नत तकनीकों सहित कानूनी दस्तावेज़ों का सारांश बनाता है
- अधिकतम टोकन सीमा से आगे Claude response sampling: prefill और message continuation के साथ
max_tokensसे लंबा response जनरेट करता है - Metaprompt: blank page समस्या को कम करने के लिए काम शुरू करने वाला प्रॉम्प्ट बनाता है
- Claude में ‘JSON mode’ prompting: constrained sampling के बिना प्रॉम्प्टिंग तकनीकों से भरोसेमंद JSON output प्राप्त करता है
- Message Batches API का उपयोग कर batch processing: बड़े पैमाने के अनुरोधों को async तरीके से प्रोसेस करता है और लागत 50% कम करता है
Skills और कार्य अनुप्रयोग
- वित्तीय अनुप्रयोगों के लिए Claude Skills: Excel·PowerPoint·PDF Skills से वित्तीय dashboard और portfolio analysis बनाता है
- Claude के लिए custom Skills बनाना: संगठन-विशिष्ट workflow को विस्तार देने वाले Skills को बनाता, deploy करता और प्रबंधित करता है
- Claude Skills परिचय: Excel·PowerPoint·PDF Skills से दस्तावेज़ निर्माण, data analysis और workflow automation करता है
- Amazon Bedrock पर Claude 3 Haiku को fine-tune करना: कस्टम कार्यों के लिए Amazon Bedrock पर Claude 3 Haiku को fine-tune करने की प्रक्रिया देता है
- उपयोग और लागत Admin API Cookbook: Admin API से Claude API उपयोग और लागत डेटा तक प्रोग्रामेटिक पहुंच और विश्लेषण करता है
LlamaIndex एजेंट पैटर्न और कम्युनिटी योगदान
- ReAct एजेंट: LlamaIndex के साथ टूल-आधारित तर्क और action workflow चलाने वाला ReAct एजेंट बनाता है
- नए Cookbook आइडियाज़ के लिए कम्युनिटी योगदान स्वीकार किए जा रहे हैं, और योगदान गाइड प्रदान की गई है
1 टिप्पणियां
Hacker News की राय
सच कहूँ तो लगभग सभी AI उपयोग गाइड अर्थहीन लगते हैं। तरीका तो सीधे AI से पूछ सकते हैं, और अगर बात AI के इस्तेमाल की है, तो या तो उसे harness में built-in होना चाहिए या वह इतनी छोटी feature है कि Anthropic/OpenAI के उसे implement करने का इंतज़ार किया जा सकता है
agent workflow, memory management, harness engineering जैसी चीज़ें भी ज़्यादातर दिखावे जैसी लगती हैं
नए AI techniques या frameworks भी 3 महीने के चक्र में absorb या replace हो जाते हैं, इसलिए उनमें निवेश करना कम मूल्यवान लगता है
.mdfiles में तरह-तरह की बातें भरकर context को प्रदूषित कर देते हैंआखिरकार LLM से ही ऐसी सामग्री खोजवानी पड़ती है, इसलिए यह इंसानों से ज़्यादा LLM के लिए बनी सामग्री भी हो सकती है
इसलिए जब तक बहुत ज़रूरी न हो, plugins और MCP से बचता हूँ और वफ़ादार prompts इस्तेमाल करता हूँ। इससे पुराने optimizations को LLM पर थोपकर उसकी प्रगति रोकने से भी बचा जा सका
फ्रंटएंड aesthetics prompting की before/after images तो हँसी का विषय हैं। लगता है किसी ने यह जाँचा ही नहीं कि इस skill ने सच में design सुधारा भी या नहीं
फ्रंटएंड aesthetics prompting का परिणाम पहले सादा है, और बाद में gradient जुड़ी हुई सादगी बन जाता है
घर पर Matt Pocock के skills इस्तेमाल कर रहा हूँ और वे काफ़ी शानदार हैं। वे auto-call नहीं होते, बल्कि user खुद invoke करता है, इसलिए सिर्फ मौजूद रहने भर से ज़्यादा context नहीं घेरते
वे programmer को अंतिम नतीजे से बाहर नहीं करते, बल्कि उसे परिणाम पर और गहराई से सोचने के लिए प्रेरित करते हैं। grill skills असली requirements साफ़ करने में मदद करते हैं, और prototype skill उन हिस्सों को explore करने में मदद करता है जहाँ सही फ़ैसला लेने के लिए खुद अनुभव करना ज़रूरी होता है
OpenAI Cookbook भी उपयोगी है। दूसरी AI labs भी GitHub और Hugging Face पर examples और cookbooks अक्सर जारी करती हैं, इसलिए उन पर नज़र बनाए रखना फायदेमंद है
coding agents backend की तुलना में frontend में कहीं ज़्यादा buggy, टूटे हुए, अधूरे और अजीब features देते हैं। इसकी वजह दोनों क्षेत्रों की verifiability में अंतर लगती है, और सिर्फ basic test suite काफ़ी नहीं है
Garry Tan का gstack जैसा approach ठीक लगता है, लेकिन adoption लायक mature है या नहीं, पता नहीं। कुछ लोग कहते हैं कि Gemini 3.5 Flash frontend काम में Opus या GPT-5.5 से बेहतर है; शायद multimodal क्षमता या Chrome की समझ की वजह से, लेकिन असली user evaluation जानने की उत्सुकता है
creative results चाहिए हों तो ज़्यादा स्पष्ट माँग करनी पड़ती है, लेकिन standard frontend design के लिए अच्छा है। हालांकि मैं इसे मनमानी features जोड़ने या बदलाव के लिए नहीं, बल्कि ideas आज़माने के लिए ही इस्तेमाल करता हूँ
मुझे लगा यह LLM से भरोसेमंद और वास्तव में पकाई जा सकने वाली recipes बनाने वाली असली cookbook है, लेकिन शायद अभी हम वहाँ तक नहीं पहुँचे हैं
recipe मिलने के बाद “इसे और स्वादिष्ट बना दो” एक-दो बार कहकर नतीजा देखना भी मज़ेदार होता है
मुझे लगा यह Claude से recipes generate करने वाला नया product है
cookbook लागू करने से पहले और बाद का design, दोनों ही vibe coding से बने हुए लगते हैं। मैं designer नहीं हूँ इसलिए सही वजह नहीं बता सकता, लेकिन Claude की शैली की range कुछ सीमित सी लगती है
शायद ज़रूरी बदलावों को और ज़्यादा specific तरीके से बताने पर इस प्रवृत्ति को दबाया जा सके
UI को कम से कम एक बार review किया जाना चाहिए था। साधारण table spacing तक ठीक से align नहीं हुई