Command Reference

All commands are prefixed with :Dwight. Most accept optional arguments and provide tab completion.


Project Setup

CommandArgsDescription
:DwightInitInitialize .dwight/ directory with skills and project scope
:DwightBootstrap[--agentic]Auto-add @feature: pragmas to source files. --agentic reads code for better results
:DwightHealthDiagnostic report: backend, keys, project status

Run :checkhealth dwight for the Neovim-native health check.


Autonomous Execution

CommandArgsDescription
:DwightAuto<task>Plan and execute a multi-step task with sub-tasks, verification gates, and git checkpoints
:DwightAutoStatusShow current Auto session progress
:DwightAutoCancelCancel the running Auto session
:DwightAutoRetryRetry the last failed sub-task
:DwightAutoResumeResume from the next pending sub-task
:DwightAutoSkipSkip the current sub-task and continue
:DwightAutoReviewReview the Auto plan before continuing
:DwightPausePause after the current sub-task finishes
:DwightContinueResume a paused session
:DwightAgent<task>Run a single agentic task (no sub-task planning)
:DwightAgentStatusShow agent execution buffer
:DwightAgentLogView agent execution history

Code Operations

CommandArgsDescription
:DwightRefactorAI-assisted refactoring of current selection or file
:DwightExecuteExecute an inline AI instruction (comment-driven)
:DwightRun<cmd>Run a shell command and capture output
:DwightRunOutputShow the last command output
:DwightCommitGenerate a conventional commit message from staged changes
:DwightRepeatRe-run the last Dwight operation

Features & Context

CommandArgsDescription
:DwightFeaturesList all detected features with file counts
:DwightFeaturePreview[feature]Detailed view of a feature: files, signatures, dependencies
:DwightCoverageShow pragma coverage stats (tagged vs untagged files)
:DwightMinimapTreesitter signature map of the current buffer
:DwightProjectContextShow the full context that would be sent to an agent
:DwightSplitFeature[feature] [--agentic]Split a large feature into sub-features
:DwightSplitPreview[feature]Preview a split without applying
:DwightSplitAuditCheck which features are too large and should be split

Skills & Marketplace

CommandArgsDescription
:DwightSkillsBrowse project skills (Telescope picker)
:DwightGenSkillAI-generate a new skill from a description
:DwightInstallSkillsInstall built-in skills
:DwightDocsFromURLGenerate a skill from a documentation URL
:DwightMarketplace[action]Browse skill packs. Actions: install, suggest, export, import, detect
:DwightAddLibAdd a library API reference
:DwightLibsBrowse library references

Documentation

CommandArgsDescription
:DwightDocs[target] [--agentic]Generate public docs. --agentic reads source code for accuracy
:DwightDocsBrowseBrowse generated documentation
:DwightDevDocs[target] [--agentic]Generate internal developer docs
:DwightDevDocsBrowseBrowse developer documentation

Testing & CI

CommandArgsDescription
:DwightTDD[description]Start a TDD loop: write test → run → fix → rerun
:DwightTDDStopStop the active TDD session
:DwightCI[url]Auto-fix CI failures from a pipeline URL or latest run
:DwightTestRunsView recent test run history

Git & GitHub

CommandArgsDescription
:DwightGit<subcmd>Git operations: stash, unstash, status, log
:DwightGitToggleToggle git context inclusion in prompts
:DwightSquashSquash Dwight checkpoint commits into one
:DwightDiffReviewOpen a full diff of the last session's changes
:DwightDiffToggleToggle diff preview mode
:DwightPR[title]Create a pull request from current changes
:DwightPRReview[number]AI review of a pull request
:DwightIssue[number]Work on a GitHub issue
:DwightNewIssueCreate a new GitHub issue

Session & Replay

CommandArgsDescription
:DwightReplay[session]Interactive session replay. Args: latest, filename, or blank for picker
:DwightSessionLogView the persistent session log
:DwightLogView the job log (all operations)

Replay Keybindings

Inside the replay buffer:

KeyAction
j / / SpaceNext step
k / Previous step
JJump to next tool call
KJump to previous tool call
ggFirst step
GLast step
vToggle single/cumulative view
q / EscClose

Telemetry & Stats

CommandArgsDescription
:DwightUsageQuick usage summary in a floating window
:DwightStats[target]Full telemetry dashboard. Targets: features, export
:DwightLessons[action]View or manage learned lessons. Actions: consolidate

Configuration & Backend

CommandArgsDescription
:DwightBackend[name]Switch backend: claude_code, codex, gemini
:DwightSwitch[model]Switch AI model
:DwightMode[mode]Switch operation mode
:DwightStreamToggleToggle streaming output
:DwightProvidersList configured providers
:DwightAddProviderAdd a new provider
:DwightMCPManage MCP server connections

Multi-Repo Workspace

CommandArgsDescription
:DwightWorkspaceShow workspace status
:DwightWorkspaceAdd[path]Add a repository to the workspace
:DwightWorkspaceRemoveRemove a repository from the workspace
:DwightWorkspaceInitInitialize all repos in the workspace
:DwightWorkspaceFeaturesList features across all workspace repos
:DwightWorkspaceIssuesList issues across workspace repos

Other

CommandArgsDescription
:DwightWhiteboardOpen a scratchpad for brainstorming with AI
:DwightWhiteboardSaveSave whiteboard contents
:DwightBrainstormsBrowse saved brainstorm sessions
:DwightTemplate[name]Apply a project template
:DwightSaveTemplateSave current project as a template
:DwightAuditRun a codebase quality audit
:DwightHeal[target]Auto-fix codebase issues found by audit
:DwightLintClearClear inline lint diagnostics
:DwightInvoke<function>Call a specific Lua function (advanced)
:DwightCancelCancel any running operation
:DwightMultiUndoUndo across multiple files