nehlis-pi-effort

内容来源:README.md(说明文档) · 原始地址 · 查看安装指南

原始内容

pi-effort

A tiny Pi package that adds /effort, a slash command for changing the active reasoning/thinking level without opening model settings.

Install

pi install npm:@nehlis/pi-effort

Then restart Pi or run:

/reload

Usage

/effort low
/effort medium
/effort high
/effort xhigh

With no argument, /effort opens an interactive selector in Pi's TUI.

Levels

Input Result
off, none, 0 off
minimal, min, 1 minimal
low, 2 low
medium, med, 3 medium
high, hi, 4 high
xhigh, max, maximum, 5 xhigh

Pi may clamp the requested level depending on the active model's capabilities. When that happens, /effort reports both the requested and effective levels.

Local development

Clone the repo and run the extension locally:

pi -e .

Or install it from a local checkout:

pi install /path/to/pi-effort

Validate package contents before publishing:

npm run pack:dry

Type-check:

npm install
npm run check

Publishing

This package is scoped, so publish it publicly with:

npm publish --access public

The package includes the pi-package keyword and a pi.extensions manifest so it can be discovered by Pi's package catalog.

License

MIT