Working in the panel

The Codity panel is a chat with an agent that works in your workspace folder. This page covers giving it context, choosing how much it may do on its own, reviewing its edits and answering its questions.

Give the agent context

To add Do this
The file you are in and your selection Sent automatically with each message while codity.autoAttachSelection is on (the default).
A specific selection Select code and press Alt+K (Add Selection to Chat), or right-click and choose Explain Selection.
A file or folder Type @ and pick from the suggestions, run Codity: Add File to Chat, or hold Shift and drag files from the Explorer onto the message box.
An image or text file Paste it into the message box, or choose + → Upload from computer.
A resource from an MCP server + → MCP resource. See MCP servers in VS Code.
Web pages + → Browse the web lets the agent read web pages for your messages. A chip in the message box shows it is on; click its × to turn it off.
A problem the editor reports Use the light bulb on the problem and choose Fix with Codity. The agent receives the file, line and message.

Type / for commands, including prompts from your MCP servers. Attached files and selections appear as chips above the message box; remove one before sending if you don't want it.

The agent can also read the editor's problems, your open files and your selection by itself, through a local server only the agent can reach. Turn that off with codity.editorTools.

Modes

The Build · Auto · Plan switch under the message box sets how the agent works:

Mode What the agent does
Build Works on the task and asks before anything your permissions don't already allow.
Auto Works like Build, but approves routine actions itself (reading and editing inside the project, running tests and builds, read-only Git commands) and asks about everything else. See Auto mode for the full list.
Plan Reads and proposes a plan without changing files.

When a plan is ready, the panel shows Build it, which switches to Build and starts on the plan; Open and edit, which opens the plan as a document you can change before building it (then Codity: Build This Plan in the document's title bar); and Refine, which stays in Plan so you can ask for changes. Auto is not offered when your organization or team policy sets auto_approve: false.

Review the agent's edits

With codity.reviewEdits on (the default), each edit the agent wants to make opens as a diff beside your file. Use Accept Change or Reject Change in the diff's title bar, or the same commands from the Command Palette. The agent continues once you decide, and is told when you reject an edit.

Accept edits (next to the mode switch in Build) lets edits through without a diff while commands still ask. Turn it off again whenever you want to review each edit.

After a turn that changed files, a summary shows each file with lines added and removed. Click a file to open its diff, or Review all changes to see them together.

Answer permission requests

When the agent needs something your permissions don't allow, a card appears in the chat:

Choice Effect
Allow once Allows this one action.
Always allow Allows matching actions for the rest of this session. The button's tooltip shows what it would allow.
Deny... Refuses. You can tell the agent what to do instead, and it continues with that.

Actions your organization's or team's policy denies are refused without a card, whatever the mode. When the panel is hidden and the agent is waiting on you, VS Code shows a notification (turn it off with codity.notifications). Decisions you make appear on the run's dashboard page.

If the agent asks you a question, the card offers its suggested answers and a box for your own.

While the agent works

  • The Stop button, or Esc in the message box, ends the current turn. Codity: Stop the Running Turn does the same from the Command Palette.
  • Messages you send while the agent is working are queued and marked as such, then sent in order once it finishes.
  • A to-do list shows the steps of longer tasks as the agent works through them.
  • The bar under the message box shows how much of the model's context the conversation uses and what the session has cost so far. Dashboard opens this run on the Codity dashboard.

Team policy and team memory

If you belong to teams that have an agent policy, the footer shows the policy you are following. Click it, or run Codity: Switch Team Policy, to choose another team or No team. The change applies straight away: the team's permission rules, hooks and MCP rules replace the previous team's. Your organization's policy always applies. The button only appears when at least one of your teams has an agent policy; a team policy saved empty does not count.

When the workspace is a repository connected to Codity, the agent uses your team's memory of it: conventions, known issues and past incidents. See Team memory.

Hooks

Hooks set by your organization, your team and in your own ~/.codity/hooks.json run in the panel exactly as in the terminal. A blocked tool call shows the hook's reason in the tool's result, and a blocked message is not sent. See Hooks.

Multi-root workspaces

The agent works in one folder at a time. In a workspace with several folders it starts in the folder of the file you have open, or the first folder; the footer shows which. Change it with the folder button in the footer or Codity: Choose Workspace Folder, which restarts the agent there. Each folder keeps its own sessions.