Latent Gate VS Code Extension
Latent Gate is an AI-powered product dimension and specification extraction assistant for VS Code. It acts as a frontend for the latent_gate Python package, allowing you to extract structured data from webpages directly within your editor.
Intended for e-commerce, product design, and catalog workflows, the extension extracts product specs (e.g., height, width, length, depth, weight, package dimensions) from URLs. It optimizes pages by stripping unnecessary markup, compresses data locally using a VL-JEPA-inspired vision-language pipeline, and queries cloud LLMs securely to produce clean structured results.
Features
- Interactive URL Extraction: Run extraction by specifying any URL. Results are saved and shown instantly in a new editor pane.
- Smart Active Document Analysis: Scan your current active editor file for URLs. If a URL is selected or found on the cursor line, it is processed. If multiple are found across the file, you are prompted to select one.
- Editor Context Menu Integration: Highlight a URL in any text editor, right-click, and select Extract with Latent Gate for instant results.
- Interactive Sidebar tree: The Latent Gate view container hosts shortcuts to run extractions, view the last 10 extracted URLs, browse and open the last 10 successful results, and configure settings.
- Status Bar Integration: Quick trigger button in the status bar for single-click dimension extraction.
- Detailed Output Channel: Logs python executions, CLI commands, execution parameters, performance timings, and debug errors.
Installation
- Install the extension in VS Code.
- Install the companion Python package:
pip install latent-gate
Extension Settings
You can customize the extension via VS Code settings:
latentGate.pythonPath: Custom path to your Python executable. If left empty, the extension auto-detects from the official Python extension active interpreter, .venv in the workspace root, or system PATH.
latentGate.outputFormat: The format of the returned extraction result. Can be json (default) or text.
latentGate.showLogs: Auto-reveals the Latent Gate logs output channel when executing extractions.
latentGate.timeout: Process execution timeout in milliseconds (default: 60000 ms).
Extension Commands
Access commands from the Command Palette (Ctrl+Shift+P / Cmd+Shift+P):
- Latent Gate: Extract Dimensions from URL: Prompts for a webpage URL to run extraction.
- Latent Gate: Analyze Current URL: Extracts from selected text, or parses the cursor line, or lists all URLs in the open file.
- Latent Gate: Open Settings: Direct shortcut to the extension settings.
- Latent Gate: Show Logs: Displays the Latent Gate output log channel.
License
MIT
| |