RedCell for VS Code
RedCell is the scope-guarded AI pentesting agent. This extension puts the RedCell chat in the VS Code sidebar, next to your code, and lets the RedCell CLI work with your editor when you allow it.
Features
- Chat in the sidebar, powered by the RedCell CLI. Like RedCell Desktop, the extension runs your installed
redcell CLI (redcell app-server) and chats through it. Your login, sessions and config in ~/.redcell are shared with the CLI and the desktop app. Each workspace continues its own conversation.
- The agent works in your workspace, with your approval. RedCell can read the project, run commands and edit files. The folder it works in is shown above the message box (Working in folder); a chat reopened from another project says so. Commands and edits outside its sandbox wait for you to click Allow.
- Tag files and folders with @. Type
@ (or click the @ button) to pick files and folders from the workspace, with fuzzy search as you type (the same search the RedCell CLI uses, so .gitignored files stay out). Tagged paths are highlighted in your message, and RedCell is told exactly which paths the request is about, with their size and line count, so it reads them first. Only the paths are sent; RedCell reads the files itself.
- Pick the model. The model button next to Send lists the RedCell CLI's models and their effort levels, as in RedCell Desktop. Your pick is remembered and used for every message.
- Images. Attach screenshots or other images with the + button, by pasting, or by dragging them in (hold Shift while dropping, as VS Code requires for webviews). PNG, JPG, WebP and GIF, up to 10 per message, 20 MB each. The + button turns off when the CLI's model doesn't take images.
- Changed files, under your control. Files RedCell edits wait in a box above the message box: click one to see the diff, then Accept or Discard it, or all of them at once. Once you accept a file, it is listed under the reply that changed it (Changed N files, kept with the chat); clicking it there shows exactly what that reply changed. Discarded files are not listed.
- Secrets stay out. Before anything is sent, keys, tokens and passwords are replaced with
[REDACTED], and .env, key and credential files are never sent. Attached content is capped at 500 KB (configurable).
- CLI control, with your approval. Run
redcell in a terminal and it can connect to VS Code. Reading files, open tabs and problems happens directly. Opening files, editing, creating files and running terminal commands each wait for you to click Allow.
Getting started
- Install the RedCell CLI. If it is missing, the RedCell panel offers to install it, or to point at an existing
redcell executable.
- Click the RedCell icon in the Activity Bar. If you already ran
redcell login, you are signed in. Otherwise click Sign in, which runs redcell login and finishes in the browser.
- Open a file and ask a question.
The extension looks for redcell in this order: the redcell.cliPath setting, REDCELL_BIN, PATH, the folder the redcell.sh installer uses (~/.local/bin, or %LOCALAPPDATA%\Programs\Redcell\bin on Windows), then the newest release under ~/.redcell/packages/standalone/releases.
To let a redcell you run in a terminal use VS Code, run it in a folder that is open in VS Code. The status bar shows RedCell · CLI connected when it is linked.
Connecting the RedCell CLI (MCP)
The extension ships a small MCP server, dist/vscode-mcp.js, that gives the CLI vscode_* tools (read file, diagnostics, find files, open file, apply edit, run in terminal). Register it once:
redcell mcp add vscode -- node "<extension folder>/dist/vscode-mcp.js"
Then run redcell inside a folder that is open in VS Code. Every change still waits for Allow in VS Code.
Settings
| Setting |
Default |
What it does |
redcell.cliPath |
empty |
Path to the redcell executable; empty finds it automatically |
redcell.cliControl.enabled |
true |
Allow the RedCell CLI to connect to this editor |
redcell.cliControl.port |
17374 |
First local port the CLI bridge tries |
redcell.context.maxKB |
500 |
Maximum size of an attached file or selection |
Privacy and security
- No analytics or tracking.
- Sign-in and sign-out run
redcell login and redcell logout. The extension never reads or stores your token; the CLI keeps it.
- The attached file is sent with your message only when the chip is attached, after secret redaction. The agent itself works in the workspace like the CLI does, under the CLI's sandbox, and asks before commands and edits that need approval.
- RedCell stays off in untrusted workspaces.
- Files the RedCell CLI reads through the bridge get the same treatment: secrets redacted,
.env, key and credential files refused, size capped, and only files inside the open workspace.
- The CLI bridge listens on
127.0.0.1 only, uses a new random token each time VS Code starts, refuses connections from web pages, and is off in untrusted workspaces.
- See redcell.sh/privacy and redcell.sh/security.
Use RedCell only on systems you are authorized to test.
Requirements
VS Code 1.90 or later, the RedCell CLI, and a redcell.sh account; chat uses your plan's usage budget.
Support
Questions or problems? Email contact@redcell.sh. Report security issues to security@redcell.sh.
| |