Get the newsletter
Google · AI / ML · Filed Nov 17, 2025 · USPTO published Oct 8, 2026 · Oct 8 release

Google Files Patent for Big AI Models That Write Small Programs for Cheaper Ones

Google describes an AI that writes small programs for other, cheaper AIs, so they stop working out the same chores from scratch every time.

An advanced AI writes code for a specialized tool and sends it to a second AI to run and produce answers. Drawing from patent filing US 2026/0310426 A1.
An advanced AI writes code for a specialized tool and sends it to a second AI to run and produce answers.All 16 drawings ↓
Publication number
US 2026/0310426 A1(US20260310426A1)
Applicant
Google LLC
Filed · Published
Nov 17, 2025 · Oct 8, 2026
Inventors
Xuezhi Wang, Dengyong Zhou, Tianle Cai, Xinyun Chen
Status when we published
Waiting for an examiner
Document
20 claims
US classification
717/106
Parent application
National Stage Entry of PCT/US2024/029936 (filed May 17, 2024)(PCTUS2024029936)

What Google's tool-making AI patent describes

Every time you ask an AI chatbot to sort a long list of words or find a time that works for two calendars, it works out the answer from scratch. That is slow, it burns computing power, and it can slip up on jobs an ordinary program would get right every single time.

Google's patent application describes a fix. A large, expensive AI model writes a small, reusable program for the job once, tests it, and stores it in a shared library. A smaller, cheaper AI then picks up that program whenever the same kind of request shows up.

If the library has nothing for a new kind of request, the system asks the big model to write one. The idea is that the small AI gets better at specific chores without having to grow.

From the filing · CLAIM 1
… generating, by the computing system and using a primary machine-learned model, the tool based on the tool request by generating tool code; validating, by the computing system, the tool; and outputting, by the computing system, the tool to a tool repository …

Translation: A large AI model writes and tests new helper code before saving it to a library.

How the big model builds and tests a tool

The filing splits the work between two AI models. A large, costly tool maker model writes code (usually a Python function) for a task, based on a tool request. A small, cheap tool user model later calls that code instead of reasoning through every question itself.

Making a tool has three stages:

  • Proposing: the maker writes the function from a few examples. If it won't run, the error goes back to the model and it tries again.
  • Verifying: the maker writes unit tests (automatic checks that compare the program's answers with known right answers). If a test fails, the failure is logged and fed back with the code so the model can fix the cause.
  • Wrapping: the finished code is packaged with examples showing how to turn a plain question into a call to the function.

The maker can also produce several candidate versions and keep the best performer. Finished tools go into a tool cache (a shared library). A dispatcher checks whether a matching tool exists. If not, it asks the maker to build one, or queues the request for a human developer.

At use time, the small model reads a tool index (a list of available tools), writes the call, and a toolkit interface runs the code in a sandbox and hands the result back. The examples include sorting words alphabetically, scheduling a meeting between two calendars, and solving a book-shelf ordering puzzle.

Why smaller AI models stand to gain here

The practical payoff is cheaper, faster AI answers. The filing says a large model only needs to run a few times to make a tool, while many small models can then reuse it. Small models can run on devices like smartphones and tablets, and the filing says that keeps more of your data on the device and cuts trips to cloud servers.

It also targets a real weakness: AI models guess probabilistically, so even simple, rote tasks can come out wrong now and then. Handing those tasks to ordinary code gives the same answer every time. The filing also describes a shared tool library that several contributing systems could fill, which would let one tool serve many AI models.

Google's 29th filing we've tracked since May on AI models working together builds on one that looks up facts alone and one that grades each search.

Source: US 2026/0310426 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 Google 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 · 16 sheets

16 drawing sheets from US 2026/0310426 A1 · click any drawing to enlarge

AI writing code for another AI, drawing sheet 1 from US 2026/0310426 A1
Sheet 1 AI writing code for another AI
Shared tool storage between two AIs, drawing sheet 2 from US 2026/0310426 A1
Sheet 2 Shared tool storage between two AIs
Running tools inside an AI system, drawing sheet 3 from US 2026/0310426 A1
Sheet 3 Running tools inside an AI system
Training an AI with feedback, drawing sheet 4 from US 2026/0310426 A1
Sheet 4 Training an AI with feedback
Basic AI input and output, drawing sheet 5 from US 2026/0310426 A1
Sheet 5 Basic AI input and output
AI converting sequences into answers, drawing sheet 6 from US 2026/0310426 A1
Sheet 6 AI converting sequences into answers
Combining different data types for AI, drawing sheet 7 from US 2026/0310426 A1
Sheet 7 Combining different data types for AI
Tools for building custom AI models, drawing sheet 8 from US 2026/0310426 A1
Sheet 8 Tools for building custom AI models
Show the other 8 sheets
Google Files Patent for Big AI Models That Write Small Programs for Cheaper Ones patent drawing, sheet 9
Sheet 9
Google Files Patent for Big AI Models That Write Small Programs for Cheaper Ones patent drawing, sheet 10
Sheet 10
Google Files Patent for Big AI Models That Write Small Programs for Cheaper Ones patent drawing, sheet 11
Sheet 11
Google Files Patent for Big AI Models That Write Small Programs for Cheaper Ones patent drawing, sheet 12
Sheet 12
Google Files Patent for Big AI Models That Write Small Programs for Cheaper Ones patent drawing, sheet 13
Sheet 13
Google Files Patent for Big AI Models That Write Small Programs for Cheaper Ones patent drawing, sheet 14
Sheet 14
Google Files Patent for Big AI Models That Write Small Programs for Cheaper Ones patent drawing, sheet 15
Sheet 15
Google Files Patent for Big AI Models That Write Small Programs for Cheaper Ones patent drawing, sheet 16
Sheet 16
Patent filing page

More in AI training & infrastructure

All 324 AI training & infrastructure patents →

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.