Agents and Focus Agent
When several agents work at once, Agents keeps their sessions together across projects: the task, status, and time in that state. Focus Agent lets you choose one from the keyboard, like the macOS app switcher. These controls are available in Layout 0.6.0.
Focus Agent
Section titled “Focus Agent”Hold ⌃⌥ and press Tab. Sessions needing your reply come first, followed by unread results, then the most recent activity. Multiple sessions in the same project stay separate.

Hold the shortcut to choose a session; release to focus it. Example sessions shown.
- Tab or ↓ selects the next session; ⇧Tab or ↑ selects the previous one.
- Release either held modifier to focus the selected session, or press Return.
- Esc cancels without opening a session or marking a result read.
- Press / to search by project, agent or task. Search stays open when you release the keys; Return opens your choice. It only searches agent sessions.
The selection order stays fixed while you choose, even if another agent reports activity. Focus Agent in the command palette or Focus Agent… in Layout’s menu opens the search directly.
Change the shortcut in Settings › Shortcuts, for all keyboards or for one. If a workspace already uses the default keys, it keeps them: choose another shortcut for Focus Agent. Layout must be active to focus a session; the Layout bar and the ⌘Tab replacement can both be off.
Agents dashboard and quick access
Section titled “Agents dashboard and quick access”Choose Agents above the workspace list or Agents… in Layout’s menu. The dashboard groups sessions by workspace and shows their agent, task excerpt, status and elapsed time:

The full dashboard keeps each project’s sessions together. Example sessions shown.
- Working: a hook recently reported work in progress.
- Needs your reply: the agent asked for you. Opening it leaves that question waiting until the agent resumes or the session ends. When it asks permission to run a command, edit a file or use a tool, the row shows what it asks, with Deny and Allow: see Allow or Deny from the card. Claude Code’s questions and plans show there too, with their answers or Approve: see Claude’s questions and plans.
- Unread result: a turn finished and you haven’t opened its result yet.
- Read: you’ve opened or acknowledged the current result.
- Activity unknown: Layout cannot confirm current activity. A working session enters this state after 15 minutes without an activity event, or when Layout restarts.
The Agents button in the Layout bar opens a compact list, with waiting sessions first. All agents opens the full dashboard. When the Layout bar is off, a terminal icon and Agents appear in the native macOS menu bar and open the same panel. Turning the Layout bar back on moves quick access back to that bar.

The same quick panel opens from either bar. Opening a session marks its current result read.
Opening a session marks its result read
Section titled “Opening a session marks its result read”Open session, or confirming your choice in Focus Agent, marks that session’s current result read and takes you to its app, chat or terminal. Mark read acknowledges a result without opening it. Merely browsing the selector, visiting a workspace or clearing notifications does not mark an Agents result read.
Opening a chat manually in Claude, Codex or Cursor’s editor also marks only that session’s current alerts read. Switching chats inside the same app counts too. Layout uses the exact displayed chat identity and leaves alerts unread when it cannot identify that session reliably. Cursor requires an identifiable workspace and visible selected chat tab; missing or ambiguous tab/storage metadata stays unread. Other sessions stay unread, and the viewed session and its results remain in All agents. Automatic window raises and app links from Layout do not count as manual visits. Terminal hosts still use the explicit opening and read controls above.
Unread results survive restarting Layout. A new completion becomes unread again, even if it arrives while Layout is still opening the session. A previous unread result can remain beside a session that has started working again. Read or inactive sessions can be dismissed once they no longer need attention. While Layout is paused, you can read the dashboard and mark results read; opening sessions is disabled.
Which sessions appear
Section titled “Which sessions appear”Sessions appear when local hooks report an event from a folder assigned to one of your workspaces. Layout does not list cloud sessions or discover every existing session when it starts. Older hooks can still report questions and completions, but need Update in Settings › Integrations to show working states and task excerpts. Hooks without session identifiers cannot distinguish every session in the same folder and app.
The task excerpt is the first line of your prompt, up to 160 characters. Prompts the agent sends itself don’t replace it: a background task that finished, a reminder or another agent’s message, which Claude Code wraps in a tag of its own such as <task-notification>, so the row keeps the last thing you asked. A shell command you typed with ! shows as ! git push. Session state, excerpts and the latest result message are kept on your Mac; see Privacy.
Connect Claude Code, Codex and Cursor
Section titled “Connect Claude Code, Codex and Cursor”Open Settings › Integrations. Under Agents, click Add next to each agent you use. Layout adds hooks to the agent’s own file, after the hooks already there:
- Claude Code:
Notification,PermissionRequest,Stop,UserPromptSubmit,PostToolUseandSessionEnd, in~/.claude/settings.json. New sessions use them. - Codex:
PermissionRequest,Stop,UserPromptSubmit,PostToolUseandSessionEnd, in~/.codex/hooks.json. The next time Codex starts, it asks you to review them: Codex runs no new hook before you approve it. - Cursor:
stop,beforeSubmitPrompt,postToolUseandsessionEnd, in~/.cursor/hooks.json, for the agent in the editor and the CLI. Cursor reloads it automatically. A completed task gets a green mark; a task that stops with an error gets an amber mark saying “Stopped with an error”. Aborted tasks make no mark. Cursor’s hooks do not report waiting for approval, so those prompts make no agent mark. See Cursor’s hook reference.
Already connected your agents? Click Update to add the activity hooks and, for Claude Code, the permission requests the card answers. Layout does not change installed hook files automatically.
The rest of the file stays as it was written, and its previous version stays next to it, as settings.json.layout-backup or hooks.json.layout-backup. Remove takes the hooks out again. They call the layoutctl inside Layout, so they work without installing the command; if you move Layout or use another copy of it, Update points them to the one you’re using. Opened from its disk image, or from the download without moving it, Layout runs a copy that goes away, so it offers no Add, Update or Copy: move Layout to your Applications folder first.
When the file isn’t valid JSON, Layout leaves it alone and says on which line it breaks: fix it and come back, or click Copy and add the hooks yourself.
An agent that has never run on this Mac has no folder yet, ~/.claude, ~/.codex or ~/.cursor: its row reads “Not set up on this Mac” and has no Add.
Any other tool can mark a workspace too, with layoutctl notify: layoutctl notify --kind needs-input --message "Deploy?" from the project’s folder.
Which workspace
Section titled “Which workspace”Layout marks the workspace whose folders hold the folder the agent works in: its project folder, its Claude and Codex projects, and its editors’ and terminals’ own folders. When several match, the deepest folder wins, so an app in ~/code/shop/web marks the workspace of web rather than the one of shop.
A git worktree counts as its repository, wherever it lives: Claude’s and Codex’s own worktrees mark the project’s workspace.
In Desktop, Documents, Downloads, iCloud Drive or another folder macOS guards, Layout doesn’t open the worktree’s .git file, which would make macOS ask you to let it into the whole folder. The worktree marks the workspace of the repository that has a worktree of its folder’s name, as git names it, or, without exactly one, the workspace that holds its folder.
For Cursor, Layout uses the first valid absolute folder in the hook’s workspace_roots. In a window with several root folders, the first one determines the workspace. A hook without a valid root is ignored. Going to its notification brings the matching editor or terminal window forward; it does not select a particular Cursor conversation.
The workspace you’re in is marked too when another app is in front. Layout suppresses the mark only when the agent’s workspace is active and its host app is in front. For an agent in a terminal, that means its terminal, not the agent’s desktop app. If the host cannot be resolved, Layout uses the known agent’s app; an identified tmux pane has no single known app, so it stays eligible for notifications.
The mark
Section titled “The mark”- Amber: the agent asks for you. It needs a permission, asks a question, or waits for your next message.
- Green: the agent is done with its turn.
Cursor errors also use amber. Cursor’s application badge remains a separate notification: Layout reads it when it appears or grows in the Dock, even without the agent hook. A macOS banner or an alert inside Cursor without a Dock badge is not mirrored.
A question stays amber until you answer it, even when a turn ends after it.
With Codex’s auto-review, its reviewer answers permissions in your place: they mark nothing, and the mark comes when the turn ends.
The mark shows:
- on a card under the Layout bar for a few seconds, with what the agent said, and with Deny and Allow when it asks before using a tool (see below), or the answers to Claude Code’s question and Approve for its plan (see below);
- in the Layout bar, after the workspace’s name: the first notification to visit, with +2 when others wait too. Click it to go there, or hover it to read what each agent said;
- in the workspace switcher and the Overview, next to the workspace’s name;
- in the menu of the workspace’s name on the Layout bar.
Going to the workspace clears its notification mark, whichever way you get there. A mark received in the current workspace also clears when you bring its host app forward or visit the notification. The dashboard’s unread results are separate: they become read when you open the session from Agents or Focus Agent, choose Mark read, or manually open their exact chat in Claude, Codex or Cursor’s editor.
Allow or Deny from the card
Section titled “Allow or Deny from the card”When Claude Code or Codex asks before it runs a command, edits a file or uses a tool, its card comes with Deny and Allow: you answer without leaving what you’re doing.
- What it shows: the agent, its workspace and what it asks, on one line, such as
Run git push origin mainorEdit page.tsx +12 −3. Put the pointer on the card and it grows to show everything: the whole command or the lines an edit removes and adds, the agent’s own words, and the folder. - How long: 10 seconds, and as long as the pointer stays on it. Without an answer, it goes back in, and the request waits in Agents, with Deny and Allow on the session’s row, until you answer it there or in the agent.
- Allow lets the agent go on. Deny stops it: Claude Code stops as for its own No and waits for your instructions; Codex is told you denied it and to wait for you.
- What it can’t show in full, such as a long script, gets Open instead of Allow: it takes you to the agent, where you can read it all.
- The buttons take clicks half a second after the card comes out, so a click meant for something else doesn’t answer.
- A click elsewhere on the card, or ⌃⌥N, takes you to the agent instead, where its own question waits. On Claude’s questions, a click elsewhere does nothing (see below).
- Answered elsewhere: answering in the agent, bringing its app forward, going to its workspace, opening its session or marking it read takes the request away, from the card and from Agents: the agent asks you itself.
- Several at once: one card at a time, the oldest first; the others wait in Agents.
Claude Code shows its own question at the same time, so you can still answer in its terminal or app; the first answer counts. Codex shows nothing while Layout waits for your answer, so it waits only while you’re not in front of Codex: bring it forward, or go to it, and it asks you itself. Without an answer, the agents stop waiting for Layout after 10 minutes. A command Codex already asked about in the session doesn’t wait for Layout again, unless you answered it from Layout: a command you approved in Codex for the whole session runs without waiting.
There’s no card while you’re in front of the agent’s app, while Layout is paused, or with Show notification cards off in Settings › General: the agent asks you itself. Claude Code’s Auto mode and Codex’s auto-review answer requests without asking you, so only what the agent would ask you comes to the card. Cursor’s hooks don’t report approval prompts.
Claude’s questions and plans
Section titled “Claude’s questions and plans”Claude Code asks its questions and shows its plans even in Auto mode. They come to the card the same way, and you answer them from there.
- A question shows with its answers on one line. Put the pointer on the card and each answer becomes a row, with what Claude says it means, and Recommended on the one Claude suggests: click one to answer. For a question that takes several answers, tick them, then click Send. When Claude asks several questions at once, they come one at a time, with Back, and your answers go to Claude together after the last.
- Previews: when Claude shows a preview beside its answers to compare, such as a mockup or some code, the card shows it under them: first the one of the answer Claude recommends, then the one of the answer you rest the pointer on.
- Only the answers and buttons take clicks, so a click that misses an answer doesn’t take you away from the questions you’re answering.
- To answer in your own words, click Type your own at the bottom of the card, or press ⌃⌥N: it takes you to Claude’s question.
- A plan shows its title and number of steps, with Keep planning and Approve. Put the pointer on the card to read the whole plan; a long one scrolls in the card. Below it, Then picks how Claude goes on once you approve: Auto mode, as Claude’s own first choice, or Ask before edits.
- Keep planning stops Claude in plan mode, waiting for what you want to change: tell it in its terminal or app.
- Without an answer, the card goes back in after 10 seconds and the question or plan waits in Agents, with the same answers or Keep planning and Approve on the session’s row. Answering in Claude takes it away.
Codex’s hooks can’t answer its questions or plans, so Codex keeps asking you itself.
Go to the next one
Section titled “Go to the next one”Each mark is also a notification, next to the apps’ Dock badges. ⌃⌥N goes to the next one, the agents asking for you first, and ⌃⌥P back; ⌃⌥/ lists them all. Change the keys in Settings › Shortcuts. If one of your workspaces already used one of them, it keeps it.
It takes you to the agent itself, not only to its workspace:
- In Claude or Codex, their window comes forward and the session that asked for you opens, even when the project has several. A session the app no longer has opens the latest chat of the agent’s folder instead.
- In a terminal or an editor, its window comes forward: the one showing the agent’s folder when there are several.
- In tmux, the agent’s pane becomes the current one in its window, grouped sessions included, and the terminal showing it comes forward.
- In cmux, its window comes forward showing the agent’s tab, and the agent’s pane gets the keyboard. See cmux.
- In T3 Code, its window comes forward on the agent’s thread. See T3 Code.
When that window is in another workspace, you go there, and the mark goes too. When there’s no window to bring, because the app quit or no terminal shows the tmux session, you land in the marked workspace.
cmux keeps its own notifications, one per pane: an agent that asks for you or finishes, whichever agent it is, or any tool that notifies in a cmux terminal. Layout makes each pane with a notification you haven’t read in cmux one of its own, in every workspace, with its card, its place in ⌃⌥/ and ⌃⌥N. Nothing to set up: Layout reads the log cmux keeps of its events, ~/.cmuxterm/events.jsonl, as cmux writes it. cmux’s Dock badge then no longer counts as a notification of its own.
- What it says: the agent cmux saw in the pane and the cmux tab’s name. cmux leaves the notifications’ words out of its log, so Layout doesn’t have them. When you also connected Claude Code or Codex, the agent’s own words show, and the pane’s notification and the agent’s mark are one: it stays new until you answer it, as an agent’s mark does.
- Which workspace: the one whose folders hold the pane’s folder, as for an agent; otherwise the one cmux’s window is in. A wildcard cmux comes to the workspace you’re in.
- Going there: cmux’s window comes forward, already showing the tab, then the pane gets the keyboard. The first time, macOS asks to let Layout control cmux. Without that permission, cmux’s window comes forward without the tab; Settings › Integrations says so and opens Privacy & Security › Automation.
- When it goes: once you read it in cmux, as cmux does when you focus the pane, whichever way you got there. Once cmux has come to the front, it stays in the list, dimmed, until you read it there; one that comes while cmux is in front gets no card. Cleared from the list, a pane stays out until its next notification.
cmux still shows its own banners. If Layout’s card is enough, turn cmux’s off in System Settings › Notifications › cmux. Turn Layout’s reading of cmux off in Settings › Integrations, with cmux: an agent’s mark in a cmux pane then brings cmux’s window forward, as for any terminal.
T3 Code
Section titled “T3 Code”When T3 Code runs Claude Code or Codex, its sessions are T3 Code’s: their card, their row in Agents and Focus Agent show T3 Code’s name and icon, and going to one brings T3 Code’s window forward on that session’s thread, launching T3 Code if it isn’t open. It works once you connected Claude Code or Codex; there’s nothing else to set up.
- Claude’s thread: T3 Code tells each Claude Code it starts which thread it runs, and Layout trusts that only when T3 Code is the app running the agent.
- Codex’s thread: T3 Code runs every thread’s Codex in one process, so Layout finds the thread in T3 Code’s own records, read only. If it can’t read them, as after an update of T3 Code, going to the session brings T3 Code’s window without changing its thread.
- T3 Code’s own runs: T3 Code also asks Codex for a thread’s title or a branch’s name. Those runs have no thread, so Layout leaves them out of Agents and your notifications.
- After a restart of Layout, a session still goes to its thread.