4 min read 829 words Updated Mar 16, 2026 Created Mar 16, 2026

Error Guide

This page documents common error messages you may encounter while using Dwight, along with their causes and fixes.


Backend Errors

ErrorCauseFix
spawn failed: ENOENTCLI binary not found in PATHInstall the backend: npm i -g @anthropic-ai/claude-code (or equivalent). Restart Neovim.
Backend exited with code 1CLI crashed or hit a fatal errorCheck the backend's own logs. Run the CLI manually in a terminal to see the full error output.
Backend timed outTask took longer than the configured timeoutIncrease agent_timeout in your config, or break the task into smaller pieces.
Backend exited with signal SIGTERMProcess was killed (OOM, manual kill, or system)Check system memory. Large codebases may need more RAM for the CLI process.

API and Authentication Errors

ErrorCauseFix
Unauthorized / 401Invalid or expired API keyRe-export your API key env var, or run claude login for Claude Code.
Rate limited / 429Too many requests in a short periodWait and retry. Consider switching to a model with higher rate limits, or reduce request frequency.
Quota exhausted / 402Billing limit reachedCheck your API provider dashboard. Add credits or upgrade your plan.
Token expiredOAuth token needs refreshRun :DwightAuthMax to re-authenticate, or claude login for CLI auth.
Model not availableRequested model doesn't exist or isn't enabledRun :DwightSwitch to pick from available models. Check your API plan supports the model.

Context and Feature Errors

ErrorCauseFix
No features foundNo @feature: pragmas in source filesRun :DwightBootstrap to auto-add pragmas.
Feature context too largeFeature has too many files or too much code for the context windowSplit the feature with :DwightSplitFeature. Or build a digest with :DwightDigest to use compressed signatures instead.
Feature not found: <name>Pragma name doesn't match any detected featureCheck spelling. Run :DwightFeatures to see all detected feature names.
Treesitter parser not availableMissing parser for the file's languageInstall it: :TSInstall <language>.

Digest Errors

ErrorCauseFix
Digest build failedSource files couldn't be parsed or directory is emptyCheck that your project has source files and treesitter parsers are installed.
Digest is staleSource files changed since last digest buildRebuild with :DwightDigest --force.
No digest availableDigest hasn't been built yetRun :DwightDigest to build one.

Git and Checkpoint Errors

ErrorCauseFix
Not a git repositoryProject root has no .git/ directoryRun git init in your project root.
Dirty working treeUncommitted changes block the operationCommit or stash changes first: :DwightGit stash or :DwightGit commit.
Merge conflict during checkpointAgent changes conflicted with concurrent editsResolve conflicts manually or with :DwightGit resolve, then :DwightAutoResume.
Nothing to squashNo dwight checkpoint commits found on current branch:DwightSquash only works after Auto mode has created checkpoint commits.
Cannot create checkpointGit operation failed (permissions, disk space, lock file)Check git status manually. Look for .git/index.lock (stale lock file).

MCP Server Errors

ErrorCauseFix
MCP server failed to startServer binary not found or crashed on startupVerify the server command exists and runs standalone. Check the command and args in your config.
MCP connection lostServer process exited unexpectedlyCheck :DwightMCP for status. Restart with :DwightAgent (MCP reconnects automatically).
MCP tool not foundServer doesn't expose the expected toolVerify the MCP server version matches what Dwight expects. Check server docs.

Auto Mode Errors

ErrorCauseFix
No active sessionTried to resume/skip/retry with no session runningStart a new session with :DwightAuto.
Session already activeTried to start a new session while one is runningCancel the current session with :DwightAutoCancel, or wait for it to finish.
Sub-task failedAn individual agent step failed its verificationUse :DwightAutoRetry to retry with error context, :DwightAutoSkip to skip it, or :DwightAutoResume with an override prompt.
All sub-tasks failedMultiple consecutive failuresReview the plan with :DwightAutoReview. The task may need to be broken down differently or approached manually.

See Getting Started#Troubleshooting for setup-specific issues and :checkhealth dwight for automated diagnostics.