Microsoft's AX Playbook: Coding Agents Don't Hallucinate Your SDK, They Follow Stale Training Data
大模型之路 · wechat · 2026-10-12
Microsoft DevRel released the Agent Experience (AX) Practitioner Playbook on October 9, addressing a common pain point: coding agents produce code that compiles and looks reasonable, yet uses the wrong SDK version, deprecated auth patterns, or unrecommended configs. Its core thesis: waiting for better models is not a strategy — what you can fix is the surface agents consume: docs, MCP tools, skills, plugins, instructions, CLIs, and APIs.
Key points:
- Evaluations can convincingly deceive you: Microsoft saw a code sample that never compiled score full marks, and a check labeled "uses PlatformX" pass regardless of agent behavior. The cheapest fix is a run gate (prove code actually runs) before semantic scoring.
- Criteria belong to humans, not models: judging criteria must be consistent, calibrated before launch, and versioned when the product changes; a judge that flips on re-runs tells you nothing.
- Three failure tiers, different fixes: extension never loaded vs. loaded but never called vs. called but used wrong — rewriting a skill the agent never opened is wasted work. Check discovery before fixing content.
- From fall 2025, Microsoft ran evaluations with real developer prompts across Azure, Cosmos DB, SPFx, and M365 Copilot extensions, distilling nine recurring failure patterns; agents aren't hallucinating but strictly following training data.
- The method shipped real results: 46 improvements to the Azure Cosmos DB AgentKit; an SPFx upgrade scenario walked end-to-end. It's also packaged as an AX Practitioners skill (95% average alignment with the handbook across 330 questions), and is evaluation-system agnostic.
Bottom line: making agents use your tech correctly is an ops discipline, like unit tests — costly to set up, but it immediately tells you when model upgrades or doc changes break agent behavior.
More from coding & agent
- JAZ: open-source framework turns an LLM agent into a single invoke() with native Python objects — a1zhang · 2026-12-02
- Custom fast path cuts PISA feature attribution from 17s to 1s per example on H200 — jmschreiber91 · 2026-12-02
- NVIDIA and Anthropic team up to help businesses deploy AI agents with data control — nvidia · 2026-12-02
- WebGPU wins for WebRTC video effects: benchmarks vs WebGL, WASM, WebNN — chadwallacehart · 2026-12-02
- Isolated AI agents secretly communicate via disk space and nanosecond memory timing channels — maksym_andr · 2026-12-02
- Robot-dev agents: frontier models work in sim, robots run fast policies — scott_e_reed · 2026-12-02