CraftLens — AI Code Quality Linter & Continuous Release AssuranceA second pair of eyes for modern software. What CraftLens Is & Why It ExistsAI coding assistants write code faster than ever, but speed often comes at the cost of craft. AI-generated and rapidly assembled code frequently introduces subtle yet serious flaws:
CraftLens operates as an automated senior staff engineer, security auditor, and product designer inside Visual Studio Code. It provides continuous static analysis, AST-based rule execution, unified issue management, safe atomic code changes, living repository ledgers, and full pre-release assurance. What CraftLens Is NOT
Core Capabilities1. Continuous Auto-Audit & In-Editor Intelligence
2. QA, Code Review & Release Assurance Engine (
|
| Category | Supported Languages / Formats |
|---|---|
| Scripts & Logic | TypeScript (.ts), TSX (.tsx), JavaScript (.js), JSX (.jsx) |
| Stylesheets | CSS (.css), SCSS (.scss), LESS (.less) |
| Component Templates | HTML (.html), Vue (.vue), Svelte (.svelte) |
| Data & Configuration | JSON (.json), JSONC (.jsonc), YAML (.yaml, .yml), Markdown (.md) |
Quick Start & Usage Workflow
- Install the Extension: Install CraftLens from the VS Code Marketplace or from the packaged
.vsixfile. - Open Your Project: CraftLens automatically initializes workspace inspection on startup.
- Open the Sidebar: Click the CraftLens icon in the VS Code Activity Bar to open the interactive panel.
- Run an Audit:
- Press
Cmd+Shift+P(macOS) orCtrl+Shift+P(Windows/Linux) and select CraftLens: Run Audit. - Choose your review domain:
UI / UX,Frontend Security,Backend Security,Practical Security,Code Quality, orFull Audit.
- Press
- Inspect & Fix Issues:
- Click any finding in the Sidebar or Problems panel to jump to the code location.
- Click Review Proposed Changes or Apply Fix to review the exact side-by-side diff.
- Accept the change: CraftLens validates syntax and regression safety before permanently saving.
- Track Progress: Open
.craftlens/checklist.mdto see requirements turn into[x] PASSEDin real time. - Verify Release Readiness: Run CraftLens: Run QA or CraftLens: Verify Release prior to publishing or merging pull requests.
Commands
All commands are accessible via the VS Code Command Palette (Cmd+Shift+P / Ctrl+Shift+P):
| Command ID | Title | Description |
|---|---|---|
craftlens.openProjectOverview |
CraftLens: Open Project Overview | Opens the rich interactive Bento dashboard and QA tab |
craftlens.runAudit |
CraftLens: Run Audit | Launches an interactive audit with domain and severity selector |
craftlens.runQA |
CraftLens: Run QA | Runs the QA, Code Review & Release Assurance engine (Full, Quick, Change, Security, Release, Deep, Self) |
craftlens.runSelfQA |
CraftLens: Run Self QA | Executes deep dogfooding QA against CraftLens itself |
craftlens.verifyRelease |
CraftLens: Verify Release | Evaluates release readiness and Release Gate criteria |
craftlens.scanWorkspace |
CraftLens: Scan Workspace | Performs a full scan across all workspace files |
craftlens.scanCurrentFile |
CraftLens: Scan Current File | Runs an immediate on-demand analysis on the active editor file |
craftlens.openMasterChecklist |
CraftLens: Open Master Audit Checklist | Opens .craftlens/checklist.md in an editor split |
craftlens.openIssuesFile |
CraftLens: Open Issues Document | Opens the authoritative .craftlens/issues.md ledger |
craftlens.openSuggestionsFile |
CraftLens: Open Suggestions Document | Opens .craftlens/suggestions.md |
craftlens.openChangesFile |
CraftLens: Open User Changes Document | Opens the change tracking log .craftlens/changes.md |
craftlens.fixAllSafe |
CraftLens: Fix All Safe Issues | Atomically applies all high-confidence deterministic fixes |
craftlens.reviewChangePlan |
CraftLens: Review Proposed Changes | Opens the diff inspection and approval panel |
craftlens.explainFinding |
CraftLens: Explain Finding | Displays detailed engineering rationale for the current diagnostic |
craftlens.suggestBetterDesign |
CraftLens: Suggest Better Design | Explores targeted UI/UX alternatives matching design patterns |
craftlens.createCustomRule |
CraftLens: Create Custom Rule | Guided wizard for project-specific custom quality rules |
craftlens.resetSuppressions |
CraftLens: Reset Suppressions | Clears all active workspace suppressions |
Configuration Settings
Customize CraftLens in your VS Code settings (settings.json):
{
// Enable or disable CraftLens analysis globally
"craftlens.enabled": true,
// Minimum severity threshold: "blocker" | "error" | "warning" | "suggestion" | "info"
"craftlens.severity": "warning",
// Audit sensitivity level: "easy" | "moderate" | "hard" | "strict"
"craftlens.auditLevel": "moderate",
// Continuously update Master Audit Checklist as files change
"craftlens.autoAudit": true,
// Display quiet inline CodeLens hints above findings in the editor
"craftlens.enableCodeLens": true,
// Persist Master Audit Checklist and state across VS Code sessions
"craftlens.persistAudit": true,
// Run CraftLens diagnostics whenever a file is saved
"craftlens.scanOnSave": true,
// Run fast-path diagnostics as files are edited (debounced)
"craftlens.scanOnChange": true,
// Maximum number of diagnostics reported per individual file
"craftlens.maxDiagnosticsPerFile": 50
}
In-Code Suppressions
When a pattern is intentional, you can cleanly suppress findings using comments:
// Suppress next line for a specific rule
// craftlens-disable-next-line AP-008
try { riskyOperation(); } catch {}
// Suppress current line with an explanatory reason
try { cleanup(); } catch {} // craftlens-disable-line AP-008 -- reason: safe cleanup
// Suppress all CraftLens checks for the entire file
/* craftlens-disable-file */
Privacy & Security Statement
We believe developer tooling must respect privacy, intellectual property, and security above all else:
Does CraftLens send your code to external servers?
No. CraftLens is strictly 100% local-first. All AST parsing, static analysis, QA analyzers, rule execution, and fix generation run entirely on your local machine inside the VS Code Extension Host process. Your code is never transmitted to any external server or cloud service.What data is stored locally vs transmitted?
All generated artifacts (audit history, checklists, issues, changes) are stored solely within your local workspace's.craftlens/folder. Zero bytes of source code, AST nodes, or diagnostics are ever transmitted across the network.How are API keys handled?
CraftLens requires no API keys to run its full suite of built-in analyzers, rules, and deterministic fix engine. If you optionally choose to connect an external AI model provider (Bring Your Own Key), keys are stored securely using VS Code's encrypted nativeSecretStorageAPI and are never written to disk, version control, or log files.Does CraftLens collect telemetry or analytics?
No. CraftLens contains zero telemetry, zero crash reporting beacons, and zero usage tracking. We do not track keystrokes, filenames, project contents, or developer identities.How does CraftLens prevent dangerous code changes?
CraftLens implements a Universal Safe Fix Pipeline. Every proposed change is treated as untrusted until validated through syntax checking, AST structural validation, compiler type-check verification, and targeted regression scanning. If any safety check fails, changes are rolled back atomically, preserving your code exactly as it was.
License
CraftLens is open source software licensed under the MIT License.