Get the newsletter
Microsoft · Software · Filed May 23, 2025 · USPTO published Nov 26, 2026 · This week's release

Microsoft Files Patent to Help AI Coding Assistants See Your Unshared Edits

Microsoft's patent tackles a problem every AI coding helper has: your latest edits live on your own computer, while the rest of the project lives on a server. Its answer is to search both places separately and merge the results, with no syncing first.

An AI helper checks both shared online project files and a programmer's private unshared edits before answering questions. Drawing from patent filing US 2026/0377147 A1.
An AI helper checks both shared online project files and a programmer's private unshared edits before answering questions.All 5 drawings ↓
Publication number
US 2026/0377147 A1(US20260377147A1)
USPTO patent title:
Generation of Context for a Large Language Model from Remote and Local Semantic Searches
Applicant
MICROSOFT TECHNOLOGY LICENSING, LLC.
Filed · Published
May 23, 2025 · Nov 26, 2026
Inventors
STEVEN MICHAEL BATTEN, MATTHEW JOSEPH BIERNER
Status when we published
Waiting for an examiner
Document
20 claims
US classification
717/110

What Microsoft's split code search actually does

Ever asked a coworker about a shared document, only to learn they were reading last week's version while you'd already rewritten half of it? AI coding helpers run into the same trouble.

Programmers keep their projects in a shared online storage spot, and each person works from a personal copy on their own computer. Your copy holds edits nobody else has seen, and some are still unsaved in the editor. When you ask the AI helper "how does this feature work?", it needs to see all of that.

The usual fix is to upload your changes and sync everything first, which is slow. Microsoft's filing skips that step. Your computer searches only the files you've changed, the shared storage searches everything else, and your computer merges the two lists and keeps the closest matches. Only those few snippets travel over the internet, and the AI answers using them.

From the filing · CLAIM 1
… generate, by the local search engine in the user computing device, a semantic search index for the locally-changed files, wherein the semantic search index comprises a chunk embedding for each code chunk of the locally-changed files of the local copy of the codebase; …

Translation: The system creates a searchable map of the edits you have made locally before you share them.

How your edits and the server's code get merged

The claims cover a method inside a code editor that has a built-in AI assistant. When you ask a question about your project, a local search engine on your computer first works out which files you have changed. It compares against a version marker (a commit identifier, basically a version number the server hands out) using a standard Git diff command. It also counts files open in your editor that aren't saved yet.

It then builds a quick semantic search index of just those files. Each file is cut into chunks, and each chunk becomes an embedding (a list of numbers capturing what the code means, so searches match on meaning instead of exact words). Your question gets the same treatment, and the chunks whose numbers sit closest to the question's, measured as a distance, win.

Meanwhile the server searches the rest of the project using its own prebuilt index. In the filing's description, your computer sends along the list of changed files so the server can skip them, and the server returns only its best chunks and their distances.

  • Search your changed files locally and pick the best chunks
  • Receive the server's best chunks with their distances
  • Rank both lists by smallest distance and keep the top-k (a fixed number, k, of best matches)
  • Give the question plus those chunks to the language model
From the filing · THE ABSTRACT
The context is generated without synchronizing all the changes to the codebase and in a manner that limits the amount of data that is transmitted between the remote repository and the local computing machine.

Translation: It pulls in local context for the AI without uploading your unfinished work to the cloud server.

Why skipping the sync could speed up AI answers

If you code with an AI assistant, the practical gain is answers that match the code on your screen right now instead of a stale server copy. Skipping the full sync also means less waiting. The filing says older approaches had to upload changed files, or rebuild a hash tree (a fingerprint list) of the whole project, before searching.

For Microsoft, the pitch is making assistants inside code editors feel quick on big shared projects where many people change files at once. Sending a handful of snippets and their scores instead of whole files keeps network traffic small, which matters for teams on large projects. The filing frames this as a speed fix for assistants that live inside the editor.

Microsoft's 706th filing in our Microsoft coverage since May adds to a pattern that includes the self-checking code fixer and the cloud security tracer.

Source: US 2026/0377147 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 · 5 sheets

5 drawing sheets from US 2026/0377147 A1 · click any drawing to enlarge

Connecting your computer to shared cloud files using AI, drawing sheet 1 from US 2026/0377147 A1
Sheet 1 Connecting your computer to shared cloud files using AI
How the system finds code across computers and the cloud, drawing sheet 2 from US 2026/0377147 A1
Sheet 2 How the system finds code across computers and the cloud
Checking your computer for unsaved edits before searching, drawing sheet 3 from US 2026/0377147 A1
Sheet 3 Checking your computer for unsaved edits before searching
Combining search matches from your computer and the cloud, drawing sheet 4 from US 2026/0377147 A1
Sheet 4 Combining search matches from your computer and the cloud
Computer hardware that runs the code editor and AI models, drawing sheet 5 from US 2026/0377147 A1
Sheet 5 Computer hardware that runs the code editor and AI models
Patent filing page

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.