Microsoft patents service that builds custom AI prompts for coding tasks
Microsoft describes a service that automatically creates specific instructions for large language models to handle software engineering tasks. It combines standard templates with a client's own code history, reviews, and tests to help the model generate or fix code more accurately.
In the filing’s own words
A customized prompt generation service automates prompts to a large language model to perform a specified software engineering task. The service stores the custom data of a client that includes code diff hunks, source code segments, code reviews, repaired code, and unit tests from a code base or repository of the client. Prompt templates are associated with each software engineering task that include the requisite information needed for the large language model to perform the target task. A prompt to a large language model includes examples of the software engineering task from the custom data of the client of the service.
What exactly they claim (claim 1)
1. A system comprising: a processor; and a hardware storage device that stores instructions that are executable by the processor to cause the system to: provide a service configured to generate a prompt for a model to perform a software engineering task; receive a request associated with the software engineering task; obtain a prompt template corresponding to the software engineering task; generate a prompt for the model based on the prompt template and data associated with the request; transmit the prompt to the model to cause the model to perform the software engineering task; receive an output of the model indicative of a software artifact associated with the software engineering task; determine a classification associated with the output; and use the classification to retrieve candidate artifacts from a retrieval‑augmented data store, the candidate artifacts being usable to perform at least one of modifying, analyzing, or generating software corresponding to the software engineering task.
Facts
- Company
- Microsoft (Microsoft Technology Licensing, LLC)
- Official title
- CUSTOMIZED PROMPT GENERATION SERVICE FOR SOFTWARE ENGINEERING TASKS
- Publication number
- US20260278303A1
- Application number
- 19683577
- Filed
- May 20, 2026
- Published
- Sep 17, 2026
- Inventors
- 6
- Claims
- 20
Classified under
G06F 40/40 Physics & computingG06F 8/77 Physics & computingG06N 20/00 Physics & computingMore from Microsoft in AI & software
- Microsoft patents method to check AI answers against verified facts Oct 20, 2026
- Microsoft patents AI that presents PowerPoint slides for you Sep 3, 2026
- Microsoft patents method to check if LLM answers are based on real data Sep 10, 2026
- Microsoft patents system to blend multiple AI agents into one chat Oct 1, 2026
- Microsoft patents system that answers questions using your screen history Oct 15, 2026
Summaries are simplified from the filing’s own abstract and first claim. A patent filing is not a product announcement.
Patent data and drawings: U.S. Patent and Trademark Office (USPTO). Nebula is not affiliated with or endorsed by the USPTO.