Add Directory

Load AGENTS.md, CLAUDE.md, and skills from directories outside your current working directory into a Pi session.

What it does

Pi-add-dir lets you inject context from any directory into the current session — without changing your working directory. When you add a directory, its AGENTS.md and CLAUDE.md files are read and injected into the system prompt on every turn. Skills found in that directory register as /skill:name commands.

This is useful for shared knowledge repositories, personal instruction sets, team conventions, or any context you want available regardless of which project you're in. The interactive mode offers smart suggestions based on your file system structure, and the /suggest-dirs command ranks candidates by relevance.

Why it's included

Project-level context files work well for project-specific things. But cross-cutting concerns — coding standards, personal preferences, company conventions, shared skill libraries — don't belong in any single project. Add Directory gives you a clean way to layer in that context without polluting project repos.

Commands

CommandWhat it does
/add-dir <path> Add an external directory to this session
/add-dir Interactive mode with smart directory suggestions
/suggest-dirs Show directory suggestions with relevance scores
/remove-dir [path] Remove an added directory — interactive picker if no path given
/dirs List all added directories and the context detected in each