@zeldrisho/pi-nested-agent-md

Pi extension that discovers and injects nested AGENTS.md instructions

Packages

Package details

extension

Install @zeldrisho/pi-nested-agent-md from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@zeldrisho/pi-nested-agent-md
Package
@zeldrisho/pi-nested-agent-md
Version
0.2.1
Published
Jul 20, 2026
Downloads
218/mo · 218/wk
Author
zeldrisho
License
MIT
Types
extension
Size
10.2 KB
Dependencies
0 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

@zeldrisho/pi-nested-agent-md

Pi extension that discovers nested AGENTS.md files when Pi reads files in a project.

Install

pi install npm:@zeldrisho/pi-nested-agent-md

To try it for one session without installing it:

pi -e npm:@zeldrisho/pi-nested-agent-md

For each successfully read file, the extension finds applicable AGENTS.md files between the project root and the file's directory. It injects their instructions from outermost to innermost, excludes the root AGENTS.md that Pi already loads, and rejects paths outside the project.

Each applicable file is injected only once per session context. Reading an AGENTS.md directly also marks it as seen, while session compaction and tree navigation reset deduplication so the instructions can be restored.

Uninstall

pi remove npm:@zeldrisho/pi-nested-agent-md

License

MIT