The Claude Code Tool
The Claude Code tool provides a full Claude Code terminal session inside Wing. It is shown automatically when you run Set Up for Claude Code from the Project menu, or you can show it from the Tools menu.
You interact with Claude Code by typing requests at its prompt. For example, you might ask it to implement a new feature, refactor existing code, write tests, or investigate a bug. Claude Code reads your source files, makes changes, runs tests, and iterates until the task is done. You review and accept or reject the results.
Reviewing Changes
When Claude Code is idle at its prompt and has changes ready to review, a REVIEW button appears next to the Claude Code toolbar. Clicking it asks Claude Code to start a review using Wing's review MCP server, opening a diff view where you can:
- Navigate between changed files and individual hunks
- Add comments on specific hunks to request adjustments
- Revert individual hunks you don't want to keep
- Use the toolbar to approve the changes or request more work
With Tasks integration enabled (the default), the session is bound to a task queue, and the button appears once that queue has a task awaiting review on the Tasks tool's Review tab. The review is scoped to just the files that queue's tasks changed -- clicking the button is the same as Start Review on that queue. A diff/merge dropdown appears beside the button listing those files, each with options to view changes or open the file (the same control as the queue header on the Review tab).
When Tasks integration is disabled from the Options menu, the session has no queue and Wing does not track which files it changed, so the button instead appears whenever the working copy has uncommitted changes and reviews all of them; the diff/merge dropdown is not shown.
If you approve the review, Claude Code commits the changes. If you request more work, Claude Code addresses your comments and can start a new review. During an active review, the REVIEW button remains visible but is disabled.
Sessions
Claude Code sessions are bound to a working directory and persist across restarts. Wing captures the session ID while Claude Code is running and uses it to resume the same session the next time you start the tool. Sessions are renamed at dispatch time so the post-restart session picker shows meaningful labels instead of raw UUIDs.
The Options menu in the tool provides the following session management commands:
- New Session -- Add a new Claude Code instance in a fresh session alongside the current one.
- Resume Session... -- Open Claude Code's session list in a new instance so you can pick a previous session to resume. Useful for switching back to a session you left behind after running /clear.
- Delete Session -- Remove the current instance from the Claude Code tool (after a confirmation). Available when more than one instance is open.
- Execute / Terminate / Restart -- Start, stop, or restart the Claude Code process in the current instance. Claude Code starts automatically the first time an instance is shown (resuming its previous session), so these are for manual control.
- Adjust Colors -- Toggle foreground color adjustment for readability on the current theme background. Applies to all instances in the stack.
Multiple Instances
You can have multiple Claude Code instances open simultaneously, each working in a different directory. Additional instances are created automatically when you use AI Actions, or when a queue on the Execute tab spins up a dedicated Claude Code instance for its tasks. You can also add an instance manually using the + button in the toolbar, or remove the current instance using the trash button.
Each Claude Code instance runs in a specific working directory, shown in the tool's status area. To change between multiple instances, click the instance title area at the top of the tool for a drop-down listing all instances.
Cancelling MCP Calls
Long-running calls from Claude Code into Wing's MCP servers (for example, a test run, a code-analysis query, or an open review) can be cancelled by pressing Esc in the Claude Code tool. Wing aborts the in-flight operation on its side and Claude Code returns to the prompt without needing to reconnect.
