← Catalog

@deathbeam/pi-combos

Minimal extension for model combos that fall back to the next model when one fails.

Extension

Install

Install with PiG

pig install npm:@deathbeam/pi-combos

Install with Pi

pi install npm:@deathbeam/pi-combos
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.6 (README.md). PiG does not review it.

@deathbeam/pi-combos

Combine models from different providers into one combo/<name> model that falls back to the next model when one fails.

Installation

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

Configuration

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

{
    "combos": {
        "smart": ["anthropic/claude-sonnet-4-5", "openai/gpt-5"]
    }
}
  • Each key is a combo name, selectable as combo/<name>. Project combos override global ones with the same name, and count only in a trusted project.
  • Each value is a list of provider/model-id strings, tried in order. A model that fails before producing output falls back to the next one and moves to the end of the list for 1 minute, doubling on each failure in a row up to 30 minutes.
  • The combo uses the smallest context window and output limit of its models.

Development

From the repo root:

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