The official VS Code extension for Patchloom. Set up your workspace for AI agent workflows in seconds: detect the CLI, generate agent rules, configure MCP servers, and run structured file operations from the command palette.
Install from the VS Code Marketplace or the Open VSX Registry.
Or search for Patchloom in the Extensions view (Ctrl+Shift+X / Cmd+Shift+X).
- Install the Patchloom CLI (or run Patchloom: Install Patchloom from the command palette)
- Open a project and run Patchloom: Setup Workspace
The extension finds the CLI automatically. If it's not on PATH, point patchloom.path to it in settings.
Run Patchloom: Setup Workspace to walk through everything your project needs: binary detection, AGENTS.md generation, and MCP server configuration.
Patchloom: Initialize Project generates an AGENTS.md file from patchloom agent-rules. If one already exists, the extension opens a diff so you can merge updates manually.
Patchloom: Configure MCP injects the Patchloom MCP server into your editor's config. Supports:
- VS Code (
.vscode/mcp.json) - Cursor (
.cursor/mcp.json) - Windsurf (
~/.codeium/windsurf/mcp_config.json)
The status bar shows binary readiness and CLI version at a glance. Click it to see full diagnostics.
Patchloom: Quick Action opens an interactive picker with six operations:
| Action | What it does |
|---|---|
| Replace text | Literal text replacement with diff preview before applying |
| Tidy file | Whitespace and newline cleanup with diff preview |
| Set structured value | Update a JSON, YAML, or TOML key with diff preview |
| Search text | Find pattern matches across workspace files (results in output channel) |
| Create file | Scaffold a new file and open it in the editor |
| Read structured value | Read a JSON/YAML/TOML key and copy to clipboard |
Patchloom: Batch Apply opens a JSON plan template where you can compose multiple operations (replace, tidy, doc set). The extension pipes the plan to patchloom batch --apply so all changes land atomically.
All CLI invocations, arguments, and output are logged to the Patchloom output channel. Run Patchloom: Show Output to open it. Useful for debugging and copying full error messages for bug reports.
The extension detects outdated CLI builds and warns with upgrade guidance. It requires Patchloom 0.1.0 or newer.
| Command | Description |
|---|---|
Patchloom: Setup Workspace |
Guided walkthrough for binary, AGENTS.md, and MCP readiness |
Patchloom: Initialize Project |
Generate or diff AGENTS.md from patchloom agent-rules |
Patchloom: Configure MCP |
Inject Patchloom MCP server config into editor config files |
Patchloom: Quick Action |
Build a Patchloom CLI command from an interactive picker |
Patchloom: Batch Apply |
Open a JSON batch plan and execute all operations atomically |
Patchloom: Show Output |
Open the Patchloom output channel for CLI logs and diagnostics |
Patchloom: Show Status |
Display binary readiness, version, compatibility, and workspace state |
Patchloom: Install Patchloom |
Download and install the Patchloom CLI with checksum verification |
Patchloom: Update Patchloom |
Update a managed Patchloom install to the latest release |
Patchloom: Reinstall Patchloom |
Re-download and reinstall the managed Patchloom binary |
Patchloom: Open Settings |
Jump to Patchloom extension settings |
Patchloom: Open Releases |
Open the Patchloom releases page in a browser |
| Setting | Default | Description |
|---|---|---|
patchloom.path |
"" |
Absolute path to the Patchloom binary. When empty, the extension searches PATH and then the managed install location. |
patchloom.showStatusBar |
true |
Show a status bar item reporting whether Patchloom is available. |
- In multi-root workspaces, commands target the active editor's workspace folder. If no editor is active, you pick the folder.
- Remote sessions (WSL, SSH, dev containers, Codespaces) stay focused on workspace-scoped flows. User-scoped MCP config targets are hidden in remote environments.
- Unknown remote environments are surfaced as unverified so failures are explicit.
Patchloom not found
Set patchloom.path in settings, or add the CLI to your PATH.
CLI compatibility warning
Run Patchloom: Open Releases to download 0.1.0 or newer.
MCP config not injected
Run Patchloom: Configure MCP and select the target editor config.
Managed install failure persists after restart
Run Patchloom: Show Status to see persisted diagnostic details.
Debugging CLI errors
Run Patchloom: Show Output to see full CLI invocations, arguments, stdout, and stderr in the output channel.
The managed installer work is intentionally conservative:
- Downloads must come from
https://github.com/patchloom/patchloom/releases/download/... - Each archive must match a published SHA-256 checksum before the extension trusts it
- Checksum failures stop the install before any managed binary is used
- A failed install never replaces an already working binary
- Binary promotion creates a backup before swapping; failures restore the backup
- Failure records persist across extension reloads for diagnostics
File bugs and feature requests at patchloom/patchloom-vscode/issues. Include the output of Patchloom: Show Status and your VS Code version.
- VS Code 1.90 or newer (or compatible editors: Cursor, Windsurf, VSCodium)
- Patchloom CLI 0.1.0 or newer
See CONTRIBUTING.md for the full guide. Quick start:
npm install
npm run check # full gate: compile + test + packageOpen the repo in VS Code and press F5 to launch the Extension Development Host.
