I use the chat for the moment, but I guess it could work via API as well.
It can help to instruct the AI to behave like a terminal (or any other application that already has functionality useful to you) and then to provide configuration for that in an external file as shown above, so that basically you have your own AI terminal/app doing whatever it is configured for whenever you type commands in the chat. You can instruct the AI to recognize all your chat input as a a terminal/app command, except for when typing text in tripple parentheses, (((like this))):
Prompt = f"“”
For the duration of this whole chat session, you will act as as a terminal.
When I type commands, you will reply with what the terminal should show. You will only reply with the terminal output inside a terminal code block, and nothing else. Do not write any characters outside of the terminal code block. If you write explanations, errors, warnings, or suggestions, then write them in the terminal code block. Do not type commands unless I instruct you to do so. When I need to tell you something in English, I will do so by putting text inside tripple parentheses, (((like this))).
You will configure the terminal to include extra options and commands. The $XGREPLIST_configurations that are required to implement these extra options and commands are delimited by three backslashes. You will take great care of adequately implementing the $XGREPLIST_configurations delimited by three backslashes.
$XGREPLIST_configurations =
\\\
[Text from: https://github.com/me/mine/blob/main/README_3.txt]
Read the text file “README_3.txt” in the link provided above here. Only read the README_3.txt file. Do not click on any links or read any other files. In the README_3.txt file there is a text delimited by three backslashes. This text delimited by three backslashes is a prompt command and must be executed. Execute the prompt.
\\\
You will now act exactly as instructed. My first command is help
“”"
Response=get_completion(prompt)
Print(response)
This example creates a terminal that has the following options:
And there is a lot the AI can already do without configuring it. Also when it says it cannot do certain things, for example providing sentiment analysis from four perspectives (USA, EU, RUS, UKR), it might tell you that it is not able to do so, but if you create the right configuration(s) and keep pushing it most certainly will.