@adamjen/pi-ext
v0.1.3
Published
Personal collection of Pi extensions, themes, and skills.
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.contextWindowfrom 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 preventNaN%display - Renamed from
custom-footertoadamjento prevent auto-update conflicts
Before:
NaN%/64k │ ⚡ orchestrator (64k) (llama-swap) • highAfter:
53%/64k │ ⚡ orchestrator (27B) (llama-swap) • highOriginal 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-extOr add to settings.json:
{
"packages": [
"npm:@adamjen/pi-ext"
]
}Requires Pi v0.37.3+.
License
MIT — same as original. See LICENSE for details.
