Using Kaivo CLI
Using Kaivo in a script
kaivo -p "your question" asks a question, prints the answer, then stops. No interface: it's made for scripts, scheduled tasks and continuous integration.
Add -f json to get the answer as JSON, easier to handle in a program. -q hides the waiting animation. -c ./folder starts Kaivo in another folder.
Careful: in this mode every permission is accepted automatically, since there's nobody to answer. Keep it for tasks whose scope you know, in a project under version control, or add --read-only so it can't change anything.