Pi Context Files and System Prompt | Generated by AI

Home 2026.07

Yes. Pi loads AGENTS.md (or CLAUDE.md) as context files every session. From the README’s Context Files section:

Pi loads AGENTS.md (or CLAUDE.md) at startup from:

All matching files are found by walking up from cwd, then concatenated and injected into the system prompt. For this project at /home/lzw/projects/pi, the file AGENTS.md in the repo root is what I loaded and am following as project rules.

You can also see which AGENTS.md files are loaded in the interactive startup header. Disable loading with --no-context-files / -nc.

There’s also SYSTEM.md for replacing the system prompt entirely (.pi/SYSTEM.md or ~/.pi/agent/SYSTEM.md), and APPEND_SYSTEM.md for appending without replacing.


Generated by AI. Curating and sharing still takes effort. If you find it useful, feel free to donate. WeChat: @lzwjavaWeChat QR · X: @lzwjava · Say hi 👋

Back Donate