← Catalog

@zigai/pi-mention-project

Pi package that adds fuzzy project directory mentions.

Extension

Install

Install with PiG

pig install npm:@zigai/pi-mention-project

Install with Pi

pi install npm:@zigai/pi-mention-project
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.12.0 (README.md). PiG does not review it.

Pi Mention Project

npm version npm downloads license

Reference configured projects with # mentions.

Install

pi install npm:@zigai/pi-mention-project

Features

  • Adds fuzzy project autocomplete with # mentions.
  • Ranks initial suggestions by frecency, recency, frequency, name, or discovery order.
  • Supports custom single- or multi-character triggers and pinned projects.
  • Expands selected mentions to absolute project paths when prompts are submitted.
  • Searches one or more configured folders for projects.

Usage

Type # in the prompt editor to open project suggestions, then select a project.

The selected mention expands to the project's absolute path in both the displayed message and model context.

History-based ordering records autocomplete selections in ~/.pi/agent/state/pi-mention-project-selections.json. Frecency combines selection count with recency; manually typed mentions do not update this history.

Configuration

Global settings are stored in ~/.pi/agent/extension-settings/pi-mention-project.json.

OptionTypeDefaultDescription
triggerstring"#"One or more non-whitespace, non-slash characters that start a project mention.
rootsstring | string[][]Project root directory or directories searched for projects.
gitReposOnlybooleantrueInclude only directories containing Git repositories.
includeDotFoldersbooleanfalseInclude project directories whose names start with a dot.
completionSuffixstring" "Text inserted after a completed project mention.
initialSuggestions.strategyfrecency | recent | frequent | alphabetical | sourceOrder"frecency"Ordering used before any project query text is entered.
initialSuggestions.pinnedstring[][]Project names placed first, in this order, before the configured strategy.
{
  "$schema": "./schemas/pi-mention-project.schema.json",
  "trigger": "#",
  "roots": [],
  "gitReposOnly": true,
  "includeDotFolders": false,
  "completionSuffix": " ",
  "initialSuggestions": {
    "strategy": "frecency",
    "pinned": []
  }
}

License

MIT