co-mono/packages/coding-agent/src
Daniel Nouri 0ad189f12a
Add get_commands RPC for headless clients (#995)
* Add get_commands RPC for headless clients

Headless clients like Emacs can now query which commands are available.
Previously they could only discover file-based prompt templates by
scanning the filesystem; extension commands and skills were invisible.

The response includes each command's name, description, and source
(extension, template, or skill). Commands appear in the same order
as the TUI's autocomplete: extension commands first, then templates,
then skills.

Built-in TUI commands (/settings, /fork, etc.) are excluded since
they require the interactive UI. Commands like /compact have dedicated
RPC equivalents instead.

* Add location and path to get_commands response

Clients can show where commands come from (user/project/path) and
display file paths in tooltips. The data is already available on
templates and skills - just exposing it.
2026-01-28 02:34:15 +01:00
..
cli fix(coding-agent): apply config overrides to auto-discovery 2026-01-26 13:37:08 +01:00
core Add get_commands RPC for headless clients (#995) 2026-01-28 02:34:15 +01:00
modes Add get_commands RPC for headless clients (#995) 2026-01-28 02:34:15 +01:00
utils refactor(coding-agent): simplify AgentSession 2026-01-24 01:38:58 +01:00
cli.ts Set coding agent CLI process title (#742) 2026-01-15 13:14:14 +01:00
config.ts feat(coding-agent): add PI_SHARE_VIEWER_URL env var for custom share viewer (#889) 2026-01-21 23:19:12 +01:00
index.ts feat(coding-agent): resolve resources with enabled state 2026-01-25 02:13:24 +01:00
main.ts feat(coding-agent): add pi config TUI to manage resources 2026-01-25 03:12:21 +01:00
migrations.ts chore: remove deprecation comment from getToolsDir, add changelog entry for #470 2026-01-05 20:26:48 +01:00