Scripts and pipes
When rumbo’s input or output is not a terminal, or you ask for it with -f plain, it uses the
plain front end: no screen to draw, the model’s text on stdout, and an exit code.
rumbo "summarize notes.md" > summary.txtcat task.md | rumbo # the whole input is the taskrumbo -c -f plain "now list what is still missing"What goes where
Section titled “What goes where”- stdout gets the model’s text, and nothing else.
- stderr gets the progress, the session, and the tokens spent.
So > file keeps the answer, and the progress stays on the screen.
The task
Section titled “The task”plain takes the task from the command line; without one, the whole of a piped input is the task.
When the input is a terminal, it reads tasks one line at a time, each a run of its own.
A task given on the command line wins over piped input, which is then not read. To have the model work on something, name it in the task, and the model reads it with its tools:
rumbo "review the changes in git diff HEAD~1 and list what is risky"Exit codes
Section titled “Exit codes”| Code | The run |
|---|---|
0 |
was done |
1 |
failed |
130 |
was cancelled, such as with Ctrl-C |
Sessions in scripts
Section titled “Sessions in scripts”A scripted run is a session like any other: rumbo -c continues it, rumbo -r resumes it if it
was cut short, and rumbo log and rumbo request show what it did and what it sent. Set
max_turns to bound how long a run may go:
rumbo system set max_turns=50Driving rumbo from a program
Section titled “Driving rumbo from a program”To drive rumbo from a program of your own, rather than from a shell, start rumbo serve and speak
the Agent Frontend Protocol on its stdin and stdout. See
write a front end.