Subscribe free
Morning Merge AI · Friday, December 4, 20265 min read

Qwen 4 puts a 1M-context MoE on your own hardware

Also: Gemini agents take new rules mid-session, Ephyra's 535 bugs, Codex in the cloud

The open model you can run yourself got a lot better overnight with Qwen 4. If you build agents, start with Gemini: it takes new rules mid-session without losing the cache.

The main thing

A clockwork apprentice lifts a violet engine block lined with small drawers, a few pulled open, onto a workbench in front of a huge factory machine.

Qwen 4 ships as a 35B mixture-of-experts you can run today. Qwen4-35B-A3B takes text, images and video in and returns text, with a 1M-token context window and an Apache-2.0 license. Hugging Face says it activates about 3.8B parameters per token.

Day-one support covers transformers, llama.cpp, vLLM, SGLang and MLX, with GGUF and FP8 checkpoints. Ollama v0.40.21 added it overnight.

Reasoning is a dial: reasoning_effort takes "xhigh", "high", "low" or "off", and defaults to high.

The parameter count is worth reading twice. The blog lists about 35B main parameters plus about 20.5B in a per-layer n-gram embedding table, roughly 56B in all. Each token reads just 16 rows of that table.

So more than a third of the model is a lookup table each token barely touches. An HN commenter says it costs no VRAM. The blog doesn't say how runtimes place it, so measure memory on your own box before you size hardware.

The rest of the design explains the 1M window. Three of every four decoder layers use Gated DeltaNet, which keeps a fixed-size memory. The fourth uses Qwen Sparse Attention, which picks up to 2,048 tokens from anywhere in the context.

On quality, Hugging Face calls it comparable to the much larger Qwen 3.8 Flash Next. Another commenter cites Artificial Analysis: 25 on its Intelligence Index, against 28 for Qwen3.8-Flash-Next. If you run a Qwen 3.8 model locally, this is the one to test this week.

Agents that change course mid-run

A clockwork apprentice slips a violet card into the slot of a running conveyor machine, with a clipped stack of earlier cards behind the slot.

Gemini agents can take new rules and tools mid-session without losing the cache. In preview through the Interactions API, you send a system_input step right before user_input on any turn. Google says it carries the same authority as the top-level system instruction and outranks user messages, while earlier turns stay cached.

That removes an annoying tradeoff. Until now you either slipped new rules in as a user message, which users can imitate, or rewrote the system prompt and paid to reprocess the whole history. Tools change through added_tools and removed_tools, for function tools only, not MCP server tools. When instructions conflict, the newest wins.

Codex 0.174.0 starts cloud chats from the terminal. codex --cloud opens a Cloud chat, codex resume --cloud reopens one, and local and Cloud tasks now share the Agent Command Center. For CI users, codex exec honors configured approvals and declines requests that need interactive approval instead of hanging on them.

DigitalOcean MicroVMs are generally available. They're Firecracker VMs, each with its own kernel, pitched at coding-agent sandboxes, eval environments and CI runners. An agent waiting on a human gets paused with its state kept; DigitalOcean says pause and resume take milliseconds and paused VMs incur no compute charges.

API keys are injected on the network path, so code inside the VM never sees them. No pricing yet. AWS, Google and Cloudflare sell the same primitive, which tells you where agent sandboxing has settled.

AI SDK 7.1 adds code mode and a fixed release schedule. In code mode the model writes code that calls your tools in an isolated sandbox, so concurrent calls run together and large responses get filtered before they reach the context.

The schedule may matter more: a feature minor every month, one major each June, and a year of full support for prior majors plus six months of critical security fixes.

Who checks the agent's work

A clockwork apprentice cranks a test rig that tips small blocks into a machine, and a cracked violet gear drops out onto the tray below.

Datadog's Ephyra had coding agents write test generators and found 535 bugs. Engineers write the properties, like "sorting keeps every element", and agents write and improve the random-input generators using feedback from test runs. Across 26 well-tested open source systems, Datadog reports 535 previously unknown bugs, 313 already fixed.

The finds include a 24-year-old memory-safety bug in OCaml and a 13-year-old database corruption in SQLite. Good generators are the slow, expert part of property-based testing, and that's the part the agents took; people still decide what correct means. It's open source at datadog-labs/ephyra, and Datadog calls it experimental.

PRISM shows how an AI test tool's pass rate can mislead. The benchmark scores web-testing tools separately on timing, hitting the right control, and whether the verdict matches what the app recorded. Kane and Momentic had nearly identical overall scores, yet Kane passed a broken flow in nine of 50 scenarios and Momentic in five.

Intent was the weakest score for every system tested. If an AI tool gates your releases, ask for its false-pass count, not its pass rate.

Quick bits

GitHub Copilot adds 17 connectors in public preview. They're GitHub-verified MCP servers, including Azure DevOps, Cypress, Semgrep, PlanetScale and Trello. On Business and Enterprise, an admin must enable the Editor preview features policy, and an MCP allowlist that names connectors one by one needs the new ones added.

Claude Code v2.1.336 is mostly for admins. Organizations managed in Anthropic's Enterprise Admin Console can push hooks and a status line, and set a base URL for Bedrock, Google Cloud's Agent Platform and Microsoft Foundry connections. For everyone else, BASH_DEFAULT_BACKGROUND_TIMEOUT_MS lengthens background shell limits in Agent SDK and cloud sessions.

LangChain Core 1.9.0 gives every message an ID. BaseMessage ids are now assigned by default, and model profiles expose prompt-cache policies. langchain-anthropic 1.8.0 adds AnthropicPauseTurnMiddleware to finish paused turns. If anything keys off message identity, test before upgrading.

Sebastian Raschka measures how far open-weight models trail. On Artificial Analysis's Progress Index, Kimi K3.1 Pro (337) matches where Claude Fable 5.1 was 93 days earlier, and Amazon Ergo (323), the US open-weight leader, matches where Claude Fable 5 was 177 days earlier.

Pull Qwen4-35B-A3B and check what that embedding table really costs on your hardware; that number decides whether it replaces your current local model.

← All Morning Merge AI issues

Get this in your inbox every morning.

Free. Five minutes. Unsubscribe in one click.

Subscribe free →