{"slug": "qwen-code-1-0-alibaba-open-sources-its-agent-harness", "title": "Qwen Code 1.0: Alibaba Open-Sources Its Agent Harness", "summary": "Alibaba open-sourced the production agent harness behind its proprietary Qoder development tool inside Qwen Code 1.0 Preview on November 11 under the Apache-2.0 license, turning the former terminal coding assistant into an embeddable agent runtime. The release decouples reasoning from tool execution through an in-process event bus, adds SQLite-backed Auto-Memory, Auto-Skills that propose a named skill after detecting the same multi-step workflow three times, parallel Agent Teams, MCP support, and non-interactive mode for CI pipelines, and supports OpenAI, Anthropic, Gemini, Qwen, Ollama and vLLM models with runtime switching. Alibaba retains the same harness in Qoder, but the distributed features — remote execution and multi-node deployment — remain roadmap items rather than shipped code.", "body_md": "Qwen Code was a terminal coding assistant. As of November 11, Alibaba repositioned it into something more interesting: an embeddable agent runtime. The production harness that powers Alibaba’s own Qoder — the machinery that plans multi-step tasks, orchestrates tool calls, and keeps an agent on track across a long job — is now open-sourced inside Qwen Code 1.0 Preview under Apache-2.0. This is not a CLI version bump. It is infrastructure.\n\n## What the Qoder Merger Actually Means\n\nQoder was Alibaba’s proprietary AI-assisted development tool. It ran a production agent harness that the company used internally — handling task planning, tool orchestration, failure recovery, and state persistence across long sessions. That harness is now inside [the open-source Qwen Code project](https://github.com/QwenLM/qwen-code).\n\nThe practical implication: Alibaba still ships Qoder using this exact same harness. What you are getting access to is production-proven agent infrastructure, not a demo. Every other terminal coding CLI — Claude Code, Codex, Aider — is a tool you use. Qwen Code 1.0 is a runtime you can build on top of.\n\n``` js\nimport { createAgentSession } from '@qwenlm/qwen-code';\n\nconst session = await createAgentSession({\n  model: 'qwen-coder-plus', // or any OpenAI/Anthropic/local model\n  workdir: process.cwd(),\n});\n\nawait session.run('Add TypeScript types to all exported functions');\n```\n\nThat four-line embed is new. The stable 0.x branch did not expose this surface.\n\n## The Event Bus: Hand Separated from Brain\n\nThe architectural decision in 1.0 is clean: reasoning (inference) and tool execution are decoupled through an event bus. In the preview, the bus runs in-process and in-memory. Events between the reasoning layer and the execution layer are first-class — observable, interceptable, replayable.\n\nThe [public roadmap](https://qwenlm.github.io/qwen-code-docs/en/users/overview/) is direct about where this goes: in-process today, persistent event log next, remote agent execution after that, full multi-node distributed deployment at the end. If you build on the harness now, the event contract is designed to hold as the backend scales. You are not writing throwaway integration code.\n\n## What You Get: Auto-Memory, Auto-Skills, Agent Teams\n\nBeyond the new harness, Qwen Code ships a full agent development stack:\n\n- **Auto-Memory** : SQLite-backed persistence for conversation history, tool results, and user preferences. Sessions resume where they left off.\n- **Auto-Skills** : If the agent detects the same multi-step workflow three times, it proposes a new named skill. Skills accumulate over time.\n- **Agent Teams** : A leader agent spawns named parallel teammates, delegates subtasks, and consolidates a final report. Useful for large refactors.\n- **MCP** : Connect external tools, databases, and APIs through the Model Context Protocol. Zero extra setup required.\n- **Non-interactive mode** : Session resumption and scripted execution for CI pipelines.\n\n## No Vendor Lock-In, By Design\n\nQwen Code supports OpenAI, Anthropic, Gemini, and Qwen APIs out of the box, plus Ollama and vLLM for local models. You can switch models at runtime without restarting a session. This is a direct contrast to the two most popular alternatives:\n\n| Tool | License | Model Support | Embeddable Harness | \n|---|---|---|---|\n| Claude Code | Proprietary | Anthropic only | No | \n| Codex CLI | Open Source | OpenAI only | Partial | \n| Qwen Code 1.0 | Apache-2.0 | Any | Yes | \n\nFor teams already running multiple models or self-hosting on Ollama, this removes the switching cost entirely.\n\n## Caveats Worth Flagging\n\nThe 1.0 event bus is opt-in; the stable branch is retained separately. The distributed features — remote execution, multi-node — are roadmap items, not shipped code. The harness is production-proven inside Qoder’s closed-source form, but the open-source preview needs community testing before you bet a production system on it.\n\nUse it. Evaluate it. The [community breakdown on DEV.to](https://dev.to/paullovelace/qwen-code-10-is-here-and-its-not-just-a-cli-anymore-4g06) and the [full CLI comparison guide](https://inventivehq.com/blog/terminal-ai-coding-clis-compared-2026) are good starting points for calibrating where it sits in your stack.\n\nThe repository is at [github.com/QwenLM/qwen-code](https://github.com/QwenLM/qwen-code). Apache-2.0. No accounts required.", "url": "https://wpnews.pro/news/qwen-code-1-0-alibaba-open-sources-its-agent-harness", "canonical_source": "https://byteiota.com/qwen-code-1-0-alibaba-open-source-agent-harness/", "published_at": "2026-11-12 15:07:06+00:00", "updated_at": "2026-11-12 15:23:06.710765+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "agent-protocols", "large-language-models"], "entities": ["Alibaba", "Qwen Code", "Qoder", "Claude Code", "Codex CLI", "Aider", "Model Context Protocol", "Ollama"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/qwen-code-1-0-alibaba-open-sources-its-agent-harness", "markdown": "https://wpnews.pro/news/qwen-code-1-0-alibaba-open-sources-its-agent-harness.md", "text": "https://wpnews.pro/news/qwen-code-1-0-alibaba-open-sources-its-agent-harness.txt", "jsonld": "https://wpnews.pro/news/qwen-code-1-0-alibaba-open-sources-its-agent-harness.jsonld"}}