Changelog
Notable changes to midna for users. Each release gets a section here, newest first. The website shows this file at midna.mrgnhnt.com/changelog.
Unreleased
The first public release.
New
- A terminal agents can drive. Claude Code, Codex and any other tool can open terminals, send input, read screens and raise your attention through the
midnaCLI or its MCP server.midna capabilitieslists what an agent can do and what only you can. - Shells that survive everything. A background daemon owns every terminal. Quit midna, update it or restart the daemon, and your shells keep running with the same processes and screens.
- Needs you. Permission prompts, failed monitors and agent requests from every terminal wait in one queue. Press ⌘J to go through them, and approve once, for a while, for the session or always.
- Rules. Allow, ask or deny commands and tools, globally or per project. Agents can add rules; only you can remove them.
- Triggers. GitHub and Bitbucket webhooks can start an agent, run a command or raise your attention, delivered over Tailscale Funnel.
- A trigger’s own permission mode and tools. Agents a local trigger starts (a schedule, a hook, an event, an idle terminal) now use your normal agent config; only webhook triggers and notification buttons start them supervised (
triggers.agent_mode). Give one Claude trigger its own mode and tools withmidna triggers update <id> --permission-mode auto --allow-tool mcp__claude_ai_Slack__slack_send_message; the tools are allowed only in the terminals that trigger opens. Only you can set these: an agent asking raises an approval. - Label a terminal from a script.
midna status set "Deploying" --color tealputs your own label on a terminal’s header and sidebar row without setting up a trigger;midna status cleartakes it off. It acts on the terminal it runs in unless--sessionnames another, and--base,--clear-on,--iconand--detailwork as they do for a trigger’s status. Tools usesession.set_status/session.clear_status. - Insights. Turns, messages, spend and time spent waiting on you, by day, week or month.
- Keep the Mac awake for agents. Turn on Settings › Agents › Keep the Mac awake (or
midna keep-awake on) and midna stops your Mac from idle-sleeping during your work hours while agents have work: one working, a queued message, a resume, a scheduled trigger. Drag the hours across a 24-hour bar, tap the days, give single days their own hours withmidna keep-awake day, turn it off for today or on for a while (midna keep-awake for 5h, oruntil 1ampast midnight; your hours take over after), and it lets go on low battery. Only idle sleep: the display still sleeps and closing the lid still sleeps the Mac. Tools read and change it throughkeep_awake.status/keep_awake.set. - Wake the Mac for scheduled work. Turn on Settings › Agents › Wake the Mac for scheduled work (or
midna keep-awake wake setup) and midna wakes a sleeping Mac 2 minutes before the next work due inside your keep-awake hours (a schedule trigger, a message queued for a time, an agent’s wakeup) and keeps it awake until that work runs, so a 7 AM trigger starts while the screen is still locked. It asks for your password once to install a helper that can only schedule midna’s own wakes;midna keep-awake wake removetakes it out. Leave the lid open. - Updates wait for a calm Mac. When your Mac is very busy, midna holds off moving its background service to a new version, because under heavy load that handoff can time out and close your terminals. A window says so once and lets you Wait or Update anyway; midna updates by itself when the load drops.
midna daemon upgrade|restart --forcegoes ahead regardless; Settings › Agents › Runaway work sets what counts as busy. - See who is overloading your Mac. When the Mac’s CPU stays busy for a couple of minutes, midna says in one line whether its terminals or other apps are using it, shows a bar of the Mac’s CPU split between the two, and lists each side, every number a share of the whole Mac so they add up. Terminals get Pause and Resume (click a name to open it); a paused terminal’s card can Stop processes, ending its builds and loops but keeping the agent and its conversation. Also
midna system,midna system pause|resume|stop <terminal>. - Agents slow down before your Mac does, when they’re the cause. While midna’s terminals keep the CPU busy, the builds, tests and scripts the heaviest agents start run in macOS’s background mode, so your own apps stay quick, and agents wait instead of starting more subagents or another build, test or install. When other apps keep the Mac busy, agents carry on. Tell an agent to go ahead anyway and it does, until your next prompt (
midna system run-anyway). One agent runs at most 4 subagents at once (guard.max_subagents). Settings › Agents › Runaway work. - Paused terminals look paused. A paused terminal turns teal in the sidebar and header (“paused · 3m · 34 processes held”), and its pane shows what it was running with Resume and Stop processes. A pause survives a daemon update and ends when the terminal restarts.
- The load in the status bar. While the Mac is overloaded or a terminal is paused, the status bar shows ● Mac CPU 88% · other apps · 2 paused. Hover it to see who is using the CPU; click it to reopen the overload window after you’ve closed it.
- No more immortal poll loops. Background loops agents leave polling (
until ! pgrep …; do sleep 5; done) are stopped after 3 hours (guard.loop_max_hours). - Agents’ work gives way to your apps. Agent terminals, and any terminal an agent opens, start at a lower CPU priority (nice 10), so their builds and tests yield to the midna window and your own apps when the Mac is busy, and run at full speed when it isn’t. Settings › Agents › Runaway work sets it (
guard.agent_nice);midna open --nice Nsets one terminal’s. - midna’s background service restarts itself overnight. Between 3 and 5 AM, once it has run 12 hours, midna restarts its background service the way an update does, so your shells, agents and screens keep running. It waits while anything needs you, an agent is working or has background work, or the Mac is busy, and tries again the next night. Settings › Agents › Runaway work sets the hours (or off) and how long it runs first (
daemon.restart_window,daemon.restart_min_uptime_hours). - Idle git worktrees clean themselves up. midna removes agents’ leftover git worktrees after 24 hours without use, once no terminal or process is in them and they have no uncommitted changes. Branches stay.
midna worktreesshows why each is kept;midna worktrees cleanruns it now. - Closing a terminal cleans up after it. When an agent terminal closes, a cheap model (Haiku by default) removes what it left behind: the git worktree it worked in, the branches it made and their remote branches. It only removes merged work with nothing uncommitted, never forces anything, never touches
main,master,develop,release/*or your default branch, and a notification says what it removed and what it kept and why. Add your own items in plain words (midna cleanup add "stop the docker stack started here"), turn built-ins off, or skip it once withmidna close <id> --no-cleanup. Settings › Agents › Clean up after a terminal closes;midna cleanup runsshows what it did. - Notifications that arrive together all reach the list. When a new notification replaces the one beside the floating badge, the earlier one goes into the badge’s list for five times as long, its timer still draining. New ones go straight into a list you have open without moving what you’re reading, and a ↑ N new chip takes you up to them.
- ⌘ ↩ to send. Turn on Settings › Terminal › ⌘↩ to send and, in Claude Code or Codex, ↩ starts a new line instead of sending your prompt. ⌘ ↩ sends it.
- Pick dates and times instead of typing them. The schedule editor’s times, start and end open a calendar and hour and minute grids under the line; its counts are number fields with − and +, held to their range. In Settings, number rows take digits only, stay inside their limits (the webhook port from 1024 to 65535) and save as you type, and so do notification text and kind names: no more Save buttons.
- Resume message and relay URL in Settings. Agents › Lifecycle › Resume message and, with the Self-hosted delivery path, Webhooks › Delivery › Relay URL are text fields that save as you type; the relay URL saves only once it is a real
http(s)://address. - Zoom and pan images with the trackpad. In the image sheet, pinch or ⌘-scroll to zoom about the pointer, scroll with two fingers to move the image any way (a little past its edges), and ⌥-drag or middle-drag to grab it. Zooming out stops at half the fit.
- App switchers bring midna forward. Switching to midna with Charmstone or another app switcher brings up its window instead of flickering and going back.
- The floating badge stays out. With Floating badge set to always, it stays on screen with nothing waiting (it shows 0), and hiding midna (⌘H or an app switcher) leaves it out.
- Jump to the terminal an agent mentions. When terminal text names another terminal by its id (
tab (019da528)), by an agent’s conversation id, or with amidna://session/<id>link, ⌘-click it to bring that terminal to the front. Agents are told to name terminals this way.session.link_atreturns it askind: "session". - Like notification buttons fold together. On the floating badge’s card, buttons that share a first word (Snooze 15 min, Snooze 1 hour) become one split button: the first is one click and the arrow lists the rest. Anything that still doesn’t fit goes under More, so no button gets cut off. Senders can group buttons themselves with
Later: 1 hour,Later: tomorrow. Notifications take up to 6 buttons of 24 characters each. - Settings reads at a glance. Every row in Settings has a short line of its own under its name instead of the long description written for agents; hover it for the full text. Shortcut names are short, long notes on status rows are trimmed, and the per-kind rows under a heading just name their kind.
- Settings knows when the daemon is behind. When the app has updated but its daemon hasn’t, Settings marks what the daemon doesn’t have yet, says so when a change fails because of it, and Settings › System › Daemon version has an Update daemon button that upgrades it in place without closing your terminals.
- Pick and order list settings in place. In Settings › Appearance, the footer stats and buttons, header buttons, status bar items and the row and status scripts are chips: click one to turn it on or off, drag one to move it, and it saves at once. Your own script paths show as chips too; adding a new one is still
midna settings set. - Plan usage and prompt cache in the status bar. Small 5-hour and weekly bars show how much of your Claude plan is used (amber from 75%, red from 90%); hover one to see when you’ll run out at this pace, or about where you’ll land by the reset. A flame shows while the selected Claude terminal’s prompt cache is still warm, a snowflake once it has gone cold. Right-click the bar to show or hide items, and drag them in that menu to reorder the bar. The policy item is now hidden by default.
- Trigger commands get the webhook payload. A
run_commandtrigger’s command gets the delivery’s JSON body in the file$MIDNA_PAYLOAD, with$MIDNA_EVENT,$MIDNA_ACTIONand$MIDNA_DELIVERY_GUID; a headless one gets the body on stdin too, so a command can relay a whole event without naming every field. Replays and recovered deliveries get the same body. In templates,{{payload}}and paths to objects or lists ({{pull_request.labels}}) render as JSON.midna triggers testsays where the body would go. - Know which trigger opened a terminal. Terminals and other midna calls a headless
run_commandtrigger’s command makes while it runs now say so: their events’ actor is{kind: "trigger", name, trigger: <id>, via: "run"}instead of a plain agent, and a trigger acting on its own carriestrigger: <id>too. midna tells from the process tree, so settingMIDNA_TRIGGERdoesn’t fake it. These calls keep an agent’s privileges, and a run’s own--allowedToolsis not widened. - App links. Links like
taskboard://#/?task=T6are clickable when an app on your Mac opens their scheme: ⌘-click opens them in that app, the preview says which app, and they show in the terminal’s links. Schemes no app opens stay plain text.session.link_atnames the app inapp. - Your own patterns and apps’ refs are links. An app can register the refs it owns, like a task tracker’s
T42, so ⌘-clicking one opens it in that app (midna links patterns, shown read-only under Settings › Terminal › Links and paths). Add your own with Settings › Terminal › Link patterns (terminal.link_patterns): a regex and a URL that uses its groups, likePROJ-(\d+) = https://you.atlassian.net/browse/PROJ-$1, limited to agent terminals withagentsor to projects withproject:<name>. Matches inside URLs, paths or other words stay text. - Claude plan usage for tools.
midna usage(andusage.get,session.getagent_info.rate_limits) shows the 5-hour and weekly limits Claude Code reports, and ausage.limit_reachedevent fires when one runs out.midna links --kind file --turn lastlists the files an agent edited since your last prompt. - Dictation with Kass. midna opens a real text field as soon as Kass starts listening, so dictation can read and edit what you say in a terminal.
- Triggers answer a blocked prompt on their own. A trigger on
agent.prompt_blocked(like auto-compact:/compact, then the prompt again) used to wait forever, because Claude puts the refused prompt back in its input box. midna now clears the box when it holds exactly that prompt and sends the steps; anything else you typed there still makes them wait. - Signed updates. midna checks for updates every few hours, verifies them, and installs them on restart without closing your terminals. Turn on the beta channel in Settings › Updates to get new features early.
- Your own agent arguments.
midna open --agent claude --resume <id> -- --append-system-prompt "…" --settings board.json(andsession.open {agent_args, resume}) start an agent with its own flags and conversation. A--settingsor--append-system-promptis merged with midna’s own, so midna’s hooks keep working. - Unattended closes. Turn on Settings › Agents may force-close terminals to let an agent close working terminals and use
close --forcewithout asking you. Off by default. - Approvals clean up after themselves. An approval about a terminal that has since closed, or from an agent that went away, leaves Needs you on its own.
- An agent that moves on stops needing you. When an agent raised
midna attentionand then gets your next prompt, its request leaves Needs you. If it’s still stuck, it asks again. A prompt a trigger or another agent types or queues into its terminal leaves the request open (a message you queued still counts as yours), so a watching agent’s own triggers don’t close what it asked you. - Folder trust in Needs you. When a new Claude asks “Do you trust the files in this folder?”, its terminal shows as needs you and you can answer from Needs you.
- Why a terminal ended.
session.closedsays how a terminal was closed (close, force close, replace, close on exit, …), a newagent.session_endedevent records the agent’s own reason and who ended it (you, an agent, a restart, or the agent itself), andsession.exitednames the exit (state,reason). An agent’s last hooks no longer fail with “no session” after its terminal is closed. - Terminals that close themselves.
midna open --close-on-exit(session.open {close_on_exit: true}) closes an agent’s or command’s terminal when it exits normally. A failed exit stays open so you can see why. - Unattended updates. Turn on Settings › Agents may install updates (
agents.may_install_updates) to let an agent runmidna updates installwithout asking you, e.g. one that tests each beta as it lands. Signature checks still apply. Off by default. - CLI.
midna get <id>shows one terminal;--no-waitreturns a needs-you id instead of waiting for your answer (midna needs get|wait <id>follows it); agents may remove a project midna created for theiropen --cwdonce its terminals are closed. - Closing a terminal moves. ⌘W folds the closed row away while the rows below slide up, the highlight moves to the terminal shown next, and the pane slides to it the same way. Opening one (⌘T and the like) runs it in reverse: the new row unfolds, the highlight slides to it and the pane slides it in. Reduce Motion turns it off.
- Replace a terminal with ⌘R. It swaps the selected terminal for a fresh one of the same kind in the same project, directory and sidebar slot, then closes the old one: ⌘T + ⌘W without the shuffle. Also in the ⋯ menu, the command bar, and
midna replace <id>(session.replace). - Pin a project to the sidebar. A pinned project stays in the sidebar after its last terminal closes, with a “New terminal” row under its heading; clicking it (or its ⌘1–9) opens a shell there. Pin from the project’s … menu,
midna projects pin|unpin <id>, orproject.update {pinned}. - ⌘T opens an agent. ⌘T starts a new terminal running the agent you last started in that project (Claude, Codex…), and ⇧⌘T opens a plain terminal. At root it’s ⌥⌘T and ⌥⇧⌘T. Rebind them in Settings › Shortcuts.
- Move between terminals with ⌥⌘↑ / ⌥⌘↓. They select the previous or next terminal in the sidebar, wrapping around, and the highlight and the pane slide to it. Jumping between the prompts you sent an agent no longer has keys by default (bind them in Settings › Shortcuts); its ‹ › buttons still work.
- ⌘A in an agent’s input selects your prompt. In Claude Code’s or Codex’s input box, ⌘A selects just the text you’ve typed and moves the cursor to its end, so typing or ⌫ replaces it. Elsewhere it still selects the whole screen.
- ⌘X cuts in the input line. Select text in Claude Code’s or Codex’s input box or at a shell prompt (with the mouse, ⇧ arrows or ⌘A) and ⌘X copies it and erases it. ⌘C now copies a selection made with the keyboard too.
- ⌫ deletes a mouse selection across rows. Drag over several lines of an agent’s input (or a wrapped shell command) and ⌫, ⌦ or typing replaces it, as it already did for a selection on the cursor’s row. The cursor walks to the selection’s edge first.
- The sidebar folds away. ⌘B wipes each line back to its status dot, top to bottom, then closes the panel to the rail, where the dots pop in. Expanding opens the panel first, then writes the lines back in. The terminal resizes once, not on every frame. Reduce Motion turns it off.
- Schedules that run every 55 minutes.
--cron '@every 55m'(also1h30m,5h) runs on a fixed interval cron can’t express:*/55means minutes 0 and 55, not every 55 minutes. The first run is one interval after you add it (or at--starts), then it keeps that pace. The schedule editor picks it automatically when the number doesn’t divide an hour or a day, and no longer describes*/55as “Every 55 min”. - A night asleep isn’t idle time. Idle triggers,
idle_forqueued messages, needs-you expiry and an agent’s restart grace count only the time your Mac was awake, so waking it no longer fires them all at once or withdraws requests before you see them. Tools can read midna’s sleep log withclock.sleeps. - Setting requests show the setting. When an agent asks to change a setting only you can change, Needs you shows it the way Settings does: its name, where it lives, and the value it would get, with what the request adds and removes marked. Change it before you press Save (chips, switches and choices are clickable; Show current shows what it is now), and the agent can read back what you saved. Notifications say “Change “Status bar items”” and what changes, not the raw command.
- Done, with work still running. When an agent’s turn is over but a background shell or agent it started still runs, its green dot gets a blue ring, and a folded project’s bar counts it as working. Hover the header dot (or the bar) to see what’s still running. Pick another ring color, or turn the ring off, in Settings › Appearance › Bars › Background work ring (
ui.status.background_ring) if blue and green are hard to tell apart.