Prime Agent क्या है?
Prime Agent Prime Intellect का ओपन सोर्स coding और research agent, जो persistent Python REPL के अंदर Recursive Language Model चलाता है और अपनी harness state खुद सुधारता है।. यह AI Coding टूल्स की Autonomous Coding Agents श्रेणी में आता है; ओपन सोर्स है, TypeScript में लिखा गया है और MIT लाइसेंस के तहत है।
सारांश
Prime Agent, Prime Intellect का ओपन सोर्स coding और research agent है, जो general और लंबे समय तक चलने वाले कामों के लिए बनाया गया है। यह दो विचारों पर आधारित है। Recursive Language Model (RLM) context को variables की तरह देखता है, यानी prompt-as-a-variable, और tools, जिनमें recursive subagents भी शामिल हैं, persistent Python REPL के अंदर function calls की तरह चलाता है। Continual Harness supplemental prompts, memories, skill descriptions और दोबारा इस्तेमाल होने वाली subagent specifications को durable state के रूप में सहेजता है, जिसे agent छोटे, evidence-backed updates के ज़रिए सुधार सकता है। डिफ़ॉल्ट रूप से यह state उसी session तक सीमित रहती है।
व्यवहार में इसका मतलब है कि REPL agent का मुख्य interface बन जाता है। File operations, shell commands, tool use, subagent spawning और context management, सब कुछ एक fixed tool schema की जगह code के ज़रिए होता है। `rlm(...)` parallel या background काम के लिए असली child agents शुरू करता है और उनके नतीजे programmatically लौटाता है। Skills importable Python packages होती हैं, और `/refine` मौजूदा trajectory की समीक्षा करता है और supplemental harness state में छोटे updates लागू करता है। वह immutable base system prompt को कभी दोबारा नहीं लिखता, और हर refinement को rollback करने के लिए recorded snapshots रखे जाते हैं।
यह harness एक single terminal से ज़्यादा देर तक टिकने के लिए बनाया गया है। Daemon-backed sessions terminal disconnect होने पर भी चलते रहते हैं और बाद में दोबारा attach किए जा सकते हैं। Agents एक-दूसरे को सीधे message कर सकते हैं और एक-दूसरे के काम को दिशा दे सकते हैं। Automatic compaction, persistent goals, heartbeats और schedules लंबे tasks को कई turns में आगे बढ़ाते रहते हैं। README साफ़ कहता है कि यह security boundary नहीं है। Prime Agent model-generated Python और project commands को आपकी user permissions के साथ चलाता है, और इसके worker और kernel processes lifecycle isolation और recovery बेहतर बनाते हैं, sandboxing नहीं करते। Untrusted code या instructions को किसी external sandbox में ही चलाना चाहिए।
यह क्या करता है
- Recursive Language Model design: context को variables के रूप में, और tools व subagents को persistent Python REPL में function calls के रूप में रखना
- rlm(...) के ज़रिए built-in subagents, जो parallel या background काम के लिए असली child agents शुरू करते हैं और नतीजे programmatically लौटाते हैं
- Continual Harness और /refine: durable supplemental prompts, memories और skill specs, जिन्हें agent evidence के साथ अपडेट करता है, और rollback के लिए snapshots
- Executable skills, जो importable Python packages के रूप में आते हैं, और दोहराए जाने वाले workflows के लिए built-in skill creator
- Daemon-backed sessions, जो terminal disconnect के बाद भी चलते रहते हैं, साथ में heartbeats, schedules, persistent goals और automatic compaction
- Direct agent-to-agent messaging, ताकि चल रहे agents एक-दूसरे को खोज सकें और एक-दूसरे के काम को दिशा दे सकें
शुरू करें
macOS या Linux पर released binary इंस्टॉल करें, फिर उस directory में agent शुरू करें जहाँ आप उसे काम करवाना चाहते हैं। Installer release के SHA-256 checksum की जाँच करता है और agent जिस Python runtime का इस्तेमाल करता है, उसे तैयार भी कर सकता है।
इंस्टॉल करें
Install script एक versioned release डाउनलोड करता है और prime-agent command इंस्टॉल करता है।
curl -fsSL https://app.primeintellect.ai/prime-agent/install.sh | shकिसी project में शुरू करें
Prime Agent मौजूदा directory में काम करता है और वहाँ commands चला सकता है और files बदल सकता है। README एक disposable clone, एक clean worktree, या कोई और checkpoint रखने की सलाह देता है, जिसे आप जाँच और restore कर सकें। पहली बार शुरू करने पर subscription या API-key provider चुनने के लिए /login चलाएँ।
cd /path/to/project
prime-agentSessions मैनेज करें
Sessions daemon-backed हैं, इसलिए detach करने के बाद भी चलते रहते हैं। ये commands उन्हें browse, reattach और resume करने देते हैं।
prime-agent agents
prime-agent attach <agent>
prime-agent --resume [path|id]Background services की जाँच और देखरेख करें
doctor background services की जाँच या मरम्मत करता है; shutdown हर agent, worker और service को रोक देता है।
prime-agent status
prime-agent doctor [--fix]
prime-agent update [--force]
prime-agent shutdown [--force]लंबे task को खुद आगे बढ़ने दें
/goal agent के सामने एक objective बनाए रखता है, /refine समीक्षा योग्य lessons को supplemental harness state में सहेजता है, और prime-agent schedule तय समय पर session को फिर से शुरू करता है।
/goal
/refine
/heartbeatकमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।
कब इस्तेमाल करें
- लंबे समय चलने वाले coding या research काम चलाएँ, जो terminal disconnect और context limits के बावजूद चलते रहें
- Fixed tool schema की जगह Python REPL के अंदर से एक task को parallel subagents में बाँटें
- दोहराए जाने वाले workflows को बार-बार के prompts की जगह दोबारा इस्तेमाल होने वाली, importable skills में बदलें
- Agent evaluations और research experiments चलाएँ, जहाँ trajectories और harness refinements को record और rollback करना ज़रूरी हो
How Prime Agent compares
Prime Agent alongside other open-source autonomous coding agents tools AI/TLDR tracks, ranked by GitHub stars.
| टूल | स्टार | यह क्या करता है |
|---|---|---|
| opencode | ★ 231k | आपके टर्मिनल के लिए ओपन सोर्स AI कोडिंग एजेंट |
| Claude Code | ★ 158k | Anthropic का एजेंटिक कोडिंग टूल, जो आपके टर्मिनल में रहता है, आपके codebase को समझता है और सामान्य काम व git workflows को प्राकृतिक भाषा के निर्देशों से संभालता है |
| Orca | ★ 151k | कई CLI कोडिंग एजेंट साथ-साथ चलाएं, हर एक अपने अलग git worktree में |
| OpenAI Codex | ★ 137k | OpenAI का कोडिंग एजेंट: लोकल चलने वाला ओपन सोर्स CLI, और IDE, डेस्कटॉप ऐप व क्लाउड (Codex Web) वाले विकल्प भी |
| Pi | ★ 125k | एक न्यूनतम टर्मिनल कोडिंग एजेंट, जिसे आप फ़ोर्क करने के बजाय TypeScript में बढ़ा सकते हैं |
| Gemini CLI | ★ 110k | Google का ओपन सोर्स AI एजेंट, जो Gemini को सीधे आपके टर्मिनल में ले आता है |
| autoresearch | ★ 101k | एक कोडिंग एजेंट को एक GPU और एक ट्रेनिंग फ़ाइल दीजिए, और उसे रात भर प्रयोग करने दीजिए |
| Prime Agent | ★ 23k | Prime Intellect का ओपन सोर्स coding और research agent, जो persistent Python REPL के अंदर Recursive Language Model चलाता है और अपनी harness state खुद सुधारता है। |
