Skip to Content
coaadedocs

VS Code extension

The Coaade Editor Context extension shares your active file, selection, unsaved edits and code intelligence with the CLI.

Coaade Editor Context connects VS Code to the Coaade CLI. With it, the CLI knows which file you're looking at and what you've selected, so requests like "fix this function" work without naming the file.

The extension has no model, credentials or account of its own. It only serves your editor state to the CLI on your machine.

Install

The extension is bundled with the CLI. Install the .vsix you were given:

code --install-extension coaade-context-0.1.0.vsix --force

If an open VS Code window doesn't pick it up, run Developer: Reload Window. Restart the CLI after updating the extension.

Use it

  1. Open your project in VS Code, in a trusted workspace.
  2. Start coaade in VS Code's integrated terminal.
  3. Work as usual. Your active file and selection are attached to each prompt automatically.

Check the connection from either side:

  • In VS Code, run Coaade: Show Editor Context from the command palette.
  • In the CLI, run /context.

Without a connected editor, an ambiguous request such as "this file" makes the CLI ask which file you mean, rather than guessing.

What's shared

  • The active file, including unsaved changes. Unsaved files are marked, so the agent avoids overwriting them with disk edits.
  • Your selection, which takes priority over the surrounding code.
  • Up to 24 KB of context per prompt.

Files outside the CLI's --dir folder, credential paths, symlinks and hard links are never shared.

Code intelligence

The CLI's code_intelligence tool asks VS Code's language services for definitions, references and diagnostics at a position. It uses the language extensions you already have installed, and only reads trusted workspace files. No commands are run.

Privacy

  • The extension keeps code in memory and serves it only over an authenticated loopback connection.
  • Its discovery files in ~/.cache/coaade/ide hold just a temporary port and token.
  • With the bedrock provider, attached editor text is sent to AWS Bedrock with your prompt and saved in the CLI's local conversation history.

Turn it off

  • In VS Code, set coaade.shareEditorContext to false.
  • In the CLI, pass --no-context.

Remote and multiple windows

  • For remote workspaces, install the extension on the same host as the CLI.
  • New terminals get a window-specific session ID. If several windows are ambiguous, open a new terminal.
  • Other editors with compatible extension APIs aren't verified yet.

On this page