Kai Features

From RAD Studio
Jump to: navigation, search

Go Up to Kai


This section explains in more detail the different Kai UI Features.

Ghost Text

The Ghost text feature introduces automatic, context-aware suggestions that appear directly in the editor as faint, translucent inline text, providing a fast, unobtrusive way to complete code.

Ghost text suggestions are triggered automatically after a brief pause in typing, helping users maintain focus and coding flow. Accept a suggestion instantly by pressing the Tab key, or dismiss it with the Esc key.

Ghost-Text-Light.png

CodeInsight Completions

Kai enhances CodeInsight by integrating intelligent typing suggestions directly into the RAD Studio completion window. These suggestions appear as the top item in the completion list, making them immediately accessible.

Users can invoke the completion list with Ctrl+Space and accept suggestions with Enter.

CodeInsight-Completions-Light.png

Suggestions

Kai also introduces Suggestions, a dedicated panel that lets users generate and compare multiple code suggestions at once. This view facilitates the evaluation of alternative implementations, allowing users to choose the most suitable option.

Users can manually refresh the panel to generate new suggestions, and each option includes convenient actions to either copy the code or insert it directly into your editor.

Panel-Completions-Light.png

Note:
Kai Suggestions are powered by the active completion engine in the configuration (like the other completion features).

Agent Chat

Users can now use the Kai Agent directly in the IDE as a fully integrated assistant for coding tasks, technical questions, and project analysis. Accessible via View > Tool Windows > Kai Chat, it enables you to interact with AI to compile, debug, and implement features without leaving your development environment.

The use of an Agentic Chat provides the following advantages:

  • MCP-powered Agentic Workflows that handle files, resolve build errors, and manage version control.
  • Perform File System Operations such as Read, Write, and manage project files.
  • Automate a Compile-Fix Workflow by allowing Kai to compile an application, read errors, attempt fixes, and recompile automatically.
  • Version Control Integration allows users to create and manage pull requests directly from the IDE.

Choose an Engine

When users start a chat, they can select which engine to use for the session. These engines must be configured in the Kai Chat Settings beforehand.

Open a new chat by clicking the new message icon New chat icon.png, and select one of the available LLMs using the drop-down menu to start a chat session.

Agent-Chat-Providers-Light.png

Depending on the chosen LLM engine, users can select the agent model. Some of the mode types include additional parameters such as, Agent mode, Read Only mode, or Full Access mode with the ability to make code changes. The options depend on the selected agent.

Note:
There are also additional engine-specific configurations in additional combo boxes. Each combo box shows its role in a description that appears when the mouse hovers over it.

Now, you can start typing instructions for Kai to help create code for your application.

Agent-Chat-Light.png


The section below shows examples of agent models for each agent and their options.

Claude Code Agent Sample:

=link

Codex Agent Sample:

=link

Copilot Agent Sample:

=link

Gemini Agent Sample:

=link

Tabs for Chats

Users can have multiple tabs; each tab hosts a chat. These chats persist across IDE sessions. It is possible to chat with different engines at the same time using different tabs.

Close one tab with the X symbol, or close all tabs using the fire icon Close-chat-icon.png from the toolbar.

Additional Features

Chat File Reference

Refer to files in the chat by using the @ key and typing the filename.

Kai file ref.png

Chat Slash Commands

Users can start typing the / symbol to get useful command suggestions; each agent has its own specific slash commands.

Agent-Chat-Slash-Commands-Dark.png

Users can locally define agent skills to add as slash suggestions.

See Also