Every new model release starts a nightmare for on-device inference engines. Upstream, lightweight models iterate ever faster: Gemma 3 to Gemma 3n took about 4 months, MiniCPM-V went from 4.0 to 4.5 in just 24 days, and each generation adds new structure - Qwen3.5 interleaves GatedDeltaNet linear attention with conventional attention, while Gemma4 adds hybrid sliding-window/global attention and per-layer embeddings. Downstream, mobile hardware is fragmented: ARM CPUs, Vulkan GPUs, Qualcomm Hexagon NPUs and MediaTek APUs differ in programming language, tensor layout, compilation flow and runtime semantics. A new study (paper) quantifies the squeeze: enabling Qwen3.5-2B in MNN touched 42 files and over 4.2K lines; ExecuTorch needed 20 files and over 1K lines for text-only CPU support. Of four mainstream on-device engines, two do not support Gemma4-E2B-it and three do not support MiniCPM-V 4.6, with initial enablement taking up to 30 days after model release.

General-purpose coding agents fail here, collectively

The paper first runs a sobering motivation study: six representative coding agents (SWE-Agent, OpenHands, CodePlan, OpenCode, Codex, and a CodeGraph+OpenCode+AgenTracer composite) tried to enable MiniCPM-V 4.6 across three engine-backend pairs. Of 18 cases, exactly one completed end-to-end - on the simplest CPU backend. The failure patterns repeat: agents tweak config paths but miss the dependent vision and runtime implementations; they modify model components without propagating changes across export and execution paths; they stop after an incomplete host-side build and skip device validation. Even Codex powered by GPT-5.6 Sol fell on MNN-CPU this way. Two root causes: these agents reason over files and symbols rather than engine abstraction layers, so they cannot recover the full cross-layer modification scope; and they verify on the host only, with no stable cross-device debugging workflow.

Two pre-built artifacts and one main loop

EngineAgent separates reusable engine and hardware knowledge from model-specific implementation. The first artifact is a hierarchy-aware index: the engine is decomposed from input, graph and operator levels into nine abstraction layers, with code entities attached to layer subgraphs by engine responsibility, explicitly exposing cross-layer dependencies across export, runtime and backends. The second is hardware-aware debug skills: before any new model arrives, the system validates backend-specific build, deploy, test and debug workflows using models the engine already supports. When a new model lands, a builder agent does difference analysis against supported models and implements layer-wise modifications; an independent auditor agent plays red team, running per-layer unit tests and bouncing failures back; after all layers pass, end-to-end on-device validation runs, and a non-agentic verifier compares output logits against PyTorch references - numerical disagreement means rejection.

The scorecard: 9/12 against 4/12

Across 12 enablement tasks (3 mobile models x 4 engine-backend pairs spanning MNN-CPU, llama.cpp-Vulkan, MLC-LLM-OpenCL and ExecuTorch-QNN), EngineAgent succeeds end-to-end on 9 - with either underlying LLM: both DeepSeek-V4-Flash and GPT-5.6 Sol hit 9/12. The strongest baseline, Codex with GPT-5.6 Sol, manages 4/12; OpenCode and the composite baseline each get 1/12; SWE-Agent gets none. Efficiency wins too: with DeepSeek-V4-Flash, EngineAgent averages 3.82 hours and $1.53 per task versus 4.78-4.91 hours and $2.11-$2.44 for baselines; with GPT-5.6 Sol, 4.16 hours and $11.29 versus Codex's 4.82 hours and $14.90. The stage-wise table is starkest: baselines collapse to 0-1/12 at device-side execution, while EngineAgent holds 9/12. Most tasks reset the engine to the commit just before official support landed, so agents must reproduce enablement from scratch with no access to future commits; success requires compilation, on-device execution, and output-logit agreement with PyTorch references. Ablations show the two artifacts earn their keep: removing the hierarchy index drops success from 9/12 to 3/12 and explodes average exploration turns from 42 to 271; removing hardware skills drops it to 5/12 and raises compile/debug failures from 11 to 83.

Two cases that show where the gap is

Enabling Qwen3.5-2B on llama.cpp-Vulkan hinges on the newly introduced linear attention operator: all four baselines died at execution-stage kernel implementation, unable to localize their errors. EngineAgent built unit tests for that kernel directly and iterated the debugging on a real device, finishing in about 4.5 hours. Enabling MiniCPM-V 4.6 on ExecuTorch-QNN, every baseline timed out during export, where each iteration pays the high latency of offline QNN compilation; EngineAgent's hierarchy index pinpointed the changes for the new window-attention vit_merger in one step and completed the export within two attempts.

So what

The one-time construction cost of both artifacts is tiny: the hierarchy index costs $0.66-$1.25 and debug skills $1.83-$2.68 per engine - a few dollars across four engines; incremental updates after each engine commit average about $0.072, roughly 2.5% of the initial build. Turning specialist enablement expertise into reusable infrastructure is economically obvious - and the faster models iterate and the more fragmented the hardware, the higher the return. For engine maintainers, agents are not taking jobs; they are the lever that compresses a 30-day enablement backlog into hours. For model vendors, the lag between architecture innovation and on-device deployment will increasingly be set by this kind of knowledge infrastructure rather than headcount. The gap between model innovation and deployment now has a price tag - and it is falling.