Google is testing a new robot that can program itself

Spoke on YouTube video
Google has developed a robot that can write its own code based on natural language instructions. Code as Policies - or CaP - is a coding-specific language model developed from Google's Pathways Language Model - or PaLM. It can generate its own code that re-composes API calls, synthesizes new functions, and expresses feedback loops. So, CaP is basically a computer program that can write its own code. CaP can also use arithmetic operations and logic of specific languages like Python to perform complex tasks. It's still very limited in what it can do, but it could one day be used to teach robots how to play different games by explaining an abstract rule-set.

https://youtu.be/Wkl2feIw1wg