Skip to content

Terminal Command Generation

Describe what you want to do in the integrated terminal. Kodik suggests a shell command for you to review.

Kodik automatically uses the system terminal backend for Windows PowerShell on Windows 10 to avoid black background bars when you type spaces or delete text. No settings change is needed. Close and reopen existing terminals after updating Kodik to apply this compatibility behavior.

  1. Focus the integrated terminal.
  2. Press Ctrl+I (Cmd+I on macOS). An input appears at your cursor.
  3. Describe the command, for example “find every TODO added this week”, and press Enter.
  4. Review the generated command and its explanation, when available.

Russian terminal command generator showing a suggested command and its Insert and Run shortcuts

You can also run Kodik: Generate Terminal Command from the command palette.

Once a command appears, you choose what happens to it:

Key Action
Enter Insert the command on the prompt without running it, so you can read or edit it first
Ctrl+Enter (Cmd+Enter on macOS) Run the command immediately
Escape Dismiss the input and return to the terminal

Click Insert to put the command at the prompt for editing, or Run to execute it immediately.

Generation is given the terminal’s current working directory, shell, and operating system. A command generated in a PowerShell terminal uses PowerShell syntax; one generated in zsh uses POSIX syntax; and paths are relative to the directory you are actually in.

When a command deletes data, rewrites history, or is otherwise hard to undo, Kodik marks it before you accept it. The warning combines the model’s own assessment with a local check for well-known irreversible operations such as rm -rf, git push --force, and git reset --hard.

Terminal generation uses the active chat’s model, including Ollama and custom providers. Without an active chat, it uses your default model. The terminal sends the instruction and terminal context in a separate request. Chat history stays in the chat.

The first time you open a terminal, Kodik shows a short hint that Ctrl+I generates commands. It disappears as soon as you start typing and does not come back. To turn it off entirely, set:

"kodik.terminal.commandHint.enabled": false