Desktop: agent picker doesn't list primary agents from the workspace's .kilo/agent folder
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 withmode: 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
- In a git repo, create
.kilo/agent/demo.md:--- description: Demo primary agent mode: primary --- You are a demo agent. - Run
kilo agent listin that folder:demo (primary)is listed. - Open Kilo Desktop, create a workspace with that repo as the primary folder, and start a new session with Use: Local repository.
- Open the agent picker under the message box:
demoisn't listed (only Code, Plan, Ask, Debug and any agents from the global config). - Settings → AI → Agent Behavior → Agents:
demoisn'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.
Hi — I'm reproducing this now and preparing a fix; I'll open a PR shortly.