omp packages

model-health0.1.0

Pi extension that presents a context-usage health estimate.

thaddeusmx Published 8 hours ago MIT ~0 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

Model Health

Model Health for Pi

Model Health is an open-source Pi extension created by Thaddeus19 for the Pi community.

It provides a compact estimate based only on context usage. The extension helps you recognize when a conversation is approaching a point where a handoff or fresh context may improve reliability.

Model Health is an estimate based on context usage. It is not a measurement or guarantee of model quality.

Why use Model Health?

Long conversations can gradually become harder for a model to follow as the available context fills up. Model Health makes this state visible without replacing Pi's native footer or changing Pi's normal workflow.

With Model Health you can:

  • Monitor an easy-to-read health indicator inside Pi.
  • Identify context degradation before it affects your workflow.
  • Use configurable profiles for different model families.
  • Customize the degradation curve and health color bands.
  • Set an informational handoff threshold.
  • Keep your existing Pi workflow unchanged: the extension is status-only and does not automatically switch sessions or modify conversations.

Installation

Install the published npm package through Pi:

pi install npm:model-health@0.0.0

After installation, start or reload Pi so the extension becomes available.

Usage

Configure Model Health only through /model-health:

/model-health

The status indicator presents the current estimate using compact health bands. The settings screen lets you:

  • Select a supported bundled profile.
  • Create or edit custom profiles.
  • Adjust the degradation curve.
  • Configure health color thresholds.
  • Set the informational handoff threshold.
  • Apply or reset global preferences.

Model Health does not replace, hide, or duplicate Pi's native footer.

Keyboard shortcuts

Model Health is opened with the Pi command /model-health; it does not register a global keyboard shortcut. Inside the settings screen:

Key Action
Tab / Shift+Tab Move between Profiles, Curve, Colors, and Handoff tabs.
Ctrl+F Focus the bottom actions: Apply, Cancel, and Reset.
Left / Right Move between actions or adjust the selected value.
Up / Down Navigate profiles or adjust curve values.
Enter Select, confirm, or activate the focused action.
Esc Cancel or leave the current screen.
[ / ] Decrease or increase the curve preview usage percentage on the Curve tab.
Delete Remove a custom profile or curve point.

Configure the handoff warning percentage

  1. Run /model-health.
  2. Go to the Handoff tab with Tab or Shift+Tab.
  3. Use Left and Right to decrease or increase the handoff threshold by 1%.
  4. Press Ctrl+F, select Apply, and press Enter.

The handoff threshold is informational: it controls when Pi should recommend considering a handoff, but it does not automatically switch sessions or modify the conversation.

Configure the curve and color bands

  • Curve: use Left / Right to move the preview cursor, Up / Down to adjust the nearest point, A to add a point, and Delete to remove one.
  • Colors: use Left / Right to adjust the first boundary, R to cycle the band role, and C to cycle its color.
  • Profiles: use Up / Down to navigate, Enter to select, R to rename a custom profile, C to duplicate it, and Delete to remove it.

Updating

Update the installed package with:

pi update --extensions

To install a specific release:

pi install npm:model-health@0.0.0

Removing Model Health

pi uninstall npm:model-health

Removing the package deletes the Model Health status, settings command, and related notices while leaving Pi's native footer unchanged.

Development

Clone the repository and install dependencies:

git clone https://github.com/Thaddeus19/modelhealth.git
cd modelhealth
npm ci

Run the test suite, type checker, build, and package validation:

npm test
npm run typecheck
npm run build
npm pack --dry-run

Project principles

Model Health is intentionally conservative:

  • It uses context usage as its health signal.
  • It does not claim to measure model intelligence or response quality.
  • It does not automatically perform handoffs, switch sessions, summarize conversations, or mutate user data.
  • No remote or dynamically downloaded profile catalogs.
  • No automatic handoff, session switching, session mutation, summarization, or action performed on your behalf.
  • No quality signals beyond context usage.
  • No native-footer replacement.
  • No manual JSON fallback.

Contributing

Contributions, feedback, bug reports, and ideas are welcome. Please open an issue or pull request on GitHub.

When proposing a change, include the motivation, expected behavior, and relevant tests or validation steps.

Author

Created by Thaddeus19 for the Pi community.

License

Model Health is released under the MIT License.