The AI Agent Tool
Pro Only
The AI Agent tool holds your agent sessions: the sessions the Tasks Manager and your task queues run tasks in, the sessions AI Actions start, and any you start yourself. It is shown automatically when you run Set Up for AI Agent from the Project menu, or you can show it from the Tools menu.
Most work is best written as tasks in the Tasks tool. You can also work with an agent directly by typing requests at a session's prompt: for example, to explore a design, ask about the code, or guide a task the agent is working on. The agent reads your source files, makes changes, runs tests, and iterates until the request is done.
What a session looks like depends on the agent. Most agents, such as Claude Code, Codex, and Cursor, run their own textual user interface in a terminal inside the tool. goose and other agents that speak only the Agent Client Protocol (ACP) talk to Wing over that protocol, and Wing manages the conversation in its own AI session UI. See the AI Agents How-Tos for a list of the supported agents.
Agents with their own interface also have an ACP version, such as Codex ACP, which Wing lists only when the Show ACP Versions of Agents preference is enabled, or while Shift is held with an agent menu open. See Setting Up an AI Agent for details.
Choosing and Configuring an Agent
The project's default agent is set on the AI Agent tab of Project Properties, and the default for new projects on the AI page of Preferences. The tool's Options menu (the ⋯ button) can also change it: New Session lists the agents Wing knows, and choosing one starts a session on it and subsequently uses that agent as the default agent type.
This default decides which agent a new session or a new task queue is started on, and which agent the tool offers to set up when no session is running. Changing it never affects a running session or an existing task queue, since a queue's session belongs to the agent it was created for. To put a queue on a different agent, use New Session or Resume Session in the queue's context menu on the Tasks tool's Execute tab.
The agents work out of the box once you have signed into them, either outside of Wing or in a session. Some agents ask you to sign in when they start; for the others, use Sign In to <Agent> in the tool's Options menu. For goose and other ACP agents, you can instead use Configure Agents... in the Options menu to create a named configuration that holds credentials or starts a custom agent. Configured agents are listed under Custom Agents in the menus that choose agents.
Reviewing Changes
The Review button on the tool's row is enabled when the agent is idle and its session's task queue has a task awaiting review. It does the same as Start Review on that queue on the Tasks tool's Review tab, and the diff/merge dropdown beside it lists the queue's changed files. See Reviewing Tasks for the review itself.
A session whose Tasks integration is disabled from the options menu has no queue, so its Review button reviews all uncommitted changes in the working copy, and it has no dropdown.
Sessions
Sessions are bound to a working directory and persist across restarts: Wing remembers which conversation each session was in, along with which agent it belongs to, and resumes it the next time the tool is shown. A session's prompt history comes back with it.
The session selector at the top of the tool lists every session the tool holds, including its agent type and a link to its queue in the Tasks tool.
The Options menu provides the following session management commands:
- New <Agent> Session -- Add another session on the agent this project uses.
- New Session -- Start one on another agent, picked from the submenu. That agent becomes the project's, so the item above offers it next time.
- Resume <Agent> Session -- Reopen one of this agent's earlier conversations, picked from the list it reports.
- Resume Session -- The same for another agent, picked from the submenu. Only agents this project is set up for are listed, since there is nothing to resume on the others.
- Delete Session -- Remove the current session from the tool (after a confirmation).
- Interrupt -- Stop the turn in flight without ending the session. Esc (or Ctrl-G in Emacs mode) does the same thing.
- Terminate / Restart / Start <Agent> -- Stop, restart, or start the agent in the current session. Use these if an agent crashes or after connection problems. A restarted agent will continue to use the same session.
- Sign In to <Agent> -- Start the agent's own sign-in, for agents that have one. For Claude Code and Copilot, Wing types /login into the session, and for OpenCode /connect. Codex, Cursor, and Antigravity have no such item, since they ask you to sign in when a session starts. For agents run over ACP, Wing runs the agent's sign-in command in the OS Commands tool: goose configure for goose, for example, or copilot login for Copilot ACP.
- Set Up Credentials / Edit Configuration <name> -- Give this agent an API key or other credentials, or open the configuration the session is already using.
- Configure Agents... -- Arrange named configurations, as described above. It opens the Configure AI Agents window.
An ACP session, which Wing manages in its own AI agent conversation UI, also offers:
- Clear Conversation -- Forget the conversation so far and start a new one, as the agent's own /clear does.
- Clear Transcript -- Empty the view without touching the conversation.
- Copy Transcript -- Put the conversation on the clipboard.
- Show / Hide Tool Output -- A finished step shows what it did rather than what it printed; this is the way back to the output.
A session running the agent's own terminal interface instead offers Adjust Colors, Forward Mouse to Subprocess and Disable Tasks Integration, which are settings of that terminal. Forward Mouse to Subprocess is a preference, applied to all such sessions and remembered across restarts.
Permission Requests and Modes
An agent asks before doing what it has not been pre-approved for, such as editing a file outside the approved directories or running a command. Wing answers from the project's permission settings where they apply, and asks you where they do not. What is pre-approved is set per project; see Configuration.
Agents that offer modes, which set how much they may do without asking, show the current mode in the session, where Shift-Tab changes it. See Run Modes for the modes tasks run in.
Multiple Sessions
You can have several sessions open at once, on the same agent or on different ones, each working in a directory of its own. Sessions are created automatically when you use AI Actions, or when a queue on the Execute tab of the Tasks tool starts a session for its tasks. You can also add one with New Session, or remove the current one with the trash icon.
Cancelling MCP Calls
Long-running calls from the agent into Wing's MCP servers (for example, a test run, a code-analysis query, or an open review) can be cancelled by pressing Esc (or Ctrl-G in Emacs mode) in the tool. Wing aborts the in-flight operation and the agent returns to its prompt without needing to reconnect.