pi-agents-local-md
v0.1.0
Published
Auto-load project-local AGENTS.local.md into the Pi system prompt.
Maintainers
Readme
pi-agents-local-md
A tiny Pi extension that automatically loads a project-local AGENTS.local.md file into the system prompt.
Why
Pi already loads the committed AGENTS.md as shared project instructions. This extension adds support for a personal, uncommitted companion file:
AGENTS.md— shared rules, committed to the repo.AGENTS.local.md— your private / machine-specific notes (e.g. "use pnpm", "my local DB runs on port 5433"), kept out of git.
Behavior
- On session start (startup /
/reload//new//resume), the extension reads<project root>/AGENTS.local.mdif it exists and shows a notification. - Before every agent run, the file is re-read (edits take effect immediately, no reload needed) and its content is appended to the system prompt under a
## Project-Local Instructions (AGENTS.local.md)heading. - If the file does not exist or is empty, the extension stays silent and does nothing.
Install
Directly from GitHub:
pi install git:github.com/raosay/pi-agents-local-mdOr copy index.ts into ~/.pi/agent/extensions/ (global) or .pi/extensions/ (project-local).
Usage
echo "Use pnpm, never npm. Don't commit dist/." > AGENTS.local.md
echo "AGENTS.local.md" >> .gitignoreThen restart Pi or run /reload.
License
MIT
