█

AI/TLDR

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

CodeMachine

एक CLI जो Claude Code, Codex और दूसरे coding agents को चलाने के तरीके को किसी भी प्रोजेक्ट पर दोबारा चलाए जा सकने वाले मल्टी-एजेंट वर्कफ़्लो में बदल देता है

Coding-Agent Harnesses & Runtimesओपन सोर्स
ताज़ा
v0.8.0
अपडेट किया गया
2 फ़र॰ 2026
भाषा
TypeScript
लाइसेंस
Apache-2.0
$npm install -g codemachine

नया क्या है

v0.8.02 फ़र॰ 2026

Nova beta release: an autonomous mode where controller agents run whole workflows, mid-run pause/resume with crash recovery, MCP-based agent coordination, tracks and conditions, an import system for shareable workflows, and a rebuilt terminal UI.

संक्षेप में

CodeMachine क्या है?

CodeMachine एक CLI जो Claude Code, Codex और दूसरे coding agents को चलाने के तरीके को किसी भी प्रोजेक्ट पर दोबारा चलाए जा सकने वाले मल्टी-एजेंट वर्कफ़्लो में बदल देता है. यह AI Coding टूल्स की Coding-Agent Harnesses & Runtimes श्रेणी में आता है; ओपन सोर्स है, TypeScript में लिखा गया है और Apache-2.0 लाइसेंस के तहत है।

अपडेट किया गया Markdown वर्शन ↗

सारांश

CodeMachine एक ओपन सोर्स command-line टूल है, जो AI coding agents को दोहराए जा सकने वाले, लंबे समय तक चलने वाले वर्कफ़्लो में व्यवस्थित करता है। इसका आधार यह है कि coding agent के साथ हर सेशन पहले से एक प्रक्रिया पर चलता है — bug के लिए reproduce, analyse, plan, implement, test; और feature के लिए research, design, code, review — लेकिन यह प्रक्रिया आपके दिमाग में रहती है और हर बार शुरू से दोबारा बनानी पड़ती है। CodeMachine आपको इसे एक बार workflow के रूप में दर्ज करने देता है, और अगले प्रोजेक्ट पर फिर से चलाने देता है।

वीडियोThe maintainers' demo of building a workflow once and running it with CodeMachine.CodeMachine ↗

यह अपना खुद का model या agent नहीं देता। यह उन coding CLIs के ऊपर एक orchestration layer है जो आप पहले से इस्तेमाल करते हैं: यह हर engine को उसके आधिकारिक headless scripting mode के ज़रिए चलाता है जिसे वह automation के लिए दस्तावेज़ित करता है, arguments और flags पास करता है, और execution, context passing और steps के बीच coordination संभालता है। दस्तावेज़ में Claude Code, Claude Code Router, Codex, OpenCode, Cursor, Mistral Vibe और Auggie CLI को engines के रूप में सूचीबद्ध किया गया है, और workflow में हर agent को अपना अलग engine, model और reasoning effort तय करने की सुविधा है — यानी एक step एक engine पर योजना बना सकता है जबकि दूसरा step किसी अलग engine पर implement करता है।

Workflow agent steps का एक क्रम है जो context को आगे बढ़ाते हैं। इस core के आसपास ये चीज़ें हैं: modules (ऐसे agents जो तब तक loop करते हैं जब तक लक्ष्य पूरा न हो), sub-agents जिन्हें main agent काम सौंपता है, tracks (चुनने योग्य विकल्प, जैसे एक तेज़ रास्ता और एक विस्तृत रास्ता), condition groups जो steps को चालू या बंद करते हैं, और एक वैकल्पिक controller agent जो automation शुरू होने से पहले बातचीत में requirements इकट्ठा करता है। एक ही workflow पूरी तरह interactive, पूरी तरह autonomous (जहाँ controller आपकी ओर से agents चलाता है), बिना किसी interaction के continuous, या इनके hybrid रूप में चल सकता है। Execution history एक local SQLite registry में रखी जाती है, workflows बीच में pause होकर बाद में resume हो सकते हैं, और workflow packages को GitHub से import करके टीम में साझा किया जा सकता है। पहला workflow बनाने में मदद के लिए एक डिफ़ॉल्ट Ali Workflow Builder workflow है, जो इसे interactively बनाने में मदद करता है। यह TypeScript में लिखा गया है और Apache-2.0 लाइसेंस के तहत है।

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

  • मौजूदा coding CLIs को ऑर्केस्ट्रेट करता है — Claude Code, Claude Code Router, Codex, OpenCode, Cursor, Mistral Vibe और Auggie CLI — उनके आधिकारिक headless automation modes के ज़रिए
  • config/main.agents.js में हर agent के लिए engine, model और reasoning-effort सेटिंग्स, ताकि अलग-अलग steps अलग engines इस्तेमाल कर सकें
  • चार orchestration patterns: interactive, autonomous (एक controller agent steps चलाता है), continuous auto-advance, और hybrid
  • एक ही command से parallel (&) और sequential (&&) agent runs, codemachine run के साथ, जिसमें agent को file inputs भी दिए जा सकते हैं
  • Workflow के building blocks: looping modules, sub-agents, tracks, condition groups, separators और एक वैकल्पिक specification brief
  • pause/resume के साथ लंबे समय तक चलने वाला execution, और हर agent run के engine, model, timing, status और token usage का एक local SQLite registry
  • Shareable workflow packages जो codemachine import owner/repo से इंस्टॉल होते हैं, और एक terminal UI जो दिखाता है कि हर agent क्या कर रहा है

शुरू करें

आपको npm के साथ Node.js चाहिए (bun, pnpm या yarn भी चलते हैं) और कम से कम एक supported AI engine CLI, जिसमें आप sign in कर सकें, जैसे Claude Code, Codex या OpenCode।

CLI इंस्टॉल करें

पैकेज दो बराबर commands इंस्टॉल करता है, codemachine और cm।

bashbash
npm install -g codemachine

Interactive session शुरू करें

इसे उसी प्रोजेक्ट के अंदर चलाएं जिस पर आप काम करना चाहते हैं; -d इसे किसी दूसरी workspace directory की ओर इंगित करता है।

bashbash
codemachine

अपने engines में sign in करें

Session के अंदर, हर AI engine को authenticate करें जिसे आपका workflow इस्तेमाल करता है (shell से codemachine auth login भी यही काम करता है)।

टेक्स्टटेक्स्ट
/login

Workflow चुनें और उसे शुरू करें

कोई template चुनें — डिफ़ॉल्ट Ali Workflow Builder है, जो आपको अपना workflow डिज़ाइन करने में मदद करता है — फिर उसे शुरू करें। Tracks या conditions वाले workflows शुरू होने से पहले कुछ onboarding सवाल पूछते हैं।

टेक्स्टटेक्स्ट
/templates
/start

Shell से सीधे agents चलाएं

codemachine run बिना TUI के नाम वाले agents चलाता है: & उन्हें parallel में चलाता है, && क्रम में।

bashbash
codemachine run "code-generator 'Build login feature'"
codemachine run "frontend 'UI' & backend 'API'"
codemachine run "db 'setup' && backend 'models'"

हर agent के लिए engines और models तय करें

Agents config/main.agents.js में घोषित किए जाते हैं; engine (claude, ccr, codex, opencode, cursor, mistral या auggie) सेट करें और चाहें तो model भी। सिर्फ engine सेट होने पर उस engine का डिफ़ॉल्ट model इस्तेमाल होता है।

jsjs
export const mainAgents = {
  'my-code-generator': {
    id: 'my-code-generator',
    promptPath: 'agents/code-generator/main.prompt.md',
    engine: 'claude',
    model: 'opus',
  },
};

साझा workflow package import करें

bashbash
codemachine import moazbuilds/pack-rust
codemachine import --list

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

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

  • अपनी टीम की bug-fix या feature प्रक्रिया को एक बार दर्ज करें और हर repository पर एक ही तरीके से चलाएं, बजाय इसके कि हर step पर agent को बार-बार prompt दें
  • किसी काम को अलग-अलग engines में बांटें — एक coding CLI से योजना बनाएं, दूसरी से implement करें, तीसरी से review करें — बिना context को हाथ से एक से दूसरे में कॉपी किए
  • कई घंटों तक चलने वाले, कई steps वाले build को autonomously चलने दें, और pause या crash के बाद उसे resume करें
  • किसी आज़माए हुए workflow को prompts के wiki पेज की बजाय import होने वाले package के रूप में सहकर्मियों के साथ साझा करें

वर्शन इतिहास

Every verified update to CodeMachine that AI/TLDR tracked, newest first — each links to our coverage and the official changeset.

  1. 2 फ़र॰ 2026v0.8.0

    Nova beta release: an autonomous mode where controller agents run whole workflows, mid-run pause/resume with crash recovery, MCP-based agent coordination, tracks and conditions, an import system for shareable workflows, and a rebuilt terminal UI.

  2. 22 नव॰ 2025v0.7.0

    Moved the runtime from Node.js to Bun, replaced the terminal UI with OpenTUI, swapped the JSON agent registry for SQLite, and added Auggie CLI as an engine.

How CodeMachine compares

CodeMachine alongside other open-source coding-agent harnesses & runtimes tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
CC Switch★ 159kआपकी चलाई हर coding-agent CLI की provider configuration संभालने वाला एक desktop app
Oh My OpenAgent★ 71.3kएक keyword से चलने वाला, OpenCode और Codex CLI के लिए पहले से कॉन्फ़िगर्ड multi-agent बंडल
herdr★ 53.9kशेल सेशन की जगह लंबे समय तक चलने वाले coding agents के लिए नए सिरे से बना एक terminal multiplexer
oh-my-claudecode★ 41.2kClaude Code के ऊपर मल्टी-एजेंट ऑर्केस्ट्रेशन
DSH Go★ 36.9kएक Android ऐप जो DeepSeek Harness को फ़ोन पर ही चलाता है, या आपके कंप्यूटर पर चल रहे DSH को रिमोट से कंट्रोल करता है
AionUi★ 34.6kऐसा डेस्कटॉप वर्कस्पेस जो अपना एजेंट और दो दर्जन CLI एजेंट एक ही इंटरफ़ेस में चलाता है
cc-connect★ 16.5kTerminal की जगह Slack, Telegram या Feishu से अपना लोकल coding agent चलाएं
CodeMachine★ 2.5kएक CLI जो Claude Code, Codex और दूसरे coding agents को चलाने के तरीके को किसी भी प्रोजेक्ट पर दोबारा चलाए जा सकने वाले मल्टी-एजेंट वर्कफ़्लो में बदल देता है