Matilda · Make it happen

Manage CLI sessions and history

Resume past sessions, name the current one, branch or rewind the conversation, and clean up old sessions in the Matilda Code CLI.

Applies to: Code CLI

View as Markdown

The CLI keeps your past sessions, so you can pick up where you left off, try a different direction, or tidy up later.

Resume a past session

Run /resume (or /continue) to open the session picker and choose a past session. To skip the list, pass the session ID or a name you gave it, for example /resume deploy-fix. If the name matches several sessions, the picker lists only the matches.

Name the current session

Run /rename <name> (or /tag <name>) to label the session you are in, so it is easy to spot in the picker later. Run /rename with no name (or /rename --auto) to have the model generate one from the conversation, using the Fast Model from /settings if one is set, otherwise the main model. Generated names show up dimmed in the picker so you can tell them from your own.

Branch the conversation

Run /branch to copy the conversation so far into a new session and switch to it. The original session is untouched, and the CLI prints a /resume <id> hint for getting back to it. Name the branch with /branch api-redesign, or it takes its name from your first message and shows up with a (Branch) suffix in the picker. The command refuses while a response or tool call is in flight.

Rewind to an earlier turn

Run /rewind (or /rollback), move through your turns with the arrow keys, and press Enter. If checkpointing captured file edits after that turn, choose to restore code and conversation, restore conversation only, or restore code only. Otherwise the conversation after the turn is removed and your prompt comes back into the input box for editing. Rewinding never touches files you edited by hand or with shell commands.

Delete old sessions

Run /delete to open the Delete Session picker, mark the sessions you want gone, and confirm to remove them. The session you are in cannot be selected.

MAINCODE HELP

Matilda uses product guides and may check public web sources to troubleshoot your issue. Check the linked sources. Leave out passwords, API keys and personal information.

Try asking
Start a new question