LDF VS Code Extension
December 28, 2025 ยท View on GitHub
Visual tools for spec-driven development with LDF (LLM Development Framework).
Features
Spec Tree View
Browse all specs in your project with status indicators:
- Draft (orange edit icon): Requirements incomplete
- In Review (yellow eye icon): Awaiting approval
- Approved (green check icon): Ready for implementation
- In Progress (blue sync icon): Implementation started
- Complete (green double-check icon): All tasks done
Guardrail Coverage Panel
Track guardrail coverage across all specs:
- See which guardrails are covered by which specs
- Identify gaps in coverage
- Visual status indicators (covered, partial, not covered)
Task Progress View
Track implementation progress:
- Shows next task to work on and pending tasks
- Click to jump to task in tasks.md
- Mark tasks complete directly from the view
Commands
| Command | Description |
|---|---|
LDF: Create New Spec | Create a new spec with templates |
LDF: Lint Spec | Run linter on a specific spec |
LDF: Lint All Specs | Run linter on all specs |
LDF: Run Audit | Run audit on a spec |
LDF: Initialize LDF Project | Set up LDF in current workspace |
LDF: Setup LDF (Clone & Install) | Install LDF from GitHub |
LDF: Refresh Specs | Refresh all views |
LDF: Switch Project | Switch active project in multi-project workspace |
LDF: Workspace Report | Show status of all projects in workspace |
Snippets
Type these prefixes in markdown files to insert templates:
| Prefix | Description |
|---|---|
ldf-story | User story with EARS format |
ldf-ac | Acceptance criterion |
ldf-matrix | Guardrail coverage matrix |
ldf-task | Task checkbox |
ldf-phase | Task phase with multiple tasks |
ldf-api | API endpoint documentation |
ldf-component | Design component |
ldf-model | Data model entity |
ldf-security | Security considerations section |
ldf-req-template | Complete requirements template |
Installation
From Marketplace
- Open VS Code
- Go to Extensions (Cmd+Shift+X / Ctrl+Shift+X)
- Search for "LDF Spec-Driven Development"
- Click Install
Or install from command line:
code --install-extension llmdotinfo.ldf-vscode
From VSIX (Development)
-
Clone and build:
git clone https://github.com/LLMdotInfo/ldf-vscode.git cd ldf-vscode npm install npm run compile npm run package -
Install the VSIX:
- Open VS Code
- Press
Cmd+Shift+P(orCtrl+Shift+P) - Type "Install from VSIX"
- Select the generated
.vsixfile
Configuration
Settings
| Setting | Default | Description |
|---|---|---|
ldf.executablePath | ldf | Path to the ldf executable |
ldf.specsDirectory | .ldf/specs | Directory containing spec files |
ldf.guardrailsFile | .ldf/guardrails.yaml | Path to guardrails configuration |
ldf.autoRefresh | true | Auto-refresh when files change |
Recommended Workspace Settings
{
"ldf.specsDirectory": ".ldf/specs",
"ldf.autoRefresh": true,
"files.associations": {
"*.md": "markdown"
}
}
Multi-Root Workspace Support
The extension fully supports VS Code multi-root workspaces, including:
- Separate spec trees per workspace folder
- Independent guardrail configurations per workspace
- Workspace-aware lint/audit commands
- Hierarchical tree views with project folders
Duplicate folder names: If you have multiple workspace folders with the same name (e.g., two folders named "app"), the extension distinguishes them by their full path internally while displaying the basename in the UI.
Primary Guardrail Workspace: Use the LDF: Select Primary Guardrail Workspace command to apply one workspace's guardrails.yaml configuration to all workspaces. This is useful when you want consistent guardrails across multiple projects.
Multi-Project Workspace Support (ldf-workspace.yaml)
The extension supports LDF's multi-project workspace feature, which uses ldf-workspace.yaml to manage multiple LDF projects:
- Automatic Detection - Detects and parses
ldf-workspace.yamlworkspace manifests - Project Aliases - Uses project aliases from the manifest in tree views and status bar
- Switch Project Command - Use
LDF: Switch Projectto change the active project - Workspace Report - Use
LDF: Workspace Reportto see status of all projects - Status Bar Indicator - Shows active project; click to switch
To create a multi-project workspace, run ldf workspace init in the terminal to create an ldf-workspace.yaml manifest.
Requirements
- VS Code 1.85.0 or higher
- LDF CLI installed
- An LDF-initialized project (
.ldf/directory)
Getting Started
- Install the extension
- Open a project with LDF initialized (or use
LDF: Setup LDFto install) - Look for the "LDF Specs" icon in the Activity Bar
- Create your first spec with
LDF: Create New Spec
Extension Views
LDF Specs Panel
Located in the Activity Bar (checklist icon), contains three views:
- Specifications - Tree of all specs with status
- Guardrail Coverage - Coverage matrix visualization
- Current Tasks - In-progress and pending tasks
Development
# Clone the repository
git clone https://github.com/LLMdotInfo/ldf-vscode.git
cd ldf-vscode
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Watch for changes
npm run watch
# Run tests
npm test
# Run linting
npm run lint
# Package for distribution
npm run package
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests:
npm test - Submit a pull request
License
MIT License - see LICENSE file for details.
Related
- LDF CLI & Framework - The main LDF repository
- LDF Documentation - Full documentation
- Installation Guide - Getting started with LDF