AI-powered command generation from natural language (Cmd+Shift+. overlay) #10500
-
SummaryA hotkey-triggered overlay that lets users describe what they want to do in natural language and generates the corresponding shell command, which is then inserted into the terminal. Similar to Cursor's Cmd+K in terminal or Warp's AI features. An AI assisted version is forked here: MotivationRemembering exact flags and syntax for infrequently-used commands (tar, find, ffmpeg, rsync, etc.) breaks flow. Being able to type "find all .log files older than 30 days and delete them" and get the correct command directly in the terminal would be useful, especially since the terminal already has the context of where the command will run. Proposed Behavior
The command is not auto-executed — it's inserted as text so the user always has the final say. ConfigurationProvider: openai, anthropic, ollama, customai-provider = openai Or use a local model with no API key neededai-provider = ollama API keys would be read from standard environment variables (OPENAI_API_KEY, ANTHROPIC_API_KEY). Ollama requires no key since it runs locally. Optional overrides: ai-endpoint (custom API URL), ai-system-prompt (prepend custom instructions), ai-max-tokens. Scope
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
AI features like this are not going to be part of the core Ghostty terminal. Eventually we'll have a plugin system and users will be free to develop plugins that provide these features. |
Beta Was this translation helpful? Give feedback.
AI features like this are not going to be part of the core Ghostty terminal. Eventually we'll have a plugin system and users will be free to develop plugins that provide these features.