Skip to main content

VS Code reference

A lookup table for the nnumbers.imaginne extension. For the step-by-step, see Use in VS Code. Open the chat with Ctrl/Cmd+Shift+I.

Commands (the "Imaginne:" category)​

Accessible from the command palette (Ctrl/Cmd+Shift+P) by typing Imaginne:.

CommandWhat it does
StartStarts the session.
Open ChatOpens the chat panel.
Ask SelectionAsks about the selection.
Fix SelectionFixes the selection.
Explain SelectionExplains the selection.
Refactor SelectionRefactors the selection.
Explain FileExplains the active file.
Generate TestsGenerates tests.
Run Test for FileRuns the file's tests.
Run Test at CursorRuns the test at the cursor.
Review Current ChangesReviews the unstaged changes.
Review Staged ChangesReviews the staged changes.
Review Branch vs BaseReviews the branch against the base.
Review FileReviews the file.
Generate Commit MessageGenerates the commit message.
Explain DiffExplains the diff.
Pin Active FilePins the active file into the context.
Pin SelectionPins the selection into the context.
Unpin ContextRemoves a pinned item.
Show Pinned ContextShows what is pinned.
Clear Pinned ContextClears the pinned items.
Preview ContextPreviews the context that will be attached.
Start Agent TaskStarts an agent task.
Stop Agent TaskStops the task.
Resume Agent TaskResumes the task.
Run Health CheckDiagnoses the connection.
LoginLogs in via the browser.
LogoutLogs out.
WhoamiShows the identity.
Configure Binary PathSets the path to the imaginne binary.
Open Terminal SessionOpens a session in the terminal.
The extension exposes around 50 commands

The table above covers the ones for direct use. The rest are variations and internal entries that appear in the palette under the same Imaginne: prefix.

Keyboard shortcuts​

ShortcutAction
Ctrl/Cmd+Shift+IOpen the chat.
Ctrl/Cmd+Shift+LFocus the input field.
Ctrl/Cmd+LClear the chat.
EscCancel the execution (with the side bar visible).

Context menus​

WhereItems
Editor (right-click)Ask / Fix / Explain / Refactor Selection; Run Test at Cursor.
Explorer (right-click on a file)Review File; Run Test for File.
SCM (source control)Review Current Changes; Review Staged Changes; Generate Commit Message.

Slash commands (in the chat)​

CommandEffect
/clearClears the chat.
/newNew conversation.
/statusCurrent state.
/compactCompacts the context.
/modelShows the active model (the extension has no picker).
/cancelCancels the execution.
/helpHelp.
/autonomyAdjusts the level (Ask / Fix / Agent / Bypass).
/loginLogs in.
/logoutLogs out.
/whoamiShows the identity.

Directives​

DirectiveEffect
/fixFixes the target in the context.
/explainExplains.
/testGenerates/runs tests.
/refactorRefactors.
/reviewReviews.
/planPlans before acting.

The @file mention injects the file's content into the context.

Useful settings​

The extension exposes around 23 settings (prefix imaginne.). The most used:

SettingDefaultEffect
imaginne.binaryPath—The path to the imaginne CLI (if not on the PATH).
imaginne.platformUrl—The Imaginne platform URL (advanced).
imaginne.context.smarttrueTurns on smart context.
imaginne.context.includeGitDifffalseAttaches the git diff.
imaginne.context.includeDiagnosticstrueAttaches diagnostics.
imaginne.context.includeOpenTabstrueAttaches the open tabs.
imaginne.autonomy.defaultLevelfixThe initial autonomy level.
imaginne.autonomy.allowApplyAlltrueAllows "Apply All".
imaginne.autonomy.requireConfirmationForDestructivetrueConfirms destructive operations.
imaginne.autonomy.commandAllowlist—Commands allowed without confirmation.
imaginne.autonomy.commandDenylist—Commands always blocked.
imaginne.autonomy.bypassTimeoutMinutes30The expiry of Bypass mode.
imaginne.extraArgs—Extra arguments for imaginne serve.

Prerequisite​

The extension brings up the imaginne serve CLI underneath. Install the imaginne binary first (see Install the TUI). The DEV channel is the nnumbers.imaginne-dev extension.