Harness Notes

Skill discovery

Updated 2026-11-25,

On this page

Where each harness finds skills and what the model is told about them before one is used. Exact directories for every scope are on the Locations page.

Questionpichecked at 1.2.0
Where it looks for skills

User skills come from ~/.pi/agent/skills/ and ~/.agents/skills/. Project skills come from .pi/skills/ and from .agents/skills/ in the working directory and each parent up to the git root, and load only after you trust the project. Pi also loads skills from Pi packages, the skills array in settings.json, --skill <path> and extensions. It does not read .claude/skills.

Discovery is recursive and stops at a directory containing SKILL.md. It skips dot-directories and node_modules, and it respects .gitignore, .ignore and .fdignore.

Loose .md files count as skills only at the top level of ~/.pi/agent/skills/, .pi/skills/ and package skills/ directories. In .agents/skills/ they count only inside subfolders. Either way, the file needs a description.

Nested folders and scan limits

Scans recursively, but stops descending as soon as it finds an eligible SKILL.md, even if the skill then fails validation. It skips dot entries and node_modules, follows symlinks, and applies .gitignore, .ignore and .fdignore rules.

There is no depth limit on the recursive scan. How symlink cycles are handled is unknown.

Stop scanning below a folder containing SKILL.md?

Yes. An eligible SKILL.md makes the scanner return from that directory, so skills nested beneath it are not independently discovered. This happens even if the parent skill fails validation.

A parent skill can still tell the agent to read nested files; being discovered as a skill and being readable are separate.

What the model sees before using one

Pi adds an <available_skills> block to the system prompt. Each skill gets its name, its full description and its location, which is the absolute path to SKILL.md. The block also tells the model to load a matching skill's file with read (or bash) and to resolve relative paths against the skill directory. There is no size budget for this list.

If neither read nor bash is enabled, the skills block is left out.

Skills with disable-model-invocation: true are left out of the list.

Many skills or long descriptions

Partly

Pi has no limit on the number of skills and does not truncate descriptions: every skill is listed with its full description. A description over 1024 characters, or a name that breaks the naming rules (more than 64 characters, or anything other than lowercase letters, digits and hyphens), only triggers a startup warning, and the skill still loads. A SKILL.md that has no description or cannot be parsed is not loaded.

Two skills with the same name

The first skill discovered with a name is kept, and Pi shows a collision warning naming the winning and losing paths. Precedence is project settings entries, then project auto-discovered skills (.pi/skills before .agents/skills), then user settings entries, then user auto-discovered skills (~/.pi/agent/skills before ~/.agents/skills), then package skills. If the same file is reached twice through a symlink, it loads once without a warning.

Skill paths passed with --skill are added after the discovered skills, so a discovered skill with the same name wins.

New or edited skills mid-session

Pi does not watch skill files. After you add or edit a skill during a session, run /reload, which reloads skills, extensions, prompt templates, themes and context files without a restart.

Disable or hide a skill

Set disable-model-invocation: true in a skill's frontmatter to hide it from the model while keeping /skill:name available. To turn a skill off completely, toggle it in pi config or add an exclusion to the skills setting (!pattern or -path). --no-skills turns off all discovered and configured skills for one run.

enableSkillCommands: false only removes /skill: entries from autocomplete. It does not hide skills from the model or block a typed /skill:name.

Notes and sources

pi, 11 sources
  • Pi advertises discovered skills to the model and loads them with read.
  • --no-skills and enableSkillCommands are global controls; the cited contract does not establish a per-skill automatic-only policy analogous to disable-model-invocation.
Where it looks for skills, 5
Nested folders and scan limits, 6
Stop scanning below a folder containing SKILL.md?, 6
What the model sees before using one, 3
Many skills or long descriptions, 2
Two skills with the same name, 4
New or edited skills mid-session, 2
Disable or hide a skill, 4