Terminal Command Generation
Describe what you want to do in the integrated terminal. Kodik suggests a shell command for you to review.
Windows PowerShell on Windows 10
Section titled “Windows PowerShell on Windows 10”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.
How it works
Section titled “How it works”- Focus the integrated terminal.
- Press
Ctrl+I(Cmd+Ion macOS). An input appears at your cursor. - Describe the command, for example “find every TODO added this week”, and press
Enter. - Review the generated command and its explanation, when available.
You can also run Kodik: Generate Terminal Command from the command palette.
Inserting vs running
Section titled “Inserting vs running”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.
Terminal-aware results
Section titled “Terminal-aware results”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.
Destructive commands
Section titled “Destructive commands”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.
Which model is used
Section titled “Which model is used”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 one-time hint
Section titled “The one-time hint”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
