Skip to content

Sessions

A session is a conversation bound to a project: every task you give in it, what the model answered, and each tool call with its result. rumbo keeps it as an append-only list of entries, which is what lets you continue it, resume it after a failure, branch it, and replay any request it sent.

A project is the top of a Git repository, or the directory itself outside one. Sessions belong to the project, and are found from any directory inside it; a session still works in the directory it was started in.

Terminal window
rumbo -c "also document it" # continue the latest session of this project
rumbo -s <session> "and test it" # continue a given one
rumbo -r # resume the unfinished run of the latest session

A run that failed, was cancelled, or was cut short because its process died is unfinished. Resuming it tells the model the run was interrupted, closes the tool calls that never finished with an error, and carries on without a new task.

Every run ends with a note in the session that says how it ended: done, failed, or cancelled. A failure is never only on the screen.

One rumbo works in several sessions of a project at once, one run per session. In the terminal UI, a run goes on in its session while you open another, and the sidebar tells you when it ends. While a run works, what you type reaches the model before its next request, without stopping it.

-single makes rumbo work in one session at a time.

A branch is a new session that starts with a copy of another one, as it is or as it was before one of your messages, and goes on from there. The session it came from stays as it was, and can go on working at the same time.

  • In the terminal UI, Shift-Tab goes up into the conversation; Enter on one of your messages changes it, or asks it again, in a branch that starts before it.
  • /branch branches the session as it is.

A branch copies the conversation only. rumbo does not track files, so the files are as they are.

Terminal window
rumbo sessions # this project's sessions, with how each stands
rumbo sessions -all # every project's
rumbo sessions rename <session> <title> # a title of your own
rumbo sessions rm <session>... # delete sessions and their history
rumbo sessions prune 30d # list those not used in 30 days; -yes deletes them

A session that a rumbo process is using is never deleted. In the terminal UI, /rename, /delete, and /prune do the same, and deleting asks you to agree first.

When a conversation nears the model’s context, rumbo asks the model to summarize it, and the next request starts from that summary. This is compaction. It happens at 80% of the context the provider reports, or at 150,000 tokens when it does not say; the compact_at setting changes the share. /compact summarizes a session when you ask.

What came before stays stored in the session. Only the request changes.

Each session is a directory in ~/.local/share/rumbo/sessions/<id>/:

  • session.json says what it is and what it chose: its provider, its model, and the options set for it;
  • entries.jsonl holds its history, one entry to a line, only ever appended.
Terminal window
rumbo log <session> # every entry, as JSON lines
rumbo request <session> [turn] # the exact request a turn sent the provider

Every request is rebuilt from the entries alone, so rumbo request prints what was sent, byte for byte. That makes a session something you can debug: when a run went wrong, you can see exactly what the model was given.

/export in the terminal UI writes the session as Markdown: what was asked, what the model wrote, each tool call with the change it made or the start of what it returned, and how each run ended. It writes rumbo-<session>.md in the directory the session works in, or the path you give, and never over a file that exists.