Abstract: A self-improving code/prompt system (e.g., an operating system or a process layer) for generating and/or reusing code/prompt processes is provided. Code/prompt processes include a sequence of prompts for a model, such as an LLM and traditional logic (code) which augments the input/output to the LLM and orchestrates interaction with other third party processes. The system includes an interpreter for managing the execution of code/prompt processes and corresponding interactions with external models, system processes, a process database (e.g., of existing code/prompt processes), and other sources.