kilocode icon indicating copy to clipboard operation
kilocode copied to clipboard

Desktop: agent picker doesn't list primary agents from the workspace's .kilo/agent folder

Open RR-Cadance opened this issue 5 days ago • 1 comments

Component

Desktop or web app

Description

Kilo Desktop's agent picker (the Code ▾ menu under the message box) doesn't list primary agents defined as Markdown files in the workspace's .kilo/agent/ folder. It only shows the built-in agents plus agents from the global ~/.config/kilo/kilo.jsonc agent block. Settings → AI → Agent Behavior shows the same reduced list.

The agents are loaded correctly otherwise:

  • kilo agent list, run from the workspace folder with the CLI bundled in Kilo Desktop (7.8.27), lists the project agents with mode: primary.
  • kilo --agent <name> in the workspace folder starts them fine.
  • In a Desktop session in that workspace, subagents (mode: subagent) defined in the same .kilo/agent/ folder are available to the Task tool. So the session itself sees the project agents; only the picker and the settings list don't.

A possible cause (not confirmed): the Desktop's kilo serve process starts in the app's own runtime folder (its indexing log shows workspacePath=.../Kilo Desktop/plugins/kilo.core/agent/runtime), so an agent list requested without the workspace directory would only contain global agents.

Restarting Kilo Desktop doesn't help.

Expected: the picker lists primary agents from the selected workspace's .kilo/agent/ (and .kilo/agents/, .kilocode/agent/) folders, as the CLI and the VS Code extension's agent cycling do.

Workaround: open a Terminal tab in the workspace and run kilo --agent <name>.

Plugins

None

Kilo version

Kilo Desktop 1.0.0 (bundled CLI 7.8.27)

Steps to reproduce

  1. In a git repo, create .kilo/agent/demo.md:
    ---
    description: Demo primary agent
    mode: primary
    ---
    You are a demo agent.
    
  2. Run kilo agent list in that folder: demo (primary) is listed.
  3. Open Kilo Desktop, create a workspace with that repo as the primary folder, and start a new session with Use: Local repository.
  4. Open the agent picker under the message box: demo isn't listed (only Code, Plan, Ask, Debug and any agents from the global config).
  5. Settings → AI → Agent Behavior → Agents: demo isn't listed either.

Screenshot and/or share link

None attached (the workspace is private).

Operating System

macOS 27.0.1 (Apple Silicon)

Terminal

Kilo Desktop


Drafted by Kilo (AI) at the reporter's request.

RR-Cadance avatar Nov 30 '26 05:11 RR-Cadance

Hi — I'm reproducing this now and preparing a fix; I'll open a PR shortly.

four1er avatar Nov 30 '26 08:11 four1er