Configuration
Pro Only
Wing provides two places to configure AI agent behavior: the AI page in Preferences for settings that apply across all projects, and the AI Agent tab in Project Properties for per-project settings. This section describes both.
Preferences
The AI page under Projects in the Preferences dialog contains the following settings:
Fix Completion Action
Controls what the agent does after completing a fix request (Fix Test, Fix Bug, Fix Warning, or a fix-type Code Action):
- None -- The agent reports that the fix is complete and takes no further action. This is the default.
- Auto-Start Review -- The agent automatically starts a review using Wing's review MCP after completing the fix, so you can review the changes in Wing's diff viewer before they are committed. If the review is approved, the agent commits the changes. If you request more work, the agent addresses the feedback and starts a new review.
- Auto-Commit -- The agent commits the fix directly without review. Use this only if you are comfortable with the agent committing changes without manual review.
Warn on Concurrent Task Execution
When enabled (the default), Wing warns before sending a task while another is already running, since concurrently running agent sessions working on the same code may overwrite each other's changes. The warning dialog offers the choice to cancel, wait for the running task to finish, or continue anyway.
Some other AI settings are remembered as preferences, but they are set from the Tasks tool's Options menu (the ⋯ button) rather than the Preferences dialog: Show Task Session on Execute, Keep Current Queue and Session in Sync, Alert Me When Questions Arrive, Show History in Reverse Order, and Show Task IDs As. Record History is in the History Settings dialog from the same menu. See The Tasks Tool for details.
Project Properties
The AI Agent tab in Project Properties holds the per-project settings for AI agents, including what they are pre-approved to do without prompting for confirmation and how their work is committed. Wing answers the agent's permission requests from the pre-approval settings in force when a session runs in Ask For Approval mode, and gives them to agents that accept a list of allowed tools at launch. In Auto-Approve mode, the agent mostly decides for itself.
Task Scheduling
Chooses how tasks are scheduled in this project, and which of the project's two sets of permission and commit settings is in force. The set in force applies to the Fix features, every agent session and task started from Wing, the Tasks Manager's workers, and every commit:
- Manual Queueing -- No Tasks Manager. You queue tasks yourself from their Q buttons, and they run interactively. The Preapprove settings, Commit Mode, and Show Summaries on this tab are in force.
- Tasks Manager Agent -- The Tasks Manager schedules Ready tasks across queues, and tasks run autonomously, with their questions on the Questions tab. You can still put a task in one of your own queues from its right-click menu; see Running Tasks Without the Manager. The Permissions and Commits settings in the Manager's settings dialog are in force, so the tab hides its own Preapprove settings, Commit Mode, and Show Summaries and shows a one-line summary of the Manager's settings instead. The Settings... button opens the Manager's settings, which can be prepared there before the Manager is turned on. See Tasks Manager Settings for details.
The other settings on the tab apply with either choice. A permission request's Always Allow answer is recorded in the set in force.
This is the same switch as Use Tasks Manager Agent in the Tasks tool's Options menu; see Turning On the Manager in The Tasks Manager Agent.
Preapprove Edits For
This controls which directories the agent may edit files in without asking for permission each time:
- All Project Directories -- the agent may edit any file in the project's source directories, as long as those directories are under version control. This is the default.
- Only These Directories -- the agent may only edit files in the specified list of directories, as long as those directories are under version control. When this option is selected, the Approved Directories field below becomes available for specifying the list.
- Nothing (Prompt Each Time) -- the agent must ask for permission before every file edit.
Only directories under version control are pre-approved, regardless of which option is selected. This ensures that all changes made by the agent can be reviewed and reverted using your version control system.
Approved Directories
This field is shown when Preapprove Edits For is set to Only These Directories. Enter the directories that the agent may edit files in. Only directories that are under version control will actually be pre-approved.
Preapprove Running Commands
When this is enabled, the agent may run shell commands without asking for permission. When disabled (the default), the agent must ask before running each shell command.
Preapprove Revision Control Commands
When this is enabled, the agent may run revision control commands (such as hg or git) without asking for permission. The VCS type is auto-detected from the project's source directories. When disabled (the default), the agent must ask before running each VCS command.
Testing Regimen
This controls how aggressively the agent writes and runs unit tests during your workflow. See Testing Regimen for the regimens and their settings.
Commit Mode
Controls who performs commits, and whether the agent commits on its own as it works. This is used with Manual Queueing. With Tasks Manager Agent, the Manager's Commits in sessions you start setting, which has the same choices, is used instead.
The three The agent commits ... values are agent-driven: the agent calls vcs_commit using the queue's scoped file list and a commit message it composes itself from the work it just did. They differ only in when the agent may start a commit without being asked:
- The agent commits only when asked -- It never commits on its own, only when you start a review and approve it, or use the Commit link. This is the default.
- The agent commits after each task -- It commits autonomously at the end of each completed task whose tests pass, scoped to the files that task changed, without waiting for you to ask.
- The agent commits at its discretion -- It commits autonomously at the logical stopping points it chooses, deferring when work is incomplete, tests fail, or problems are unresolved.
In the other two modes Wing performs the commit, and only when you start it. The agent never commits on its own in these modes:
- Wing commits with generated message -- Wing commits using the assembled summaries verbatim, and tells the agent the commit is already done. This saves the agent a turn, but the agent does not refine the message.
- Wing presents commit message for review -- Wing opens its standard VCS commit dialog scoped to the queue's files, with the assembled summaries pre-filled in the message editor. You review and edit the message, then click Commit. The agent acknowledges and stops without performing the commit. Use this mode if you prefer to write your own commit messages or want to review the change set in Wing's commit UI before each commit.
In the two Wing-driven modes the commit message is assembled from a short summary line the agent prints at the end of each task. In the agent-driven modes, when summaries are collected, Wing gives the assembled draft to the agent after an approved review, so a commit made from a new or resumed session has something to work from. Show Summaries below controls whether summaries are collected.
The Commit link in the Tasks tool follows the same setting: in the Wing presents commit message for review mode it opens the VCS commit dialog with the assembled summaries pre-filled; in every other mode it commits with no dialog (the agent performs the commit in the agent-managed modes, Wing in the Wing commits with generated message mode). In all cases the link is scoped to the queue's files and bypasses the review step.
Show Summaries
Controls whether the agent is asked to end each task with a one-line Summary: of what changed. Wing parses those lines and assembles them into the queue's commit message.
- Only if Needed by Commit Mode -- The agent is asked for a summary only in the two Commit Modes where Wing builds the commit message. In the three agent-driven modes the agent writes its own commit message, so a summary would only spend tokens on every task. This is the default.
- Always -- The agent is asked for a summary on every task, whatever the Commit Mode. Use this to see the summaries, which are recorded with the task and shown in the Tasks tool, or to have an assembled draft handed to the agent after an approved review.
This setting is used with Manual Queueing. With Tasks Manager Agent, summaries are asked for only in the two Wing-driven modes of the Manager's Commits in sessions you start setting.
When a summary is asked for and the agent ends a task without one, Wing asks again. Claude Code adds it before finishing the task. Other agents are asked in a follow-up prompt, which costs a turn, and if the agent has already been given its next task the summary is left out of the draft.
Commit Language
Sets the language agents write commit messages in, along with the task summaries that Wing builds commit messages from. Agents write their other replies, notes and questions to you in the language set by the User Interface > Display Language preference, whatever this setting is.
- Use Display Language -- Commit messages are in the display language. The button to the right of the popup opens that preference. This is the default.
- English, Deutsch (German), and the other languages listed -- Commit messages are in that language.
- Other -- Commit messages are in the language whose name you type into the field shown below the popup.
The Summary: keyword, code, and code comments stay in English in every case.
Sessions and Policy Changes
The Testing Regimen, Commit Mode, Show Summaries, and Commit Language settings are written into the guides in the .wing directory when they are changed, when the Tasks Manager is turned on or off, and when its settings are saved. An agent reads those guides when its session starts, so changes apply to new sessions only. To have a running session pick up a change, end it and start a new one.
How Pre-Approval Works
The pre-approval settings in force, from this tab or the Tasks Manager's Permissions, reach the agent in a way that depends on the agent, and the AI Agent tab says which case applies to the one your project uses:
- Claude Code -- they are written to .claude/settings.local.json as permissions.allow entries when it starts, so changes take effect only when it is restarted.
- OpenCode -- it configures its permissions rather than asking, so Wing passes these settings to it in the environment when a session starts. Nothing is written to your project. If your own OpenCode configuration sets permissions, that wins and these settings do not govern that project.
- Codex -- it treats the project directory as trusted and does not ask before editing files in it or running commands, so these settings do not apply to it. They still apply to any other agent you run in the same project. Codex does still ask about files outside the project and about network access, on its own terms.
- Cursor -- it asks in its own interface, where you answer it. Its ACP version, Cursor ACP, asks Wing, which answers from these settings, except about changing files: it does not ask before an edit, including outside the project, so the edit pre-approvals do not reach it and Wing warns about that before an Ask For Approval task starts. Use Plan to have it look at code without changing anything.
- goose and other ACP agents -- agents run over the Agent Client Protocol (ACP) ask Wing each time they want to do something. Wing answers from these settings as they stand, so a change applies to sessions already running. See Setting Up an AI Agent for the ACP versions of agents.
The pre-approval settings only control whether agents can edit files and run shell commands without prompting. Regardless of these settings, Wing always tries to pre-approve reading project files and using Wing's MCP tools for testing, debugging, and VCS. However, some agents may ignore these instructions and still prompt to read project files or use Wing's MCPs.
The exceptions are Wing's MCP tools that write files, create_tracked_file and edit_scope, which follow the file-edit pre-approval instead. When it is Nothing (Prompt Each Time) the agent asks before using them. Otherwise, agents that ask Wing (over ACP) are pre-approved only for files in the pre-approved directories, while agents run in a terminal are pre-approved for these tools wherever the file is.
Interaction with the Run Mode
The per-task run mode (see Run Modes) picks how much the agent may do without asking on each new session. The project-level pre-approvals above are layered on top of whichever mode is chosen:
- In Plan, the agent cannot modify files regardless of what is pre-approved. The pre-approvals are effectively inert for that run.
- In Ask For Approval, the pre-approvals are the whole of what does not prompt. This is where they matter most.
- In Auto-Approve, the agent decides for itself, so the pre-approvals mostly do not come into it. On Claude Code its safety classifier still respects narrow allow-list entries (specific directories, or Bash(hg *) style command patterns) but drops blanket Bash approvals in favour of its own judgement.
Project Settings Changed by Agents
Agents can read and change some of the project's settings with the project_get and project_set tools on Wing's wing-review MCP server. An agent changes a setting when you ask it to or its task needs it, for example to add a new package's directory to the project. Wing makes the change as if you had made it in Project Properties.
An agent can change these settings:
- main_entry_point -- The Main Entry Point property: a Python file in the project, one of its named entry points, or none.
- named_entry_points -- Adds a named entry point for a Python file in the project, changes its file, run arguments, or launch configuration, or removes it. A named entry point added by an agent uses the project's environment unless the agent gives it a launch configuration.
- file_launch -- The run arguments and launch configuration a file uses when it is debugged or executed, as set under the Debug/Execute tab in File Properties. This includes the main entry point's file.
- launch_configurations -- Adds a launch configuration, changes its run arguments, Initial Directory, Environment, Python Executable, Python Path, or Python Options, or removes it once no file or named entry point uses it.
- project_environment -- The Python Executable, Python Path, Python Options, Environment, and Initial Directory properties in Project Properties. Environment values set by an agent are added to the environment Wing inherited at startup.
- project_directories -- Adds a directory under the project's home directory to the project, removes one, or excludes a file or directory within one.
- test_file_patterns -- Adds or removes one of the Test File Patterns under the Testing tab in Project Properties. See Project Test Files for details.
- test_framework -- The Default Test Framework property under the Testing tab in Project Properties: pytest, unittest, doctest, djangotest, or nose.
Agents may set up and fix the environment your code runs in, for example when new work needs another package on the Python Path. Some settings remain yours to change:
- The Build Command property and a launch configuration's build command.
- Shared launch configurations, which agents can read but not change.
- A Python Executable that runs on a remote host, in a container, or in a cluster. On a remote project, agents also cannot set a launch configuration's Python Executable.
Run arguments apply only to a file or named entry point that uses the project's environment. When one uses a launch configuration, the agent changes the arguments in that launch configuration instead.
project_set follows the Preapprove Edits For setting described above. When it is Nothing (Prompt Each Time) the agent asks before each change. Otherwise changes are pre-approved.
When an agent changes a setting while working on a task, the task's report on the Review tab lists the change under Decisions, with the setting's old and new values. Its Revert link puts back what that change altered and nothing else, and the Decision is then marked as reverted. Revert is offered only until the project is closed or Wing is restarted. After that, use Revise... to ask the agent to change the setting back. See Reviewing Tasks for details.
Section Contents