@richardgill/pi-extra-context-files

pi extension for loading extra context files into the system prompt.

Package details

extension

Install @richardgill/pi-extra-context-files from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@richardgill/pi-extra-context-files
Package
@richardgill/pi-extra-context-files
Version
0.0.4
Published
Apr 30, 2026
Downloads
not available
Author
richardgill
License
unknown
Types
extension
Size
5.3 KB
Dependencies
2 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./src/index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@richardgill/pi-extra-context-files

pi extension for loading extra context files into the system prompt.

By default it loads these files while walking from the filesystem root to the current working directory:

  • AGENTS.local.md
  • CLAUDE.local.md

When files are found, the extension shows them at startup and appends their contents to the system prompt.

Part of pi-extensions.

Install with pi

pi install npm:@richardgill/pi-extra-context-files

or locally

pi install ~/code/pi-extensions/main/extensions/extra-context-files

Configure

Create extra-context-files.jsonc in your pi agent config folder:

{
  "filenames": ["AGENTS.local.md", "CLAUDE.local.md"],
  "sectionTitle": "Extra Context Files"
}