API budget spent? Keep coding with an eligible browser-backed AI subscription. See how it works

Documentation

How to use wcagent

Install the VS Code extension, connect your wcagent account and model provider, then describe a coding outcome. wcagent gathers relevant repository context, runs approved tools locally, and gives you a diff and validation evidence to review.

The short version
  1. Install wcagent from the Visual Studio Marketplace and open a repository in desktop VS Code.
  2. Open wcagent and sign in.
  3. Pair the bundled browser connector if your model uses a browser account.
  4. Choose a model, reasoning effort, and access mode.
  5. Describe the result you want, send the task, then review and apply the changes.

Before you start

  • Desktop VS Code 1.109 or newer. Browser-only vscode.dev and virtual workspaces are not supported.
  • A wcagent account. You need an active trial or paid plan and an internet connection.
  • Access to a supported model provider. Model access is separate from wcagent and remains subject to the provider’s limits and terms.
  • A Chromium browser for browser models. Use Chrome, Brave, or Edge with the provider account signed in.

You can inspect an untrusted workspace, but edits and commands require you to trust the workspace or choose an access mode that permits them.

1. Install the extension

  1. Open wcagent on the Visual Studio Marketplace and select Install. Allow your browser to open VS Code when prompted.
  2. Alternatively, open Extensions in VS Code, search for wcagent, confirm the publisher is wcagent, and select Install.
  3. Open a local Git repository, then select the wcagent icon in the Activity Bar. You can also open the Command Palette and run wcagent: Open wcagent.

You can also install the Marketplace extension from a terminal:

code --install-extension wcagent.wcagent-agent

2. Sign in to wcagent

  1. Select Sign in in the wcagent view, or run wcagent: Connect Account.
  2. Your browser opens app.wcagent.ai. Sign in with email and password or Google, then approve the device connection.
  3. Return to VS Code. Your account and available models appear in the composer.

The extension stores its device tokens in VS Code Secret Storage, which uses your operating system’s secure credential store.

3. Connect a browser model

Skip this section for a server-backed model. Browser-backed models use a connector that is already bundled with the wcagent extension. There is no separate connector download.

  1. In VS Code, run wcagent: Open Browser Connector Folder. Leave this managed folder where wcagent created it; do not copy, move, or rename it.
  2. In the browser profile where you are signed in to the model provider, open chrome://extensions, brave://extensions, or edge://extensions.
  3. Turn on Developer mode, choose Load unpacked, and select the exact folder opened by wcagent. Keep Developer mode enabled.
  4. Run wcagent: Pair Browser Model Connector. wcagent copies a one-time pairing value.
  5. Open the connector from the browser toolbar, paste the pairing value, and finish pairing. The model selector in VS Code will show the connection when it is ready.
One connector per provider

Pair each browser provider you want to use. The connector works inside the provider’s signed-in browser profile and has no access to your repository. Provider cookies, passwords, and authentication headers stay in that browser profile.

When wcagent updates, it replaces the managed connector files. A loaded connector normally detects the update and reloads within about a minute. If it does not, select Reload for the connector on the browser extensions page.

4. Run your first task

  1. Open the repository you want wcagent to work on.
  2. In the composer, select the model, reasoning effort, and access mode you want.
  3. Describe the outcome, important constraints, and how the result should be validated.
  4. Add any specific files, folders, editor selection, or images with the + menu, then send the task.

A useful request is specific about the finished behavior without prescribing every implementation step:

Make the checkout handler idempotent.
Keep the existing public API unchanged, add regression tests,
and run the smallest relevant validation suite.

For a focused operation, use the Command Palette actions such as wcagent: Explain Selection or File, wcagent: Review File, or wcagent: Generate Tests.

Understand the composer

Model
Choose an available server-backed or paired browser model. If a browser model is offline, check its connector before sending.
Reasoning effort
Choose how much reasoning the selected model should use. Higher effort can help with difficult repository work but may take longer and use more of the provider’s allowance.
Access
Controls when wcagent must ask before it edits files, runs commands, or crosses another guarded boundary.
IDE context
A removable context tag adds bounded information from the active file, selection, open files, diagnostics, repository instructions, and ranked workspace metadata. Remove it when you want an explicit-files-only request.
Attachments
Use + to add a file, folder, current selection, or image. Large pasted text is sent as an attachment automatically.

Enable Review context before sending in settings if you want to inspect the context bundle for every task.

Choose access and isolation

Access modeWhat happensUse it when
Ask for approvalEdits, commands, internet access, and other guarded actions wait for your approval.You want to review each local boundary.
Approve for meOrdinary workspace edits and recognized validation commands proceed automatically; unsafe or unusual boundaries can still prompt.You trust the task but want safety checks retained.
Full accessAfter confirmation, wcagent can use the filesystem, terminal, internet, and local browser for the current task and workspace root. OS controls and core safety checks still apply.You understand the request and want minimal interruption.

Worktree isolation

The default isolation mode is Worktree. wcagent performs the task in a separate Git worktree, so your open repository is unchanged until you review the result and select Apply changes.

For a non-Git folder, or if you deliberately select Direct isolation, edits affect the open workspace as the task runs. wcagent warns you before starting in direct mode.

Workspace trust still applies

In an untrusted VS Code workspace, wcagent remains read-only unless you trust the workspace or explicitly confirm Full access for the task. Trust or elevate a workspace only when you know and accept the code it contains.

While wcagent works

The conversation shows progress updates and collapsible activity for reads, edits, commands, browser checks, approvals, and delegated work. An elapsed-time indicator continues while the task is active.

  • Approve or reject a requested action from its approval card.
  • Send a follow-up to queue another instruction, or steer the active task when the new direction should affect the current work.
  • Stop the task when you do not want it to continue. Completed local actions are not silently reversed.
  • Close or reload VS Code if necessary. wcagent restores the active task from its retained event history when you return.

Review and apply the result

  1. Read the final summary and the validation results. A failed or skipped check should be treated as unresolved until you inspect it.
  2. Open the edited-files card to see additions and deletions, then preview each changed file. You can also run wcagent: Review wcagent Changes.
  3. In Worktree mode, select Apply changes only after you accept the diff. wcagent stops if the same lines changed in your open repository and cannot be applied safely.
  4. If needed, use Undo applied changes. Undo also checks for later overlapping changes instead of overwriting them.

In Direct mode, the files are already changed in your open workspace; use your normal Git workflow to review, keep, or revert them.

Manage conversations

Open the wcagent home view to return to an existing conversation with its context, or choose New Chat for a clean thread. Starting a new chat does not cancel a task that is already running.

You can delete completed, failed, or cancelled conversations. Deleting a conversation removes its retained history; it does not delete workspace files, undo applied changes, or remove generated images. Images created by a task are saved under wcagent-generated-images/<turn-id>/.

Use wcagent in VS Code Chat

In the native VS Code Chat view, mention @wcagent and use /fix, /explain, /review, or /tests.

Command Palette reference

Open the Command Palette with Ctrl + Shift + P on Windows/Linux or ⇧⌘P on macOS, then search for wcagent.

CommandPurpose
wcagent: Open wcagentOpen the main wcagent view.
wcagent: New wcagent ChatStart a new conversation.
wcagent: Add Selection to wcagent ChatAdd the active editor selection to the composer.
wcagent: Add File to wcagent ChatAdd the active file to the composer.
wcagent: Ask wcagentOpen wcagent with the current editor context.
wcagent: Explain Selection or FileAsk for an explanation of the current selection or file.
wcagent: Review FileRequest a focused code review.
wcagent: Generate TestsRequest tests for the current code.
wcagent: Review wcagent ChangesOpen the current task diff.
wcagent: Connect AccountStart the wcagent device sign-in flow.
wcagent: Open Browser Connector FolderReveal the managed connector folder to load in Chromium.
wcagent: Pair Browser Model ConnectorCreate and copy a one-time browser pairing value.
wcagent: Unpair Browser Model ConnectorDisconnect a paired browser connector.
wcagent: Manage PluginsInstall, update, enable, disable, or remove wcagent plugins.
wcagent: Install Plugin from Git RepositoryInstall a plugin from a GitHub or GitLab repository.
wcagent: Browse Signed Plugin RegistriesBrowse plugins from configured verified catalogs.
wcagent: Manage MCP ServersOpen the MCP server settings.
wcagent: Sign OutRemove this device’s wcagent session.

Settings

Open the wcagent account menu and choose wcagent settings. The settings view contains General, Configuration, Personalization, Usage & billing, Browser connectors, Privacy, and Account sections.

VS Code settingWhat it controls
webcodestudio.tasks.isolationUses a separate Git worktree by default, or direct edits when configured.
webcodestudio.context.maxFilesMaximum number of ranked files considered for automatic context. Default: 80.
webcodestudio.context.confirmBeforeSendShows the context review step before each task. Default: off.
webcodestudio.browser.executablePathOverrides the Chromium executable used for local browser validation. Default: automatic detection.

Troubleshooting

The Send button is unavailable

Confirm that you are signed in, your trial or plan is active, a model is selected, and its connector shows as connected when using a browser model.

The browser model is offline

Open wcagent settings → Browser connectors. Confirm the provider is signed in within the same browser profile, Developer mode is still enabled, and the connector is enabled. After an update, wait about a minute or reload the connector from the browser extensions page. Only use repair or re-pair when wcagent asks for it or the connection remains unavailable.

Edits or commands are blocked

Check VS Code Workspace Trust and the task’s access mode. In an untrusted workspace, mutations and commands require workspace trust or an explicitly confirmed Full access grant.

Browser validation cannot start

Install Chrome, Brave, or Edge, or set webcodestudio.browser.executablePath to a compatible executable.

The extension looks out of date after installing

Open Extensions, select wcagent, and check for an update. Then run Developer: Reload Window. If the problem remains, uninstall and reinstall wcagent from the Marketplace.

You need diagnostic details

Open View → Output and select wcagent. Review the logs before sharing them, especially if your task handled private repository data.

Privacy and provider limits

wcagent sends the service and your selected model only the context needed for the task, such as ranked path metadata, selected editor text, requested file contents, diagnostics, diffs, command output, approvals, and completion evidence. Absolute workspace paths are excluded.

For browser models, the connector returns model text and bounded runtime metadata. It does not send provider cookies, passwords, or authentication headers to wcagent. Conversations may remain in the selected provider’s history.

wcagent does not increase or bypass provider usage limits, authentication, CAPTCHAs, safety systems, or geographic restrictions. Use only connection methods permitted for your account. Read the complete Privacy Policy, Terms of Use, and security overview.