pi-llama-cpp-extras1.2.0
Optional extras for pi-llama-cpp: live request progress on the working line, and automatic session titles
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.
Reports 0
No reports yet.
Readme
pi-llama-cpp-extras
Adds features to the pi-llama-cpp Pi extension without forking it.
Requires pi-llama-cpp >= 0.23.2.
Features
Live Progress Display
Shows real-time progress on Pi's working message line (⏼ Working…).
- Prefilling: A progress bar driven by llama.cpp's
prompt_progressSSE field. - Thinking: A token counter while the model reasons.
- Automatic: Appears on any request sent to a llama.cpp server managed by
pi-llama-cppand clears itself when finished.
Automatic Session Titles
Automatically names sessions based on model responses.
- Cache Preservation: Uses request replaying to ensure the session's KV cache is preserved.
- Manual Control:
/auto-title: Toggles automatic titling (off by default)./auto-title on//auto-title off//auto-title status: Explicitly manage settings./auto-title now: Forces an immediate rename. Prints the old and new labels.
- Safety & Bounds:
- Bounded requests: Limits requests per launch and per session to prevent loops.
- Thinking budget: Uses a dedicated token budget to prevent resource exhaustion.
- Context awareness: Automatically stops if a session grows too large for the server's context.
- Local-only: Only affects sessions using a llama.cpp server resolved by this package.
Demo

Installation
pi install npm:pi-llama-cpp-extras
Requirements
- pi:
>= 1.5.0 - pi-llama-cpp:
>= 0.23.2
Development
npm test
npm run typecheck
License
MIT