Pi automatically loads context files at startup to give the model project-specific instructions, conventions, and commands. The primary context file isDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/earendil-works/pi/llms.txt
Use this file to discover all available pages before exploring further.
AGENTS.md (Pi also accepts CLAUDE.md as an alternative name).
How Pi loads AGENTS.md
Pi searches forAGENTS.md files in three locations and concatenates all matches:
Parent directories
Pi walks up from the current working directory, loading any
AGENTS.md it finds along the way.What to put in AGENTS.md
AGENTS.md is a Markdown file. Use it for anything that helps the model work effectively in your project:
- Project overview and architecture
- Coding conventions and style rules
- Common commands (build, test, lint)
- Files or directories to avoid
- Workflow expectations (e.g., “always run tests before committing”)
System prompt
By default, Pi uses its built-in system prompt. You can replace or extend it.Replace the system prompt
Create aSYSTEM.md file to completely replace Pi’s built-in prompt:
| File | Scope |
|---|---|
.pi/SYSTEM.md | Project-level replacement |
~/.pi/agent/SYSTEM.md | Global replacement |
Append to the system prompt
Create anAPPEND_SYSTEM.md file to add content after the built-in prompt without replacing it:
CLI flags
You can also set the system prompt from the command line:Context files (
AGENTS.md) and skills are always appended even when you replace the system prompt with --system-prompt or a SYSTEM.md file.Disabling context file loading
Use--no-context-files (or -nc) to skip all AGENTS.md and CLAUDE.md discovery:
--no-session for fully isolated runs: