Agents and approvals
Starting an agent
Section titled “Starting an agent”- ⇧ ⌘ T opens an agent in the current project, using the one you last used there (Claude Code by default).
- In ⌘ K, type a request and press ⇧ ↩ to start an agent with it as the first prompt.
- Typing
claudeorcodexin a midna shell works too: midna picks it up as an agent terminal in place. - Agents can start other agents:
midna open --agent claude --prompt "…". - Triggers can start agents from GitHub and Bitbucket events.
What midna adds
Section titled “What midna adds”When midna starts an agent, it passes everything on the command line. Your global Claude Code and Codex config isn’t touched.
- Claude Code gets
--settingswith midna’s hooks (turn start and end, tool calls, permission dialogs, and a rules check before each tool call), midna’s status line for cost tracking, the MCP server, and a two-line system prompt hint that it’s running in midna. - Codex gets
-c notify=…so midna hears when a turn ends, plus the MCP server and the same hint. - Every terminal gets
MIDNA_SESSION,MIDNA_PROJECTandMIDNA_SOCKETin its environment and themidnaCLI on itsPATH.
If you’d rather have the hooks in your global config, the Hooks item in the status bar can install them in one click. They do nothing outside a midna terminal.
Needs you
Section titled “Needs you”Anything only you can answer goes to Needs you. The terminal’s row turns orange with a line saying why, the N need you button shows at the top of the sidebar, and midna can post a notification.
- The terminal you’re looking at shows its approval along the bottom. ⌘ ↩ approves, ⌘ ⌫ denies.
- ⌘ J goes through everything waiting, one card at a time, oldest first.

| Item | What it is | ⌘ ↩ | ⌘ ⌫ |
|---|---|---|---|
| Approval | A rule said ask, or an agent asked for a human-only action | Approve | Deny |
| Permission prompt | Claude Code is showing its own permission dialog. Codex’s approval prompts aren’t queued yet: answer them in its terminal. | Approve | Deny |
| Blocked | An agent can’t continue without you (midna attention) |
I’ve done it | Dismiss |
| Failed | A monitor or agent exited with an error | Restart | Dismiss |
| Rule removal | An agent asked you to remove a rule | Remove | Keep |
| Trigger | A trigger needs its secret, or is waiting to start | Open / Start | Dismiss / Deny |
Answering a permission prompt from midna presses the key in the agent’s dialog for you, after midna has seen the dialog on screen.
Approving for longer
Section titled “Approving for longer”The arrow next to Approve has longer options. Each adds an allow rule for exactly what was asked:

| Option | Rule it adds |
|---|---|
| Once | None |
| 15 minutes, 1 hour | An expiring rule for this terminal |
| This session | A rule for this terminal |
| Always | A rule for the whole project |
Human-only requests
Section titled “Human-only requests”When an agent calls something only you may do, like removing a rule or enabling a trigger, the card shows the exact call that approving will run. If what it points at has changed before you answer, approving fails rather than running the new version.
Agents can’t approve requests unless you turn on approve.from_cli, and even then only their own terminal’s, never a human-only action. An agent blocked on an approval waits up to 5 minutes (policy.request_timeout_secs).
Long sessions
Section titled “Long sessions”- Prompt history. Claude Code and Codex draw their own screen, so their conversation isn’t in the scrollback. ⌥ ⌘ ↑ / ↓ scrolls the agent’s view to your previous or next prompt, and ⌘ P lists them to jump to.
- Queued messages. Queue a follow-up and midna types it once the agent is ready: idle, not waiting on you, nothing in its input box. A message can also wait for a time or for another terminal to finish (
midna queue add --after <id> "…"). - Images. ⌘ I, or pasting a screenshot, attaches images to the next message. Click to drop numbered pins or drag to mark an area, with a note for each.
- Session links. ⌘ L lists the URLs, pull requests and files that came up in the conversation.
- Restart into the same conversation. The restart button (or
midna restart <id>) reopens the agent withclaude --resume/codex resume. When a newer Claude Code is installed, midna restarts idle terminals into the same conversation (agents.restart_on_update).
Cost and Insights
Section titled “Cost and Insights”Claude Code’s spend comes from midna’s status line and shows per turn. Codex doesn’t report cost. Insights (⇧ ⌘ I) charts turns, messages, spend, approvals, and how long each agent worked versus waited on you, by day, week or month, with an activity log you can filter.
midna insights --range week --by project