Skip to content

Chats and agents ​

A chat is one conversation with one agent in one project. You can run as many as you like at the same time.

Agents ​

Mango drives two agent CLIs:

AgentCommandHow Mango runs it
Claude CodeclaudeOne process per turn, streaming JSON over stdio; the conversation resumes with --resume
CodexcodexOne codex app-server process per turn (JSON-RPC over stdio); the conversation resumes on the same Codex thread

Mango starts your installed CLI in the project folder for each turn and shows what it streams: text, thinking, tool calls (reads, edits, writes, commands, searches, web requests, sub-agents), diffs of the files it changes and the output of commands it runs. Each finished turn shows how long it took.

Because the CLI keeps its own session, a conversation picks up where it left off on the next turn and after you restart Mango. The agents keep their session files where they always do (~/.claude, ~/.codex).

Changing agent or model ​

The Agent and Model pickers under the message box work at any time between turns. Switching a chat to the other agent starts a fresh conversation with that agent (each CLI only knows its own history) and resets the model to Default.

AgentModels
Claude CodeDefault, Opus, Sonnet, Haiku
CodexDefault, GPT-6-Luna, GPT-5.6-Terra, GPT-5.6-Luna

Default means whatever the CLI itself is configured to use.

Permission modes ​

The Permissions picker sets how much the agent may do before it checks with you. It applies from the next turn, so you can tighten or loosen it in the middle of a chat. The default for new chats is in Settings > Preferences.

ModeWhat it means
PlanRead-only. The agent explores and proposes a plan; it changes nothing.
Ask firstThe agent asks before every edit and every command.
Accept editsThe agent edits files without asking, and still asks before commands.
Full autoThe agent never asks. It edits files and runs commands on its own. Use with care.

Each mode maps onto the CLI's own permission system, so the exact behaviour follows the agent:

ModeClaude CodeCodex
Plan--permission-mode planread-only sandbox, never asks
Ask first--permission-mode defaultasks for every file change and command (untrusted), runs inside the workspace sandbox
Accept edits--permission-mode acceptEditsedits and sandboxed commands run without asking; a command that has to leave the sandbox (network, writing outside the project) asks first
Full auto--permission-mode bypassPermissionsnever asks, but stays sandboxed to the project: a command that needs more fails instead of escalating

Codex has no "edits free, every command asks" setting, so Accept edits uses the closest one.

Approvals ​

When an agent wants to do something its mode does not allow on its own, the chat shows a card with what it wants to run and why, and two buttons: Allow once and Deny. Until you answer, the chat's status is Needs you and the titlebar shows a marker with the number of chats that need you; click it to jump to one.

Once answered, the card shrinks to a single line: "You allowed this", "You denied this", or "Not answered" if the turn ended first.

There are no "always allow" rules yet; every request asks again.

Statuses ​

Every chat shows its status with a small dot in the sidebar and on its tab.

StatusWhen
WorkingA new chat, an agent running, or a finished turn waiting for your next message.
Needs youAn approval is open. Only a run sets this.
FailedThe run failed (for example the CLI is missing, not signed in, or crashed). Only a run sets this.
SettledYou marked the chat as done.
ArchivedYou put the chat away.

A chat never settles by itself: every finished turn lands back on Working. When you are done with a chat, press the check mark on its sidebar row (Mark as settled); press it again to go back to Working. The mark is disabled while the agent is still running.

A finished turn you have not looked at yet gets an extra marker, so you can see at a glance which chats have new results.

The sidebar ​

The sidebar shows the chats of the project selected in the titlebar, in three groups:

  • Working at the top, with a row to start a new chat. Chats that need you or failed stay here.
  • Settled, below. It folds away; a folded group still shows when it holds unread results.
  • Archived, at the bottom, also foldable.

Arranging chats ​

New chats arrive on top. Arrange them by hand by dragging a row, with Alt ↑ / Alt ↓ on a focused row, or with Move up / Move down in the row's menu.

The chat menu ​

The ... button on a row opens:

  • Rename: edit the title in place (Enter saves, Esc cancels). Otherwise a chat is named after its first message.
  • Open to the side: show it in the second pane of a split.
  • Move up / Move down.
  • Working / Archived: set the status by hand.
  • Remove worktree… (Remove workspace… for Unity VCS): for a chat in its own worktree (see below).
  • Delete chat.

An archived chat has an Unarchive button on its row. Sending a message in an archived chat also brings it back.

Tabs and split view ​

Every chat you open becomes a tab above the chat area. Ctrl 1…9 switch to a tab, Ctrl W or a middle click closes one, and Ctrl N or the + starts a new chat. Closing a tab does not delete the chat; it stays in the sidebar.

Ctrl \ (or the split button at the right of the tab bar) splits the chat area into two panes; press it again to close the split. Drag the divider to resize the panes; double-click it to make them equal. Diffs from the Changes view open as tabs in the same area, so you can read a diff next to the chat that made it.

Worktrees: chats that work in parallel ​

Several chats in one project normally share the project folder, so two agents editing at the same time can step on each other. A chat can instead get its own git worktree: a separate folder on its own branch, made beside the repository (<repo>.worktrees/<branch>). Its agent works only there, and your project folder is left alone.

Start one with Ctrl Shift N, the folder button next to the + of the Working section, or New chat in a worktree… in the command palette. Give the branch a name (one is suggested) and pick the branch it starts from; a name that already exists checks that branch out instead. Worktrees that are already there are listed too, and New chat here starts another chat in one.

What you look at follows the chat in front of you: the titlebar shows that chat's worktree and branch, and the Changes and Files tool windows, the branch popup and new terminals work in its folder. With two panes split, the active pane decides. The worktree button in the titlebar lists the project folder and every worktree, with their branches and chats; pick one to go to its latest chat. Worktree chats show their branch on their sidebar row and a small mark on their tab.

Remove worktree… in a chat's menu deletes the worktree's folder. The branch and its commits stay, so you can merge it or open a pull request from it. If the worktree has uncommitted changes Mango says so, and removing it anyway is a separate second step. Chats that worked there carry on in the project folder.

In a Unity Version Control project the same commands give a chat its own workspace instead of a worktree.

Drafts ​

Text you have typed but not sent is kept per chat, so switching tabs or panes never loses it. Drafts live in memory: they do not survive quitting Mango.

Where chats are stored ​

Chat history, tabs and preferences are stored in the app's local storage on your computer. The agents keep their own session files as usual.

Not there yet ​

Attaching files and images to a message is not available yet (the paperclip in the message box is disabled). Neither are multiple-choice questions from agents, or "always allow" approval rules.

Mango 0.1.46