Agents

Zed 1.22 lets AI subagents choose their own models

Zed 1.22 introduces per-spawn model routing and context compaction, allowing developers to orchestrate diverse AI models directly inside their editor to reduce latency and API costs.

AlphaSignal1 day agoAgents
Image: AlphaSignal

The open-source code editor Zed has launched version 1.22, introducing a native multi-agent workflow that allows a primary AI agent to dynamically assign different models to its subagents. Through the updated spawn_agent tool, developers can now pass an optional model parameter to designate a specific LLM for each spawned worker. If the parameter is omitted, the system defaults to the configured subagent model or the parent agent's model. This allows practitioners to reserve high-tier reasoning models like Claude Opus or GPT-6 Astra for high-level planning, while routing simpler tasks like repository searches or code edits to faster, cheaper models like Haiku, Flash, or local alternatives.

To test this implementation, contributor itsfuad successfully launched five concurrent subagents, mixing ChatGPT subscription models and free OpenRouter models within a single parent thread. To support these longer sessions, Zed 1.22 also introduces automatic context compaction for subagents. When file contents, tool outputs, and chat histories threaten to overflow a model's context window, the editor automatically condenses older history into a brief summary. This prevents workers from stalling during multi-step tasks and reduces the need for developers to manage complex lifecycles using external orchestration frameworks like LangGraph or CrewAI.

The update also streamlines model management by fetching OpenCode's Zen and Go model catalogs directly from the network, meaning new models appear in the picker without requiring a full editor update. Additionally, Zed 1.22 introduces bring-your-own-key support for GPT-6.1 Sol, allowing direct access via an OpenAI API key without a subscription. For xAI users, Grok 4.7 is now set as the default model for SuperGrok. Finally, the release adds a switchable diff layout for command-line diffs to toggle between unified and split views, and introduces a new dock-closing shortcut, ctrl-alt-w, which may conflict with existing custom keybindings.

This is our own summary of reporting by AlphaSignal

More in Agents