Skip to Content
DocsClientsVS Code Extension

Truss VS Code Extension

The extension contains the side-panel UI, local model settings, approval prompts, chat history, inline completion, commit-message action, and a bundled Truss runtime service.

Install

Install Truss from the VS Code Marketplace, then open its Activity Bar icon to start the side panel. No separate CLI installation is required. Advanced users can set trussHarness.command to use an external truss-cli executable instead of the bundled service.

Repository-only Extension Development Host instructions are available in Development.

Panel workflow

  1. Open Settings.
  2. Select a detected server or enter a custom endpoint.
  3. Refresh model discovery and choose a model.
  4. Select Chat, Plan, or Edit mode.
  5. Choose a tool permission policy and optionally enable Internet research.
  6. Select Apply and start chatting.

The panel remembers endpoint, model, mode, permission selections, and bounded conversation transcripts in VS Code workspace state. When no model is saved, it auto-detects a local model. A restored conversation creates a fresh runtime session from its saved user/assistant transcript when you send the next prompt.

Chat and file context

Agent replies render Markdown, including headings, lists, links, inline code, and fenced code blocks with readable syntax color. Model output is rendered as safe DOM content; it is not injected as HTML.

Type @/ in the chat composer to fuzzy-search workspace files. Use the arrow keys followed by Enter or Tab to select a file. The selected @/path/to/file remains visible in the prompt, and Truss sends a bounded copy of that file with the next model request. Up to eight files can be attached, with an 80,000-character total limit. Slash commands such as /status, /update, and /help are reserved for local workspace actions.

Agent modes

ModeTool access
ChatNo workspace tools
PlanRead-only file inspection tools
EditFull filesystem and terminal tools

Permissions

PolicyBehavior
Ask every timeAllow or deny every tool call from the panel
Auto-allow read-onlyAuto-runs reads, lists, grep, and search; prompts for writes and terminal commands
Auto-allow allRuns all registered tools without prompting

When Internet research is enabled, web_search and web_fetch are available in every mode. They only read public text pages, reject private/local addresses, and prompt under Ask and Auto-allow read-only policies.

Editor actions

  • Commit message reads staged changes, then unstaged changes, and asks the selected local model for a conventional commit message. It never creates a commit.
  • Inline completions use the selected local model. Accept a completion with VS Code’s normal inline-completion binding, commonly Tab.

Workspace commands

The chat composer accepts /init, /update [note], /status, /clear-memory, and /help. These run locally, so they work without a configured model. Use the Help button in the side panel to display them, or run the matching Truss actions from the Command Palette.

MCP servers

Enter an mcpServers JSON object in the panel’s MCP servers (JSON) setting. Applying settings restarts the runtime service on the next request and displays server connection diagnostics in the panel. Plan mode loads only servers marked readOnly; Agent mode loads every enabled server. See MCP Servers.

Last updated on