A Palantir patent application claims a method in which an AI model writes code for a user's task, and the system runs it only once it is judged valid.

The application, US20260349673A1, is titled "Code Generating and Validating Copilot" and was published on November 5, 2026. Palantir Technologies Inc. filed it on July 11, 2025, as application 19266665. The inventors are Mark Turcato, Riccardo Coato and Sriram Krishnan.

It is an application, not a granted patent. The USPTO lists its status as "Docketed New Case - Ready for Examination".

The application says many people interested in research problems lack the technical knowledge to author, debug or interpret code. It adds that such code can be long and time-consuming to write. Large language models (LLMs) can generate code from plain-language prompts. However, the application says their output "can be opaque, imprecise, and inconsistent". That can lead to code that does not adequately address the user's task.

The first independent claim is a computerized method with six steps:

  • receive, through a user interface, a user input describing a task;
  • build a prompt with that input and instructions to generate code for the task;
  • send the prompt to an AI model;
  • receive output that includes computer-executable code;
  • determine whether that code is valid;
  • execute the code in response to determining it is valid.

Claims 19 and 20 recite the same steps, as a system and as computer-readable media.

The dependent claims fill in the loop. Under claim 7, validity can mean the code will compile. Under claim 8, it can mean that parsing the code shows no validation rule has been violated.

If the code is invalid, a second prompt can include information about the failed code. It can also ask the model to output steps to overcome the errors identified in it.

Other claims add a check after execution. A further prompt carries the result of the executed code to a second AI model, which can be the same model or a different one. That model's output can indicate that the task is not accomplished, or point to additional tasks.

Claim 15 adds extracting "information nodes" from information sources tied to the task. Under claim 16, the user's input can indicate associations between those nodes. Under claim 17, the prompt can include the nodes and their associations. Claim 18 says the model can be a language model or an LLM.

The abstract and claims do not name a Palantir product. In our reading, the method would fit a natural-language-to-code assistant inside an analytics or code-authoring tool.

In our view, the notable design choice is the two checkpoints. Code is validated before it runs, and a second model checks the result against the task. For people who build on or buy from Palantir, we think that signals a focus on assistants that deliver working results, not just draft code. What to watch next is how the claims fare in examination.