A macOS terminal for working with Claude Code and Codex

Agents can open terminals, run commands you can watch and read each other’s output through the midna CLI or its MCP server. Claude Code approvals and agents’ questions wait in one queue, and your shells keep running when the app restarts or updates.

Free and open source (MIT) · Apple Silicon · macOS 12 or later

The midna window: projects and terminals in the sidebar with their status, a Claude Code terminal asking to run a migration, and the approval along the bottom

Example data

Approvals from every terminal in one place

When Claude Code shows a permission prompt, or a rule says to ask, the terminal is marked in the sidebar and the request shows along the bottom of it. ⌘↩ approves, ⌘⌫ denies, and ⌘J steps through everything that’s waiting across all projects.

Approving for 15 minutes, an hour, the session or always adds a rule, so you aren’t asked about the same thing again. Codex’s own approval prompts stay in its terminal: midna doesn’t queue them yet.

Read more →
An approval at the bottom of a Claude Code terminal with the menu open: approve once, for 15 minutes, for 1 hour, for this session, or always

Rules for what agents can run

Allow, ask or deny tool calls, commands and paths, globally, per project or per terminal. Claude Code checks every tool call against them through the hooks midna starts it with.

Agents can add rules. Removing one is up to you: an agent can only ask, and the request waits in Needs you.

Read more →
The Rules screen: global, project and terminal columns, a test field, and a feed of recent decisions

Triggers

Start an agent when a pull request opens on GitHub or Bitbucket, with webhooks delivered to your Mac over Tailscale Funnel. Or react to local events: a blocked prompt, an idle terminal, a schedule.

Agents can draft webhook triggers. You paste the signing secret and switch them on.

Read more →
The Triggers screen with three local triggers and the details of one that sets a custom status

Everything from ⌘K

Jump to a terminal, answer what’s waiting, run a project’s saved commands, or open Rules, Triggers and Settings. Type a sentence and press ⇧↩ to start an agent with it as the first prompt.

Read more →
The command bar listing waiting items, terminals and suggestions to ask an agent

A CLI and MCP server for agents

Everything the app does is a method on the daemon. Agents call them with the midna command or midna mcp, which midna adds to the Claude Code and Codex sessions it starts.

When an agent asks for something only you can do, the call becomes a request in Needs you and the response says so, so the agent knows to wait.

Read more →
$ midna open --name tests --monitor 'cargo test'
$ midna read a1f00003 --lines 20
$ midna rules add deny command 'git push --force*'
$ midna rules remove r_41
rule.remove is human only; use rule.request_removal
to ask the human
$ midna rules request-removal r_41 --reason "blocks the release tag"
$ midna attention "tests pass, ready for review"

What else midna does

Shells survive restarts

A daemon, midnad, owns every terminal. Quit the app, update it or restart the daemon and your shells keep running with their screens and scrollback.

Agent status you can trust

Working, needs you, done or failed comes from the agents’ hooks, the terminal title and exit codes, not guesses. The header shows the branch, the diff and the pull request’s checks.

Terminal basics

Splits, pop-out windows, find in scrollback, ⌘-click for URLs and file:line paths, rectangular selection, Mac text editing keys.

Built for long agent sessions

Jump back to earlier prompts, queue follow-up messages until the agent is free, attach annotated screenshots, and see the links and files a session touched.

Themes

Eight built-in themes, light and dark, that follow macOS. Custom themes are JSON files that can extend a built-in one.

Native

Written in Rust with GPUI for the window and libghostty for the terminal engine. Signed, notarized, and updates itself.

Install

  1. Download the DMG and drag Midna into Applications.
  2. Open it. midna installs its daemon as a login item and links the midna CLI into ~/.local/bin.
  3. Open a folder with ⌘O, or start an agent with ⇧⌘T.

Needs a Mac with Apple Silicon and macOS 12 or later. Install Claude Code or Codex yourself; midna finds them through your login shell.