@saifymatteo/pi-x-ide

Pi extension package for IDE selection context integration.

Packages

Package details

extension

Install @saifymatteo/pi-x-ide from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@saifymatteo/pi-x-ide
Package
@saifymatteo/pi-x-ide
Version
1.20.2
Published
Nov 1, 2026
Downloads
465/mo · 465/wk
Author
saifymatteo
License
Apache-2.0
Types
extension
Size
1.3 MB
Dependencies
2 dependencies · 2 peers
Pi manifest JSON
{
  "image": "https://fastly.jsdelivr.net/gh/saifymatteo/pi-x-ide@main/assets/icons/pi-x-ide.png",
  "extensions": [
    "./dist/src/pi/index.js"
  ]
}

Security note

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

README

Pi × IDE — Saifymatteo fork

English | 简体中文

This is @saifymatteo/pi-x-ide, a fork of @balaenis/pi-x-ide.

For the original project overview, supported IDEs, installation instructions, and general documentation, see the upstream README.

Changes in this fork

When IDE context is attached to a prompt, Pi displays it as a separate purple IDE Context message. The message contains the IDE name, file path, and—when available—the selected line range. It does not include selected source contents, so the agent can inspect the file itself when it needs more context. Your prompt remains unchanged.

For example:

### IDE Context
- **IDE**: vscode
- **File**: `src/main.ts`
- **Selection**: L10-L20

When no text is selected, the selection line is omitted. For open-file-only context, the message includes the file metadata without attaching its contents.

Documentation

See CONTRIBUTING.md for development instructions.

License

This fork retains the upstream Apache-2.0 license.