#9874·pi

Skills manifest silently omitted from the system prompt when no tool named read/bash is active

Author: YewFenceCreated Sep 22, 2026Updated Sep 28, 2026

What do you want to change?

buildSystemPrompt only appends the <available_skills> manifest when a tool literally named read or bash is active — skillFileReadTool in system-prompt.ts. The comment says "a tool capable of reading their files", but the check is name-based, not capability-based.

Adapters that rename built-in tools (a Codex-style adapter exposing exec_command instead of bash, for example) therefore lose the whole manifest silently: 42 skills discovered on disk, 0 in the system prompt, no warning anywhere. Skill loading via /skill: or mention expansion still works, so the failure stays invisible unless you explicitly ask the model what it can see.

Options, any of which would help:

  • A capability declaration on ToolDefinition (e.g. fileReadTool) that the heuristic honors, so adapters can opt in; read/bash stay the built-in defaults.
  • Or a setting / BuildSystemPromptOptions knob for the accepted tool list.
  • At minimum: a warning when skills.length > 0 but no recognized file-read tool is active, and a docs fix — skills.md "How Skills Work" currently states unconditionally that the prompt "includes available skills in XML format".

Why?

This is a silent, undocumented interaction between core and the extension ecosystem. Related history: #8551 (PR #8552) added bash to the list; #8564 asked to drop the requirement; #9144 asked for pwsh. The renamed-tools angle is different from those: the adapter author gets no signal that skills were skipped, and has no API to declare the capability. ToolDefinition already has promptGuidelines/promptSnippet so tools can declare their prompt needs — the skills gate has no equivalent.

A before_agent_start extension re-appending the manifest works as a workaround (I'm running one), but every adapter or user has to rediscover this independently.

How? (optional)

Any of the three options above works for me — which one fits pi best is a maintainer call. I'm happy to submit a PR for whichever direction you prefer.

Disclosure

Drafted by GLM 5.3 in Pi, reviewed and reshaped by YewFence