Skip to content

Strip unreachable host side skills from system prompt#14

Open
Rahlir wants to merge 4 commits into
earendil-works:mainfrom
Rahlir:fix/skills-prompt
Open

Strip unreachable host side skills from system prompt#14
Rahlir wants to merge 4 commits into
earendil-works:mainfrom
Rahlir:fix/skills-prompt

Conversation

@Rahlir

@Rahlir Rahlir commented May 12, 2026

Copy link
Copy Markdown

This fixes #13 .

Since we now have two replacements to the system prompt, I consolidated them in a single helper.

Rahlir added 4 commits May 12, 2026 12:49
Previously, the system prompt contained skills that were unreachable for
`pi-chat` since they were not mounted in the VM. This strips these
unreachable skills. The skills that are reachable (inside the mounted
dir) are still listed in the system prompt.
Anchor HOST_SKILLS_BLOCK_RE only on the stable 'The following skills'
opener and the '</available_skills>' closing tag so a reworded pi
preamble no longer silently defeats the strip. Add a one-time
ctx.ui.notify warning in before_agent_start when a host skills block
survives adaptation, so format drift surfaces instead of leaking
unreachable host paths into the VM.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unreachable host-side skills included in chat's system prompt

1 participant