PROPHET/OS
NAME
ask: asks the model over the Messages API and shows the answer as it comes; -w waits for the whole answer and shows it as markdown
SYNOPSIS
ask [-n] [-w] [-a [-y]] [-s address] [-p port] [-H host] [-r roots] [-k keyfile] <question>
DESCRIPTION
Asks the model over the Messages API and shows the answer as it comes; -w waits for the whole answer and shows it as markdown. Ctrl-C stops an answer that runs. The conversation lies in <home>/.ask.history, so the next ask carries it; -n starts a new one.
-a lets the model work: it may read, list, write and run, with the tools read_file, list_dir, write_file and run. Before the first word the agent narrows itself: the folder it was started in for reading and writing, the program folders for starting, and the rights nobody here needs given away for it and every command it runs. Each writing or running tool asks first, yes, no or always for the session; -y answers yes to all.
Settings in <home>/.ask.conf or /system/config/ask.conf: address, port, host, model, max_tokens, roots, key_file. The key lies in <home>/.ask.key unless key_file says otherwise.
Exit 0 when the model answered, 1 when it was refused, 2 when nobody was at the address.
EXAMPLE
$ ask --help
ask [-n] [-w] [-a [-y]] [-s address] [-p port] [-H host] [-r roots] [-k keyfile] <question>
asks the model and shows the answer as it comes; -n starts a new conversation,
-w waits for the whole answer and shows it as markdown
-a lets the model work in this folder with tools, each writing
or running one asked for first; -y answers yes to all
exit 0 answered, 1 refused, 2 nobody at the address