mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 08:07:49 +00:00
The `/` completion of the New Task page only listed the commands the agent offered in its last session, cached once for all projects, and matched them by substring. Before a project's first session, or after a session in another project, its skills were missing, and `/trig` never matched `/triage`. - Remember the commands an agent offered per project root (settings stay shared). - New `agent_commands` command: the agent's last list for the project (or the task's own list in a session) merged with, for Claude Code, the skills (`.claude/skills/*/SKILL.md`) and custom commands (`.claude/commands/**/*.md`, nested as `dir:name`) found from the working directory upward and in `~/.claude`. The agent's entries win on a name; skills with `user-invocable: false` are left out. Discovery runs off the command thread. - Sessions discover from the task's own directory (worktree or checkout). - Command matching ranks prefix, plugin-name prefix, substring, then letters in order. Claude-Session: https://claude.ai/code/session_01VUYsdXA2nkF5v6zsC93dpn