Instruction files are guidance you write once and every session reads, such as AGENTS.md, CLAUDE.md or Cursor rules. Notes a harness saves on its own are on the Memories page.
What gets loaded
| Question | pichecked at 1.2.0 |
|---|---|
| Which files it reads | Pi reads context files named
|
| Where it looks, and when nested files load | At startup Pi loads one file from the agent directory ( If a linked git worktree sits inside its main checkout, the worktree's own context file replaces the main repo's copy so the same instructions don't load twice. |
| When several apply, which wins | Every context file found is added in full to the system prompt, each in its own block labelled with its path, in this order: agent-directory file first, then from the filesystem root down to the working directory. Pi does not resolve conflicts, so the model sees all of them; the file closest to the working directory comes last. A trusted project |
| Size limits | There is no size limit. Each file is read in full and pasted into the system prompt without truncation, so very large files use up the model's context window. |
Writing them
| Question | pichecked at 1.2.0 |
|---|---|
| One file for several harnesses | Yes. Pi reads Pi also discovers skills in a project's |
| Rules for some paths, or only on request | Not supported No. Context files have no globs or frontmatter and always apply to Pi runs in their directory or below it. For guidance that should load only when it's relevant, write a skill: the model loads it on demand, or you can force it with |
| Include other files | Not supported No. Context files are inserted as plain text, so |
| Add instructions from config or flags |
|
| Generate a starter file | Not supported There is no |
Control
| Question | pichecked at 1.2.0 |
|---|---|
| See what loaded, and apply edits | The interactive startup header has a Context section listing every file loaded: |
| Turn them off or skip some | Run
|
| Enforce instructions for an organisation | Not supported No. Pi has no managed or admin policy layer. Every instruction source is a user-editable file or a command-line flag, and any of them can be switched off with |