LLMs can use tools to keep memories within a persistent storage. The memories can also be stored by type, just like “tasks” and “guidelines”.
The AI is able to write down “modes” as its “guidelines” and update the on/off state on-the-fly. The modes are taught by the user, and gives AI the ability of manipulating its own actions accordingly.