Clean code and redact secrets before AI sees them — right inside VS Code or Cursor.
For Cursor agents, prefer the MCP server: npx @blanklogic/refinery-mcp (see npm README). This extension is for editor selection cleanup via the CLI.
What's new in 0.2.5
- Coordinated 0.2.5 release — points to MCP as primary agent install path.
- Open VSX and Marketplace VSIX use stable
blanklogic.ioimage URLs.
Saved tokens or caught a secret?
If BlankLogic trimmed noise, redacted secrets, or cut token waste for you, a quick review helps others find it:
- Cursor / Open VSX: Rate BlankLogic Refinery on Open VSX
- VS Code: Leave a review on the Marketplace
- Feedback: blanklogic.io/#support
Install
| Where | Link |
|---|---|
| VS Code Marketplace | Install blanklogic.blanklogic-refinery-vscode |
| Cursor / Open VSX | Install from Open VSX |
| Web app (no install) | blanklogic.io/refinery |
| CLI (terminal) | npx @blanklogic/refinery clean - |
What it does
- Select code in the editor.
- Run BlankLogic: Clean Selection for AI — de-bloats HTML/code/logs and redacts obvious secrets.
- Or run BlankLogic: Scan Secrets — reports secret count and offers to replace the selection.
The extension shells out to @blanklogic/refinery via npx by default. Your files stay on your machine.
Commands
| Command | Action |
|---|---|
BlankLogic: Clean Selection for AI |
Full clean pipeline on the current selection |
BlankLogic: Scan Secrets |
Sanitize-only pass with secret count |
Settings
Default runtime (works out of the box):
{
"blanklogic.cliPath": "npx",
"blanklogic.cliArgs": ["@blanklogic/refinery"]
}
For a pinned global install:
{
"blanklogic.cliPath": "/usr/local/bin/refinery",
"blanklogic.cliArgs": []
}
blanklogic.cloudRefine.enabled stays false by default. Local cleanup is the supported path.
Related BlankLogic tools
| Product | Use when |
|---|---|
| @blanklogic/refinery | Terminal / CI cleanup |
| @blanklogic/refinery-mcp | Cursor / Claude Code MCP agents |
| @blanklogic/proxy | BYOK proxy with proof headers before OpenAI/Anthropic |
| blanklogic.io/refinery | Browser UI and cloud credits |
Cloud credits (optional)
Extension commands run locally. For server-side cleanup (larger payloads, Cloud Refine, or Cloud AI), use the Refinery web app:
blanklogic.io/refinery/#cloud-credits — Beta Token Pack ($5 / 500 runs) or Founder pass ($50).
Privacy
- Runs locally via the Refinery CLI.
- Does not send editor content to BlankLogic servers for local commands.
- Does not require a BlankLogic account for local commands.
- Provider API keys are never handled by this extension.
Support
- Homepage: blanklogic.io
- Web app: blanklogic.io/refinery
- Bug reports: blanklogic.io/#bugs