Skip to content

Terminals and projects

A project is a folder. Press ⌘ O to open one; midna adds it to the sidebar with a shell in it. ⌘ T then opens new terminals in the current project, and ⌘ 1–9 switches projects. ⌥ ⌘ T opens a terminal outside any project, in your home folder.

If your projects live under a few folders like ~/Development, set them as projects.roots. Their subfolders then show up in ⌘ K, ready to open.

A project leaves the sidebar when its last terminal closes, but its rules and saved commands are kept for next time.

  • Shell: your login shell.
  • Monitor: a long-running command you want to keep an eye on. If it exits with an error, it raises a failed item in Needs you with the last lines of output and a Restart button. A project’s saved commands run as monitors (midna projects add-command).
  • Agent: Claude Code or Codex. See Agents and approvals.

Each terminal’s dot in the sidebar shows its status:

Status Meaning
idle Waiting for input
working An agent turn or a command is running
needs you Waiting on an approval, a permission prompt or a question
done An agent finished its turn and you haven’t looked yet
failed The process exited with an error
exited The process exited cleanly

midna explain <terminal-id> says why a terminal has the status it has.

The header shows the branch, the diff against it and the pull request’s checks. What it shows, and what the sidebar rows and status bar show, is configurable; see Settings.

Terminals run in midnad, not in the app. Quitting, relaunching or updating midna keeps every shell running with its screen and scrollback. While the daemon restarts, the status bar says midnad restarting… and the panes reconnect on their own. If the daemon is killed outright or crashes, its terminals are lost and show as exited.

⌘ K opens the command bar. Type to go to a terminal or project, answer a waiting item, run a saved command, open Rules, Triggers, Insights or Settings, or switch the theme.

The command bar with waiting items at the top and suggestions to ask an agent

To start an agent, type what you want done and press ⇧ ↩ (or ↩ when nothing else matches). ⇥ switches between Claude and Codex, and ⇧ ⇥ between this project and your home folder.

Commands that destroy something, like closing a busy terminal, need ↩ twice.

  • Scrollback. Trackpad or wheel, ⇧ Page Up / Page Down, or ⌘ ↑ / ↓ for top and bottom.
  • Selection. Drag, double-click for a word, triple-click for a line, ⌥-drag for a rectangle.
  • Find. ⌘ F searches the scrollback. ↩ goes to the next older match, ⇧ ↩ to the newer one. Case is ignored unless you type a capital.
  • Links. ⌘-click opens URLs and file paths like src/main.rs:12:5, which open in $EDITOR at that line.
  • Text editing. ⌘ ← / →, ⌥ ← / →, ⌥ ⌫ and ⌘ ⌫ work as in a Mac text field, and ⇧ with them selects.
  • Option as Meta is on by default (terminal.option_as_meta). Turn it off to type accented characters with ⌥.
  • ⌘ ↩ to send is off by default (terminal.cmd_enter_sends). Turn it on and, in Claude Code’s or Codex’s input, ↩ starts a new line and ⌘ ↩ sends. ↩ still confirms the agent’s menus.
  • Open in your editor. The editor button in the header opens the terminal’s folder in Cursor, VS Code, Zed, a JetBrains IDE, Xcode and others midna finds installed (⌥ ⌘ E). The one you pick is remembered per project.
  • Split. ⌘ D opens a shell beside the current terminal. The pane’s strip switches side by side or stacked, swaps it into the main pane, or closes the split. Closing a split never closes its terminal.
  • Pop out. The pop-out button moves a terminal into its own window, which floats above other apps until you turn off Keep on top.
  • Rename. Double-click the name in the header or sidebar.
  • Reorder. Drag rows within a project.
  • Restart. Reruns the terminal’s command. For an agent, it reopens the same conversation.

⌘ W closes the selected terminal and kills its process; if it’s busy, press it again to confirm. ⌘ Q is hold to quit, and quitting never closes your terminals.

⇧ ⌘ D opens the composer under the terminal: a normal Mac text field for writing or pasting a long prompt. ↩ sends it as one message, ⇧ ↩ adds a line, esc cancels.

The composer under a terminal with a prompt typed in

With Kass dictation, the composer opens by itself when you start speaking into a midna terminal, so you can read and fix the text before it’s sent. Turn on kass.auto_send to skip that review.