← Catalog

@deathbeam/pi-images

Minimal extension for image descriptions for vision-less models and an image generation tool for Pi

Extension

Install

Install with PiG

pig install npm:@deathbeam/pi-images

Install with Pi

pi install npm:@deathbeam/pi-images
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": [
    "./index.ts"
  ]
}

README

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

@deathbeam/pi-images

Describe images for models that cannot see them and generate images with the image_generate tool.

Installation

# Choose one:
pi install npm:@deathbeam/pi-images              # this package
pi install git:github.com/deathbeam/pi-packages  # all my packages

Configuration

Optional images settings live in ~/.pi/agent/settings.json or .pi/settings.json:

{
    "images": {
        "vision": "anthropic/claude-haiku-4-5",
        "generate": "inferhub/cb/gemini-3.0-pro-image",
        "outputDir": ".pi/images"
    }
}
  • vision is the provider/model-id used to describe images when the current model cannot see them. Images stay undescribed when unset.
  • generate is the provider/model-id used by image_generate. The tool fails when unset.
  • outputDir is where generated images are saved. Defaults to .pi/images.

Development

From the repo root:

npm install
npm test -- packages/pi-images
pi install ./packages/pi-images