[Go to site: main page, start]

Skip to content

Agent Host: Claude Code, Kiro CLI & OpenCode

Claude Code: since CodeLite 18.5.0. Kiro CLI, OpenCode and the Agent Host name: since CodeLite 19.0.0.

The Agent Host plugin runs an existing coding agent inside a dedicated CodeLite tab, so you can work with it right next to your editor instead of switching to an external terminal. Three agents are supported:

The tab is a regular CodeLite terminal. File paths, symbols and URLs that the agent prints can be opened directly inside the IDE. Each agent type keeps its own page, so you can run them at the same time.

Enabling the Plugin

Agent Host is provided by a plugin. To use it, open Plugins → Manage Plugins... and make sure that the AgentHost plugin is checked. If you used the Claude Code plugin before, it was renamed to Agent Host and stays enabled after you upgrade.

Requirements

The plugin does not bundle the agents. It launches their command line tools, which you must install separately:

Agent Executable
Claude Code claude (see claude.com/product/claude-code)
Kiro CLI kiro-cli (see kiro.dev)
OpenCode opencode (see opencode.ai)

A workspace must be open before you can launch an agent. The plugin uses the workspace root as the agent's working directory.

Launching an Agent

There are two ways to start a session:

  • Click the agent button on the left side bar (the one with the terminal icon).
  • From the menu bar: Plugins → Agent Host → Launch an AI Agent... (Ctrl+Shift+C).

Both open a dialog that lists the agents. It suggests the agent that you used last, or the first one that is installed. Select an agent and click OK. There is no separate shortcut for each agent, but you can assign shortcuts in the Keyboard Shortcuts dialog.

If a tab for that agent is already open, the action switches to it instead of starting a second session. When you click the tab, the focus moves to its terminal.

Each time you launch an agent, the plugin tries to resume the most recent conversation for the workspace. If there is no previous conversation, it starts a fresh session automatically. When the agent process exits, its tab closes on its own.

Locating the Agent Executable

By default, the plugin looks up claude, kiro-cli and opencode on your PATH. If an executable is not on the PATH, or you want to use a specific build, set an explicit path:

  • Plugins → Agent Host → Settings...
  • Enter the full path to the executable of the agent (there is one field for each agent) and click OK.

Leave a field empty to go back to resolving the executable from the PATH.

Note

On a remote workspace (opened via the Remoty plugin over SSH/SFTP), the plugin always runs the agent from the remote host's PATH. The configured local executable path is not used in that case.

Clickable Terminal Output

Inside the agent tab, Ctrl+Left-Click (Cmd+Left-Click on macOS) any word or path that the agent prints to open it inside CodeLite, without leaving the terminal:

  • File paths: opened in the CodeLite editor. Relative paths are resolved against the workspace.
  • Directories: opened in your system's file explorer.
  • Executables: launched with the system's default handler.
  • Plain URLs: opened in your default web browser.
  • Anything else, for example a class or symbol name, is looked up through the Open Resource dialog. You can jump straight to its definition even when the agent did not print a full file path.

Toolbar

The toolbar above the terminal has these buttons:

  • Restart: restarts the agent.
  • Run Review Buddy: a drop-down button. Click it (or its arrow) to pick the agent of the review (Claude Code or Kiro CLI). While a review exists, it opens the menu to manage it instead. See below.
  • Copy: copies the text selected in the terminal. If nothing is selected, it copies the text the agent copied itself (see below). It is disabled when there is neither.
  • Paste: pastes the clipboard text into the terminal.
  • Find In Files: opens the Find In Files dialog with the selected text.
  • Open Resource: opens the Open Resource dialog with the selected text.

The agent terminal has no right-click menu: all its actions are in the toolbar.

The tooltip of a button shows the keyboard shortcut assigned to its command (if there is one), on its own line.

Find In Files and Open Resource are disabled when nothing is selected. The selection is the text you selected with the mouse. If the agent uses the mouse itself (for example inside tmux), it is the text the agent copied (it must send it with the OSC 52 terminal sequence). Only the first line is used. The two dialogs also use this text when you open them with their keyboard shortcuts while the agent terminal has the focus.

Keyboard Shortcuts

The shortcuts of the main window (for example F6, which toggles the terminal view) also work while the agent terminal has the focus.

Review Buddy

Review Buddy starts a second agent (any of the supported agents) that reviews the work that is not pushed yet, in a pane next to the main agent. Start it from the Run Review Buddy button of the toolbar.

  • The two agents work in the same folder and talk to each other through files in .agents/reviews/<id>/. The reviewer writes its comments, the main agent fixes them, and the reviewer checks again. This repeats until the review is clean, or for at most 5 rounds.
  • CodeLite types the requests into the terminals for you. It tells you when the review is finished, when the round limit is reached (the last fixes are not reviewed in that case), or when an agent seems to wait for you for a long time. If you are not looking at the page, you get a system notification.
  • While a review exists, the Run Review Buddy button opens a menu with Resend, Stop, Open the Latest Review and Close Review Buddy.
  • It needs a working directory inside a git repository (a sub-folder or a worktree is fine). It works for remote workspaces too. The .agents/reviews/ folder is added to .git/info/exclude, so it does not show in git status.

To pass extra command line arguments to the reviewer (for example, a custom agent), set them in Plugins → Agent Host → Settings..., on the Review Buddy page. There is one field for each agent.

Agent Host on Remote Workspaces

When your workspace is a remote one (via the Remoty plugin), the agent tab connects over the same SSH account and runs the agent on the remote host. Clicking a file path resolves it as a remote file, opened through the SFTP file cache, instead of looking for it on the local disk.

Tab Behavior

  • The tab's title tracks the title that the agent reports for the current session.
  • The terminal's colors and font follow CodeLite's active editor theme, and update automatically if you switch themes while the session is running.
  • The tab shows what the agent does: a spinner while it works, a pulse while it waits for you (blocked), and a check mark when it is done. The last two are shown only when the tab is not selected, and they go away when you select it. The tab also shows the spinner while its Review Buddy works.
  • When the agent is blocked and CodeLite is in the background, the taskbar button flashes (the Dock icon bounces on macOS). Nothing is shown during a review, when the agent stops on purpose. When the agent is done, the Git view is refreshed, as the agent may have changed files.
  • In the terminal settings, Notify When Done turns the tab icons and the attention request off, and Show Progress Bar shows or hides the progress bar above the terminal.

Tip: you can keep several long-running agent sessions for different workspaces open in separate CodeLite windows. Each workspace gets its own tab.