Pi extension that loads AGENTS.local.md and/or CLAUDE.local.md from the current working directory and appends them to the effective system prompt as private project instructions.
Use this for machine-local or personal project instructions that should not be committed to the repository.
- Pi installed and available as
pi - Node/npm available for npm-based installation
Install the published npm package globally:
pi install npm:pi-agents-localInstall a pinned version for reproducible setup:
pi install npm:pi-agents-local@0.1.0Install from GitHub instead of npm:
pi install git:github.com/danieldisu/pi-agents-local@v0.1.0Install project-locally so the dependency is recorded in .pi/settings.json and shared with teammates:
pi install -l npm:pi-agents-local@0.1.0
# or
pi install -l git:github.com/danieldisu/pi-agents-local@v0.1.0Try from a local checkout without installing:
pi -e .Install from a local checkout:
pi install .Create AGENTS.local.md or CLAUDE.local.md in the directory where you start Pi:
cat > AGENTS.local.md <<'EOF'
Private local instructions go here.
EOFcat > CLAUDE.local.md <<'EOF'
Private Claude-style local instructions go here.
EOFIf both files exist, both are loaded. AGENTS.local.md is injected first, followed by CLAUDE.local.md.
Keep them uncommitted. For a single repository, prefer .git/info/exclude:
echo "AGENTS.local.md" >> .git/info/exclude
echo "CLAUDE.local.md" >> .git/info/excludeOr add them to .gitignore if the whole team should avoid committing local instruction files:
echo "AGENTS.local.md" >> .gitignore
echo "CLAUDE.local.md" >> .gitignoreThe extension reads the files on each agent start, so edits are picked up without caching.
Inside Pi:
/agents-local-status
Shows whether AGENTS.local.md and CLAUDE.local.md exist, their paths, byte sizes, modification times, and injection status.
- Only reads
AGENTS.local.mdandCLAUDE.local.mdfromctx.cwd - Does not traverse parent directories
- Does not accept arbitrary paths
- Does not log or display file contents
- Skips files larger than 50KB
- Skips unreadable files and notifies once when UI is available
Pi extensions run with your local user permissions. Only install packages from sources you trust, and review local instruction file contents before starting Pi in sensitive projects.
AGENTS.local.md and CLAUDE.local.md are intended for private local instructions. Do not put secrets, API keys, passwords, or tokens in them.
Update non-pinned installs:
pi update npm:pi-agents-localRemove the package:
pi remove npm:pi-agents-localIf you installed a pinned version, install a newer pinned version explicitly:
pi install npm:pi-agents-local@0.1.1Run tests:
npm testValidate package contents before publishing:
npm pack --dry-run