omp packages

@vanillagreen/pi-nested-agents-md0.1.3

Attaches a subdirectory's AGENTS.md to the model's context the first time a file under it is read. Pi loads the root AGENTS.md and the ancestors of the cwd only; this adds the nested ones, once per session per file, bounded by the project root.

GitHub Actions Published 19 days ago MIT ~659 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

@vanillagreen/pi-nested-agents-md

A Pi extension that loads instructions for project subdirectories. It adds local AGENTS.md files when the agent reads files in those directories.

Install

  • npm: pi install npm:@vanillagreen/pi-nested-agents-md.
  • kendex: add the declaration below to the project's kendex.toml, or to ~/.config/kendex/kendex.toml for user scope. Run kendex update-pi.
[pi-extensions."@vanillagreen/pi-nested-agents-md"]
source = "kendex"

Restart Pi after installation. Use kendex update-pi --check to preview the installation.

Features

  • Load directory instructions when the agent needs them.
  • Attach instructions in order from parent to child directory.
  • Avoid repeating instructions already loaded in the session.
  • Report instruction files that cannot be read.

How it works

The agent reads a project file with Pi's read tool. The extension looks for AGENTS.md files between that file and the project root. It adds unread instructions to the tool result with their paths. The model then receives the local rules beside the file content.

Settings

The settings editor writes project values to .pi/settings.json. The default user file is ~/.pi/agent/settings.json. PI_CODING_AGENT_DIR changes the user directory. Package values are stored under kendex.extensionManager.config["@vanillagreen/pi-nested-agents-md"].

Open /extensions:settings; settings appear under the Nested AGENTS.md tab. Project settings in .pi/settings.json apply only after Pi marks the workspace trusted.

  • enabled: package toggle.

Maintainer notes are in DEVELOPMENT.md.