LatentKit for Visual Studio Code
LatentKit brings your LatentKit AI apps into VS Code. Use it to ask questions about your project, plan changes, edit files, run approved commands, and keep work tied to the app and policy you already manage in LatentKit.
The extension is built for app-aware coding workflows: connect a LatentKit app, choose how much help you want, and work directly from the editor sidebar.
What You Can Do
- Chat in the sidebar with streaming responses, message history, run details, model routing, usage, and clear error cards.
- Connect your LatentKit apps with an API key or browser sign-in.
- Switch apps inside VS Code when your signed-in account has access to multiple LatentKit apps.
- Use workspace context such as your README, package files, open files, selected code, diagnostics, git diff, repo map,
AGENTS.md, CLAUDE.md, and .latentkit/rules.
- Attach context manually with mentions like
@Problems, @Codebase, files, URLs, images, and dropped files.
- Choose the right mode for the task: Ask, Plan, Agent, or Debug.
- Control response depth with Auto, Fast, Balanced, or Deep.
- Apply code changes safely with editor actions, diff previews, checkpoints, and restore options.
- Run longer tasks in the background when you want LatentKit to work without blocking the main chat.
- Manage sessions with new chat, chat history, pin/archive, edit-and-resend, regenerate, copy, and export to Markdown.
Modes
| Mode |
Best for |
Tool behavior |
| Ask |
Questions, explanations, quick guidance |
No local tools |
| Plan |
Step-by-step implementation plans |
No local tools |
| Agent |
End-to-end edits and fixes |
Can read, edit, and run approved commands |
| Debug |
Build/test/debug workflows |
Can read files and run restricted diagnostic commands |
Quick Start
- Install LatentKit from the VS Code Marketplace.
- Open the LatentKit view from the activity bar.
- Connect your account:
- Use LatentKit: Sign In for browser sign-in.
- Or use LatentKit: Add API Key Connection if you already have an app API key.
- If you signed in with an account, choose an app with LatentKit: Switch App.
- Open a workspace folder and start chatting.
- Pick a mode and response depth from the chat composer.
Settings
Open LatentKit: Settings... from the command palette or the gear icon in the chat title bar.
Settings are intentionally simple:
- Account: sign in, view the current account, refresh account/app state, or disconnect.
- Apps: choose the active LatentKit app or switch connections.
Common Commands
| Command |
What it does |
| LatentKit: Open Chat |
Focus the LatentKit chat view |
| LatentKit: Settings... |
Open Account and Apps settings |
| LatentKit: Sign In |
Connect with browser sign-in |
| LatentKit: Add API Key Connection |
Connect with an app API key |
| LatentKit: Switch App |
Select the active app for signed-in accounts |
| LatentKit: Switch Connection |
Choose another saved connection |
| LatentKit: Inline Edit |
Edit selected code from the editor |
| LatentKit: Run as Background Agent |
Dispatch a longer task in the background |
| LatentKit: Quick Actions... |
Open shortcuts for settings, logs, export, and chat actions |
| LatentKit: New chat |
Start a new chat session |
| LatentKit: Copy Chat as Markdown |
Copy the current thread |
| LatentKit: Export Chat as Markdown |
Save the current thread |
Workspace Context
LatentKit can use project context to make better suggestions. Depending on what is available in your workspace, it can include:
- Project overview from files such as
package.json, README.md, and directory listings.
- Project instructions from
AGENTS.md, CLAUDE.md, and .latentkit/rules.
- The current selection, active file, open files, diagnostics, git diff, and repo map.
- Manual context from the composer, including files, URLs, images, and dropped attachments.
@Problems for diagnostics and @Codebase for repository search/retrieval.
Safety
LatentKit keeps local actions visible and controlled:
- Ask and Plan do not use local tools.
- Agent and Debug can use local tools according to the active mode and approval rules.
- File changes can be reviewed through VS Code diff previews.
- Checkpoints can be created before mutating steps so you can restore files or roll back a turn.
- Commands are restricted by the extension's safety policy and approval flow.
Requirements
- VS Code
^1.99.0
- A LatentKit account or app API key
- A LatentKit backend. The default is
https://ai.latentkit.com.
For Developers
Install dependencies and build:
npm install
npm run build
Useful scripts:
npm run compile
npm run build:webview
npm run build
npm run package:vsix
npm run package:ovsx
Run locally by opening this folder in VS Code and pressing F5 to launch an Extension Development Host.
Documentation
License
UNLICENSED. This extension is private/proprietary unless your team assigns a different license.
| |