█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

little-coder

एक टर्मिनल कोडिंग एजेंट, जिसका हार्नेस इस तरह ट्यून किया गया है कि छोटे लोकल मॉडल असली कोडिंग टास्क पूरे कर सकें

Autonomous Coding Agentsओपन सोर्स
भाषा
TypeScript
लाइसेंस
Apache-2.0
संक्षेप में

little-coder क्या है?

little-coder एक टर्मिनल कोडिंग एजेंट, जिसका हार्नेस इस तरह ट्यून किया गया है कि छोटे लोकल मॉडल असली कोडिंग टास्क पूरे कर सकें. यह AI Coding टूल्स की Autonomous Coding Agents श्रेणी में आता है; ओपन सोर्स है, TypeScript में लिखा गया है और Apache-2.0 लाइसेंस के तहत है। शुरू करने के लिए: इंस्टॉल करें.

सारांश

little-coder एक टर्मिनल कोडिंग एजेंट है, जो एक सवाल को ध्यान में रखकर बनाया गया है: जब मॉडल छोटा हो और आपके अपने लैपटॉप पर चल रहा हो, तो उसके आसपास का स्कैफ़ोल्डिंग कैसा होना चाहिए? यह मान लेने के बजाय कि कोई फ्रंटियर मॉडल धुंधले टूल्स और फैले हुए कॉन्टेक्स्ट से खुद संभल जाएगा, यह मॉडल के हिसाब से हार्नेस बदल देता है: हल्का cold-start कॉन्टेक्स्ट, फ़ाइलें लिखने और एडिट करने के सख्त नियम, और छोटे usage notes जो सिर्फ़ तब डाले जाते हैं जब किसी टर्न को उनकी ज़रूरत हो। इसका मुख्य सेटअप एक लोकल llama.cpp सर्वर है जिस पर Qwen3.6-35B-A3B चलता है, लेकिन यह Ollama, LM Studio, किसी भी OpenAI-compatible सर्वर और Anthropic व OpenAI जैसे hosted providers के साथ भी चलता है।

Terminal-style diagram titled little-coder tool-use flow: for the prompt implement the fizzbuzz exercise, the agent runs Glob, Read on the instructions, Read on fizzbuzz.py, Edit on fizzbuzz.py and Bash running pytest, each with a check mark and output size, ending in All tests pass
A typical little-coder turn: find the files, read before editing, make a targeted edit, then run the tests.little-coder repository ↗

यह pi पर बना है, जो एक न्यूनतम coding-agent substrate है, और इसे fork नहीं किया गया है। pi एजेंट लूप, provider abstraction, TUI, sessions और extension model देता है; little-coder इसमें लगभग तीस TypeScript extensions, तीस skill markdown फ़ाइलें और एक Python benchmark harness जोड़ता है। लॉन्चर pi को `--no-extensions` के साथ चलाता है और ठीक वही bundled set जोड़ता है, जिससे README के अनुसार cold-start कॉन्टेक्स्ट लगभग 7k tokens के आसपास रहता है और व्यवहार अनुमानित बना रहता है। आप अब भी `~/.config/little-coder/extensions/` में अपने extensions जोड़ सकते हैं।

छोटे मॉडल के लिए किए गए बदलाव ही इस प्रोजेक्ट का मकसद हैं। एक write guard `Write` को किसी मौजूदा फ़ाइल को overwrite नहीं करने देता, ताकि मॉडल को पहले उसे पढ़ना पड़े और पूरी फ़ाइल दोबारा generate करने के बजाय एक लक्षित `Edit` करना पड़े। एक read guard ऐसे reads को छोटा कर देता है जो context window से ज़्यादा हो जाएँ। एक output parser गड़बड़ tool calls को ठीक करता है, एक quality monitor खाली, हैलुसिनेटेड या लूप करते जवाबों को पकड़ता है, एक thinking-budget cap thinking बंद करके retry करता है, और एक skill selector हर टर्न के लिए ज़रूरी टूल्स का छोटा card inject करता है। README के अनुसार ये small-model extensions बड़े या cloud मॉडल के लिए अपने आप बंद हो जाते हैं।

इस core के चारों ओर रोज़ के काम आने वाले फ़ीचर्स हैं: Plan Mode, जो read-only sub-coders के साथ रिसर्च करता है, एक से तीन स्पष्टीकरण वाले सवाल पूछता है और कोड छूने से पहले plan लिखता है; अलग-अलग plan और action models, ताकि आप बड़े मॉडल पर plan बना सकें और छोटे मॉडल पर implement करें; एक Deep Research mode जो cited markdown रिपोर्ट बनाता है; background jobs, जो polling के बजाय traceback जैसी घटनाओं पर मॉडल को जगाते हैं; और एक shell-command whitelist, जो `bash` को नियंत्रित करती है। प्रोजेक्ट का white paper, *Honey, I Shrunk the Coding Agent*, बताता है कि इस स्कैफ़ोल्ड ने Qwen3.5-9B को Aider के vanilla baseline 19.11% से Aider Polyglot पर 45.56% तक पहुँचा दिया।

यह क्या करता है

  • छोटे मॉडल के लिए हार्नेस में बदलाव: read-before-edit, ऐसा write guard जो मौजूदा फ़ाइलों को दोबारा लिखने पर रोक लगाता है, tool-call repair, loop और hallucination detection, और हर टर्न के लिए thinking budget
Terminal-style diagram titled little-coder Write guard and recovery: the model tries Write on an existing auth.py, the call is refused with a message to use Edit instead, and on its next turn the model runs Read and then Edit on the same file
The write guard in action: an attempt to overwrite an existing file is refused, and the model recovers by reading the file and editing it.little-coder repository ↗
  • हर टर्न के लिए tool skill cards और algorithm cheat sheets, जो सिर्फ़ ज़रूरत पड़ने पर inject होते हैं और cold-start कॉन्टेक्स्ट को लगभग 7k tokens पर रखते हैं
  • Local-first मॉडल सपोर्ट: llama.cpp, Ollama और LM Studio बिना अतिरिक्त सेटअप के, कोई भी OpenAI-compatible सर्वर models.json override के ज़रिए, और pi के ज़रिए hosted providers
  • read-only research sub-coders और स्पष्टीकरण वाले सवालों के साथ Plan Mode, और अलग plan व action models, जिन्हें /implement से आगे सौंपा जाता है
  • ShellStart के ज़रिए background jobs, जो exit पर, मेल खाती log line पर या चुप्पी पर मॉडल को जगाते हैं, polling के बजाय
  • shell permission gate, जिसमें safe-prefix whitelist है; इसे LITTLE_CODER_BASH_ALLOW से बढ़ाया जा सकता है या manual approval पर बदला जा सकता है

शुरू करें

little-coder एक npm package है, जिसके लिए Node.js 22.19 या उसके नए संस्करण की ज़रूरत है। इसे globally इंस्टॉल करें, एक लोकल मॉडल सर्व करें (या cloud API key सेट करें), और अपनी प्रोजेक्ट डायरेक्टरी से लॉन्च करें।

इंस्टॉल करें

एक-लाइन installer और npm समान हैं; bun से भी इंस्टॉल हो सकता है, लेकिन लॉन्चर अब भी Node.js पर ही चलता है।

bashbash
curl -fsSL https://raw.githubusercontent.com/itayinbarr/little-coder/main/install.sh | bash

# or
npm install -g little-coder

लोकल मॉडल सर्व करें

सबसे सरल तरीका Ollama है। README का ट्यून किया हुआ सेटअप है llama.cpp पर Qwen3.6-35B-A3B को port 8888 पर सर्व करना, जिसमें MoE experts को system RAM में रखा जाता है ताकि वह 8 GB GPU में फिट हो जाए; LM Studio भी काम करता है।

bashbash
curl -fsSL https://ollama.com/install.sh | sh
ollama pull qwen3.5

Placeholder API key सेट करें

pi को provider की key variable में कोई मान चाहिए, भले ही लोकल सर्वर उसे नज़रअंदाज़ करते हों। cloud मॉडल के लिए इसके बजाय सामान्य `ANTHROPIC_API_KEY` या `OPENAI_API_KEY` सेट करें।

bashbash
export OLLAMA_API_KEY=noop
export LLAMACPP_API_KEY=noop

अपने प्रोजेक्ट में लॉन्च करें

जिस डायरेक्टरी से आप लॉन्च करते हैं, वही एजेंट की working directory होती है। केवल `little-coder` चलाने पर models.json से default मॉडल शुरू होता है; `--list-models` में रजिस्टर्ड सभी मॉडल दिखते हैं।

bashbash
cd ~/your-project
little-coder --model ollama/qwen3.5
little-coder --model llamacpp/qwen3.6-35b-a3b
little-coder --list-models

बनाने से पहले plan करें

Plan Mode चालू या बंद करने के लिए Ctrl+Q दबाएँ। little-coder रिसर्च करता है, स्पष्टीकरण वाले सवाल पूछता है और plan `.pi/approved-plan.md` में लिखता है; फिर `/implement` action model पर एक नया session शुरू करता है। यही flow headless मोड में भी काम करता है।

bashbash
little-coder -p --plan-mode "add rate limiting to the ingest endpoint"

अपने build commands की अनुमति दें

बिल्ट-इन whitelist के बाहर की shell calls डिफ़ॉल्ट रूप से ब्लॉक रहती हैं। आपके प्रोजेक्ट को जिन prefixes की ज़रूरत है उन्हें जोड़ें, या manual approval पर स्विच करें।

bashbash
export LITTLE_CODER_BASH_ALLOW="make ,docker compose ps"
# or prompt before every shell command and edit
export LITTLE_CODER_PERMISSION_MODE=manual

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • इसे तब चुनें जब आपको ऐसा कोडिंग एजेंट चाहिए जो open-weight मॉडल के साथ लैपटॉप GPU पर पूरी तरह offline चले
  • इसे तब चुनें जब कोई general-purpose एजेंट आपके छोटे लोकल मॉडल पर बार-बार भटक जाए: पूरी फ़ाइलें दोबारा लिखना, गड़बड़ tool calls भेजना या लूप में फँस जाना
  • इसे तब इस्तेमाल करें जब आप बड़े मॉडल पर plan बनाना और छोटे, तेज़ मॉडल पर implement करना चाहते हों, बिना मॉडल हाथ से बदले
  • इसे तब चुनें जब आप देखना चाहते हों कि scaffold design से छोटे-मॉडल के नतीजे कैसे बदलते हैं, और इसके bundled extensions व benchmark harness को शुरुआती बिंदु की तरह इस्तेमाल करना चाहते हों

How little-coder compares

little-coder alongside other open-source autonomous coding agents tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
opencode★ 231kआपके टर्मिनल के लिए ओपन सोर्स AI कोडिंग एजेंट
Claude Code★ 158kAnthropic का एजेंटिक कोडिंग टूल, जो आपके टर्मिनल में रहता है, आपके codebase को समझता है और सामान्य काम व git workflows को प्राकृतिक भाषा के निर्देशों से संभालता है
Orca★ 151kकई CLI कोडिंग एजेंट साथ-साथ चलाएं, हर एक अपने अलग git worktree में
OpenAI Codex★ 137kOpenAI का कोडिंग एजेंट: लोकल चलने वाला ओपन सोर्स CLI, और IDE, डेस्कटॉप ऐप व क्लाउड (Codex Web) वाले विकल्प भी
Pi★ 125kएक न्यूनतम टर्मिनल कोडिंग एजेंट, जिसे आप फ़ोर्क करने के बजाय TypeScript में बढ़ा सकते हैं
Gemini CLI★ 110kGoogle का ओपन सोर्स AI एजेंट, जो Gemini को सीधे आपके टर्मिनल में ले आता है
autoresearch★ 101kएक कोडिंग एजेंट को एक GPU और एक ट्रेनिंग फ़ाइल दीजिए, और उसे रात भर प्रयोग करने दीजिए
little-coder★ 2.7kएक टर्मिनल कोडिंग एजेंट, जिसका हार्नेस इस तरह ट्यून किया गया है कि छोटे लोकल मॉडल असली कोडिंग टास्क पूरे कर सकें