Overview
midna is a macOS terminal for working with AI agents like Claude Code and Codex. You use it like any terminal: projects in a sidebar, tabs, splits. Agents can use it too. Through the midna CLI or its MCP server they can open terminals you can watch, read other terminals, add rules and draft triggers. The few decisions that stay yours, like approving a request or removing a rule, come to you in one queue called Needs you.

How it fits together
Section titled “How it fits together”A daemon owns your terminals. midnad runs in the background and holds every shell, along with your projects, rules, triggers and settings. The Midna app is a window onto it, so quitting, relaunching or updating the app never kills a shell.
Projects group terminals. A project is a folder. Each terminal in it is one of:
- a shell
- a monitor: a long-running command such as a dev server or test watcher. If it exits with an error, it tells you.
- an agent: Claude Code or Codex, with its status, approvals and cost tracked by midna
Agents may add; you remove. Agents can open terminals, add rules, draft triggers and change most settings. Approving requests, removing rules, setting webhook secrets, switching triggers on and changing human-only settings are yours. When an agent tries one of those, it becomes a Needs you item and nothing happens until you answer. See the security model for what this does and doesn’t protect against.
Everything is logged. Every change is written to an event log. midna events --follow streams it, and Insights (⇧ ⌘ I) charts agent turns, messages, spend and time spent waiting on you.
Quick start
Section titled “Quick start”- Install midna and open it.
- Press ⌘ O and pick a project folder. midna opens a shell in it.
- Press ⇧ ⌘ T to start an agent there (Claude Code by default), or press ⌘ K, type what you want done and press ⇧ ↩.
- When the agent needs you, its row in the sidebar turns orange. Press ⌘ ↩ to approve or ⌘ ⌫ to deny, or ⌘ J to go through everything that’s waiting.
- Terminals and projects: splits, find, links, the command bar
- Agents and approvals: how midna runs Claude Code and Codex
- Rules: what agents may do without asking
- CLI and MCP: driving midna from an agent or a script