Get the newsletter
Microsoft · AI / ML · Filed Jun 3, 2025 · USPTO published Dec 3, 2026 · This week's release

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.

An automated programmer creates potential software fixes with one AI assistant while a second AI reviews and approves each step. Drawing from patent filing US 2026/0386774 A1.
An automated programmer creates potential software fixes with one AI assistant while a second AI reviews and approves each step.All 12 drawings ↓
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.

From the filing · CLAIM 1
… 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.

From the filing · THE ABSTRACT
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.

There are more where this came from

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

Setup of the coding AI and its two models, drawing sheet 1 from US 2026/0386774 A1
Sheet 1 Setup of the coding AI and its two models
Steps the AI agent takes to fix bugs, drawing sheet 2 from US 2026/0386774 A1
Sheet 2 Steps the AI agent takes to fix bugs
Bug details sent to the reviewer AI, drawing sheet 3 from US 2026/0386774 A1
Sheet 3 Bug details sent to the reviewer AI
Coding commands and instructions for the task, drawing sheet 4 from US 2026/0386774 A1
Sheet 4 Coding commands and instructions for the task
Asking the reviewer AI how many code ideas to draft, drawing sheet 5 from US 2026/0386774 A1
Sheet 5 Asking the reviewer AI how many code ideas to draft
Bug description sent to the coding AI, drawing sheet 6 from US 2026/0386774 A1
Sheet 6 Bug description sent to the coding AI
Prompt directing the coding AI to suggest a first step, drawing sheet 7 from US 2026/0386774 A1
Sheet 7 Prompt directing the coding AI to suggest a first step
Reviewer AI evaluating and approving the proposed command, drawing sheet 8 from US 2026/0386774 A1
Sheet 8 Reviewer AI evaluating and approving the proposed command
Show the other 4 sheets
File results returned after running the first approved command, drawing sheet 9 from US 2026/0386774 A1
Sheet 9 File results returned after running the first approved command
Asking the checking model how many next steps to draft, drawing sheet 10 from US 2026/0386774 A1
Sheet 10 Asking the checking model how many next steps to draft
Choosing the best next step from multiple generated ideas, drawing sheet 11 from US 2026/0386774 A1
Sheet 11 Choosing the best next step from multiple generated ideas
Server network hosting the coding agent and both AI models, drawing sheet 12 from US 2026/0386774 A1
Sheet 12 Server network hosting the coding agent and both AI models
Patent filing page

Watchlists this filing belongs to

All watchlists →
Reader comments

No comments yet

Start the discussion

Real name or a handle, either is fine. Comments are read by a person before they appear, so allow a little time. Keep it about the filing.