Microsoft Patents a Coding AI That Has a Second AI Check Every Move
Microsoft describes a coding AI that never acts on its first idea. One AI drafts the options, and a second, more careful AI chooses which one actually runs.

- Publication number
- US 2026/0386774 A1(US20260386774A1)
- USPTO patent title:
- Multi-Model Software Engineering AI Agent
- Applicant
- MICROSOFT TECHNOLOGY LICENSING, LLC.
- Filed · Published
- Jun 3, 2025 · Dec 3, 2026
- Inventors
- SPANDAN GARG, NEELAKANTAN SUNDARESAN, ROSHANAK ZILOUCHIAN MOGHADDAM
- Status when we published
- Waiting for an examiner
- Document
- 20 claims
- US classification
- 717/104
What Microsoft's two-AI coding helper does
You've asked an AI helper to fix a bug in your app. It sounds sure of itself, makes a change, and the fix breaks something else. Chatbots are known for confident mistakes, and the risk grows when one works alone with nobody checking its steps.
Microsoft's patent splits the job between two AIs. One is a fast writer that suggests possible next moves, like listing a project's files or editing a line of code. The other is a slower, more careful checker that picks the best move and explains why.
The checker even decides how many options the writer should come up with at each step: one for an easy opening move, two when things get murkier. Then the chosen move runs, the result gets logged, and the loop repeats until the job is done, with no person guiding it.
… wherein the generator LLM comprises non-reasoning tokens and the verifier LLM comprises reasoning tokens …
Translation: One AI model quickly creates options while a second, more thoughtful model checks them.
How the writer AI and the checker AI take turns
The patent describes an AI agent (a program that carries out a job on its own, step by step) built for software work such as fixing bugs, finishing code, writing new code or creating tests. It lives in a Docker container (an isolated software box that keeps it away from other apps) and gets tools like a command shell, a code editor and a compiler.
Two language models share the thinking. The generator is an ordinary text-writing model that proposes candidate next actions. The verifier is a reasoning model, meaning one that works through a problem in hidden intermediate steps (using special "thinking" markers that never show up in its answer) before it replies. The claims cover this pairing.
Each loop works like this:
- The verifier decides how many candidate actions the generator should produce.
- The generator proposes that many next actions based on the current state of the job.
- The verifier picks the best one and writes out its reasoning.
- The agent runs the chosen action and records the result.
Every message goes into a chronological conversation log. The full log is sent with each request, because the models are hosted on services that remember nothing between calls. In the filing's worked example, an agent handles a bug report about a missing option in a Python machine-learning library. It starts by listing the project's files, with one candidate on the first step and two on the second.
At each step, the verifier LLM determines the number of times the generator LLM is to generate a candidate action as a next action to perform in processing the task.
Translation: The checking AI decides how many alternative moves the creating AI needs to brainstorm.
Why a second opinion matters for AI coding bots
If AI coding helpers are going to work without a person watching, they need a way to catch their own errors. This design builds a second opinion into every step, which could mean fewer broken fixes landing in your project. It also avoids retraining the writing model for each job or loading it with worked examples, which the filing calls costly and fiddly.
There is a cost angle too. Reasoning models are slower and pricier to run, so the filing keeps the writer cheap and fast and calls on the careful model for the decisions. The verifier can also ask for only one option when a step is easy. The filing offers no test results, so treat the benefit as a design goal.
Microsoft's 60th filing we've tracked on AI agents working together since May follows idle agents leaving group chats and tracing cloud bugs to code.
Source: US 2026/0386774 A1 at the USPTO (PDF). Full patent text and figures are in the official publication.
Get our take in your Top Stories
Liked this breakdown? Add Patentlyze as a preferred source on Google, and our plain-English take shows up more often in your Top Stories the next time Microsoft patent news breaks.
We read the new patents from Big Tech, carmakers and more and send you the ones worth knowing. Plain English, free, every week.
The drawings · 12 sheets
12 drawing sheets from US 2026/0386774 A1 · click any drawing to enlarge

No comments yet