Skip to Content
DocsTroubleshooting

Troubleshooting

Command not found after npm install

Confirm the packages are installed globally:

npm list -g --depth=0 npm prefix -g

The bundled executable is truss; run truss tui for the terminal UI. The standalone packages retain the legacy truss-cli and truss-tui commands. Restart the terminal after installation so it reloads PATH. On Windows, the npm global directory is commonly under %APPDATA%\npm.

If you use mise, nvm, or another Node version manager, global packages belong to the active Node version. After changing Node versions, reinstall with npm install -g @truss-harness/truss.

No local models detected

  1. Start Ollama, LM Studio, llama.cpp, or your compatible server.
  2. Load a model in the server.
  3. Run truss models.
  4. Confirm the server address matches one of the standard endpoints or configure baseUrl explicitly.

For LM Studio and llama.cpp, use the server’s model ID rather than its display name. See Local Models.

The model chats but does not edit files

Select Agent/Edit mode and use a model with native tool calling. Chat and Plan modes are read-only; only Agent/Edit can change files or run commands. Very small or instruction-only models may emit tool-shaped text instead of native calls; Truss cannot safely treat simulated tool text as an executed operation.

Use an interactive client to inspect each requested and completed tool call. A claimed edit is not a successful edit unless a write tool completed.

Context-size errors

Set the client context window to the size actually loaded by your local server. Lower the retained conversation length, start a new conversation, attach fewer files, or load the model with a larger context window. Truss bounds file attachments and Git commit-message diffs, but the server is the final authority on available context.

A tool is waiting

Under Ask every time, approve or deny the request in the client. Auto-allow read-only only authorizes workspace reads. Writes, terminal commands, and internet requests still wait for approval. Auto-allow all should only be used in a trusted workspace.

Internet search is unavailable

Internet research is disabled by default. Enable internetAccess in a profile, use --internet-access, or turn on the setting in the desktop or VS Code client. The tools only reach public HTTP/HTTPS text resources; localhost, private addresses, binary downloads, browser interaction, and sign-in flows are intentionally unavailable.

VS Code cannot start the runtime

Update to the latest Truss extension and reload the VS Code window. The extension includes its runtime service. If trussHarness.command contains an old or unavailable CLI path, clear that setting to restore the bundled service. Check View → Output → Truss for runtime diagnostics.

Neovim cannot connect to Truss

Run :checkhealth truss first. It verifies Neovim, the configured truss-cli executable and version, workspace access, and optional Git support without starting the service or contacting a provider.

truss.nvim 0.2.3 requires Neovim 0.10 or newer and truss-cli 0.1.14 or newer. The plugin defaults to truss-cli; set command = "truss" in its setup when using the bundled installation. Confirm the installed bundled CLI directly:

truss --version

After the local health check passes, run :TrussTestConnection to test the configured provider, model, and credential. See the Neovim client guide for installation and profiles.

Get the effective configuration

Run:

truss config path truss models truss help

Configuration precedence is documented in Configuration. Workspace settings override user settings, and explicit CLI flags override both.