Start and resume
cd your-project
midasResume the last session with --continue, or open a specific one with --session. Add --fork to branch the session instead of continuing it in place.
midas --continueContinue the last session in this project.midas --session <id>Open a session by id.midas --forkFork the session you are continuing.midas session listList recent sessions.midas session delete <id>Delete a session.midas export [id]Write a session as JSON to stdout.midas import <file>Import a session JSON file.
Session commands
Type these at the start of a message. Run /help for the list, including the keybindings for your terminal.
/newStart a new session. Alias: /clear./sessionsSwitch session. Aliases: /resume, /continue./renameRename the current session./forkFork the current session, leaving the original intact./compactCompact the conversation. Alias: /summarize./undoRevert the last message and its file edits./redoPut a reverted change back./editorCompose the next message in your editor./moveMove the session to another project directory./exportExport the transcript as Markdown./copyCopy the transcript./timestampsShow or hide message timestamps./thinkingCollapse or expand reasoning./statusView session status./helpOpen help./exitExit Midas. Aliases: /quit, /q.
Change an agent or a model
/agentsswitches the active agent mid-session./variantsswitches the model variant when the current model has more than one.- Midas chooses a model per step by default. Start with
--agentor--modelwhen you want to pin one for the session.
Undo and compaction
/undo reverts the last message and its file edits. /redo puts a reverted change back. /compact summarizes the conversation when the context gets long, so the session can continue without carrying every earlier turn.
Local web interface
The terminal UI is a client. Start the server and open the local web interface, or connect another terminal to a server that is already running:
midas web
midas serve
midas attach <url>Related
- Slash commands lists every command.
- Permissions covers the approval prompts.
- Headless mode runs the same agent without the UI.