Agents
Start Claude Code, Codex, OpenCode or Copilot in a tab, see what each one is doing, answer its asks and hand off a long session.
Coral Terminal runs four agents: Claude Code, Codex, OpenCode and the GitHub Copilot CLI. They run as they always do, in a real terminal. Coral adds their state, their asks as cards and, for Claude Code and Codex, a Chat view.
| Claude Code | Codex | OpenCode | Copilot | |
|---|---|---|---|---|
| State on the tab | Yes | Yes | Yes | Yes |
| Asks as cards | Yes | Yes | In its terminal | In its terminal |
| Chat view | Yes | Yes | Not yet | Not yet |
| Pick the model | Yes | Yes | Yes | Default only |
| Hand off | Yes | Yes | No | No |
State and cards need Show agents' state on. See Get started.
Start an agent
Press ⌘N, or click New agent at the top of the sidebar. Describe the task and press Return: Coral starts the agent, files the tab and names it.
The chips under the box pick the rest:
- Agent and Model. Coral remembers your last model for each agent in each project. Settings › General › Default agent picks which agent comes first.
- Group, to file the tab.
- New worktree, to start on its own branch in its own folder, so it never touches your working copy. Closing the tab asks whether to remove the worktree too.
Agents start in a project, not in Home. You can also type claude, codex, opencode or copilot in any Terminal tab: it becomes an agent tab while the agent runs.
If an agent doesn't start, the tab says why and stays a Terminal. Try again (⌘R) starts it again.
See what each one is doing
Each agent's icon sits inside a ring:
| Ring | Means |
|---|---|
| Amber, pulsing | Needs you: a question, a permission or a plan |
| Blue, spinning | Working |
| Green | Done |
| None | Idle |
When an agent finishes its turn with a shell, sub-agent or monitor still running, it doesn't turn green. The ring closes, a dot keeps circling, and the row says how many still run: "3 running". Hover the tab, or press →, to see each one and how long it has run. The tab turns green when the last one ends.
The Needs you bell in the top bar counts the agents that need you, across every project.
Keep agents up to date
When a newer Claude Code, Codex, OpenCode or Copilot CLI is out, a button with their icons and a count shows up in the top bar. Click it to see each one's version and what's new, then:
- Update all (↵) updates them one at a time, with the same command you'd use:
claude update,npm install -g …@latestorbrew upgrade, whichever matches how it was installed. - Hover a row for Update or Skip. Skip hides that version only. The next one shows again.
Agents already running keep going. New ones use the new version. If an update needs your password (a global npm folder that needs sudo), Run in Terminal opens a tab with the command so you type it there. The same updates are in Settings › Agents, and Show agent updates there turns the button off.
Chat and Terminal
Claude Code and Codex tabs have two faces on one running agent. Terminal is the agent's own screen. Chat shows the same session as messages: your prompts, its replies, folded steps with the files it touched, and code you can copy or open. ⌘E switches between them.
New agents open in Terminal. Settings › General › Open new agents in makes Chat the default.
In Chat's box:
- ↵ sends, ⇧↵ adds a line.
@adds a file from the project.- ⌘V adds an image.
/opens your saved prompts and the agent's own commands. Commands that need the agent's screen, like/model, switch to Terminal.
Run SQL on Supabase
When Claude Code or Codex writes a sql code block in a reply, it gets Copy and Run on…, in Terminal and Chat. Pick a database and the SQL opens in an editor on the right, runs there, and shows its rows. Open in SQL editor, don't run in the same menu only opens it. ⌘K › Open SQL from the last reply does too.
- Local is
supabase starton your Mac. Preview branch lists the project's branches, and Make asks first because Supabase bills for one. Production is the hosted project. - In the editor, Run (⌘↵) runs the selection, or all of it. Coral keeps the database you picked for each folder.
- SQL that drops or empties a table, changes every row, or that Coral can't follow asks once before it runs. Everything else runs on your click, on Production too. A function the SQL calls can do more than Coral sees.
- Results show the first 1,000 rows, with Copy CSV. Tell Claude 1 it ran sends the kind of database and the row count, not the rows. Ask Claude 1 to fix it puts the SQL and the first line of the error in its box, not sent.
It uses the supabase command (version 2 or 3) and its login. In a narrow terminal, or where the SQL doesn't all show, hover it for a card instead.
Answer an ask
When Claude Code or Codex asks something, a card shows in the tab and the ring turns amber.
| Card | Answer with |
|---|---|
| Permission: run a command, edit a file, open a page, use a tool | Allow ⌘↵, Deny ⌘⌫, Always… ⌥⌘↵ when the agent offers it |
| Question | 1 to 9 picks an option, or type your own words, then ↵ |
| Plan | 1 to approve with auto edits, 2 to approve and ask before edits, 3 to keep planning with a note. ⌘O opens the full plan |
Esc never answers. You can always answer in the agent's own terminal instead; the card clears.
Run what the agent asks you to run
When Claude Code or Codex asks you to run a ! command, hover it on the Terminal face to run it in the agent, paste it into the prompt or copy it. A risky command warns you first and puts Paste first.
Allow what the agent was blocked from
When Claude Code can't change its own permissions and writes the rules for you to add ("Bash(gh pr close *)"), Coral Terminal offers them. On the Terminal face a bar under the terminal says the agent was blocked; Review lists each rule with what it lets the agent do. In Chat the same card sits in the reply. Tick the ones you want and Allow: Coral adds them to the project's .claude/settings.json (or the file the agent named), Claude Code uses them at once, and Undo takes them out. Rules that would let the agent do anything, like Bash(*), Bash(git *) or editing .claude, never go in with one click.
Hand off a long session
A session that's run for hours gets slow and forgetful. Hand off starts a fresh one with a note of where the old one left off.
- Press ⇧H on a Claude Code or Codex tab, or choose Hand off to a fresh session from its menu.
- The agent writes the note. Read it, or Edit note (E).
- Start new session (↵). The new tab takes the note's title and starts with the note and the earlier conversation.
The inspector's Context row shows how full the session is, like "48% used · hand off at 80%". Past that mark it turns amber and offers Hand off. It never hands off on its own. Change the mark, or turn it off, in Settings › Agents › Offer Hand off at.
Your own /handoff command works too: its new tab is named the same way.
Move an agent to a project
Drag an agent from Home onto a project. If it already works in that project's folder, it moves and keeps going. If it works somewhere else, dropping it hands off: the new session starts in the project's folder. An agent in a worktree stays with its repo.
A Home agent working inside a project shows that project on its row. Click it to move the agent there.
See what changed
The header's +38 −12 shows what the agent changed. Click it, or press ⌥D, to open the diff beside the agent:
- This turn, Since you last looked, Everything not committed or This branch vs main.
- Unified or Split.
- J and K move between files, N and P between changes. V marks a file viewed. C comments on a line, and Send gives your comments to the agent.
⌥⇧D opens the diff in its own window. The inspector's Changes lists each file with its counts; click one for its diff.
Images and files
- Drag files from Finder into a terminal: their paths go in, ready for the agent.
- Paste or drop a screenshot on Claude Code and it becomes
[Image #1]. Hover[Image #N]to see the picture; click for Quick Look, Reveal in Finder or Copy image. - ⇧⌘I shows the images you've sent in the inspector.
- When the agent asks you to add lines to
.envor.gitignore, press Add (on the lines in the Terminal face, or under the reply in Chat): the file opens on the right with them at the end, ready for your values. Nothing is saved until you press ⌘S. - Open a file on the right and press Edit to change it there: ⌘S saves, Revert puts it back. If the agent changes the same file before you save, you pick Keep both, Keep mine or Take the agent's; nothing is overwritten without you. After a save, Tell lets the agent know which lines or
.envkeys changed, never their values. - When something asks for an editor, like
git commit,crontab -eor Claude Code's ctrl+g, the file opens on the right instead of vim. Done (⌘S) hands it back, Cancel leaves it as it was. Coral only does this when you haven't setEDITORorVISUALyourself; turn it off in Settings › General › Open your editor in Coral. - In a
.env, values of keys that look secret show as dots until you press Show values.
Environment variables
Right-click a project and choose Environment variables… (also in ⌘K and View › Environment Variables) to see every .env file in it on the right, without an IDE and whatever the agent wrote.
- Needed lists keys the code reads, or
.env.examplelists, that no.envfile sets. Press Add to fill one in. - Add variable takes a key and a value (paste a whole
.envinto Key to add many at once). Goes in picks the file your app actually reads and says why, like "Next.js loads it"; you can pick another. - If git would commit that file, Coral says so before saving and offers Add to .gitignore and save.
- Values that look secret show as dots. After a save, Tell lets the agent know which keys you set, never their values.
Saved prompts
Save a prompt you send often. Hover one of your messages in Chat and click the bookmark, or add one in Settings › Saved prompts. Write blanks as {name}. Type / in Chat to use it; Tab jumps between blanks.
A saved prompt can be for one project or every project. Coral won't save one that looks like a key or token.
Notifications
When an agent needs you or finishes and you're in another app, Coral Terminal shows a banner with the agent and project. Click it to open the tab. The Dock icon counts the agents that need you. Change any of it in Settings › Notifications.