omp packages

@adamjen/pi-ext0.1.4

Personal collection of Pi extensions, themes, and skills.

adamjen Published 4 months ago MIT ~294 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

@adamjen/pi-ext

Fork of tomsej/pi-ext with custom modifications for local LLM setups.

What Changed

Custom Footer (extensions/adamjen/)

Original: Hardcoded 95k context window, used llama-swap's server-wide token stats for percentage.

Fixed:

  • Uses ctx.model.contextWindow from pi's actual model config (e.g., 64k for Qwen3.6-27B)
  • Removed llama-swap fallback — it showed server-wide usage, not session context
  • Added extractModelSize() to display model size (e.g., orchestrator (27B))
  • Added Number.isFinite() guard to prevent NaN% display
  • Renamed from custom-footer to adamjen to prevent auto-update conflicts

Before:

NaN%/64k │ ⚡ orchestrator (64k) (llama-swap) • high

After:

53%/64k │ ⚡ orchestrator (27B) (llama-swap) • high

Original Author

tomsej — Created the original pi-ext package with all extensions, skills, and themes. This fork only modifies the custom footer extension for accuracy with local LLM providers like llama-swap.

Full credit for: leader-key, tool-pills, code review, pi-sem, pi-telescope, session-snap, session-query, handoff, permissions, and all other extensions.

Install

pi install npm:@adamjen/pi-ext

Or add to settings.json:

{
  "packages": [
    "npm:@adamjen/pi-ext"
  ]
}

Requires Pi v0.37.3+.

License

MIT — same as original. See LICENSE for details.