pi-lumo-tamer0.2.0
Lumo (Proton) as a first-class Pi provider via lumo-tamer
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-lumo-tamer
Run Lumo (the fine-tuned Proton model) as a first-class model provider in Pi, served through a self-hosted lumo-tamer endpoint.
Install once, log in once, and get all three Lumo tiers — lumo, lumo-lite, lumo-max — with models in /model and a streaming turn that actually works, with zero manual wiring.
What it does
- Registers Lumo as a native Pi provider (
lumo-localby default), reusing Pi's built-in OpenAI-Chat-Completions implementation — streaming, tool handling, usage accounting, and cancellation for free. - Exposes the three Lumo tiers with validated metadata (262,144 context / 32,768 max tokens, image input, binary thinking control).
- Reads instances from Pi's own
auth.json(no sidecar config file), and never hangs Pi startup on an unreachable endpoint.
Privacy: no cloud dependency in the data path — all traffic goes straight to your self-hosted lumo-tamer endpoint.
Prerequisites
- A running lumo-tamer server (
>= 0.7.0). The default endpoint ishttp://127.0.0.1:3003/v1. Vision input and the hardened JSON tool-call detection both landed in tamer 0.7.0. customTools.enabled: truein your tamer'sconfig.yaml— this isfalseby default, and without it tool calls silently never happen. This is the #1 setup prerequisite.
Install
# From npm (recommended):
pi install npm:pi-lumo-tamer
# From Codeberg:
pi install git:codeberg.org/denix/pi-lumo-tamer
The package has zero runtime dependencies and no build step — TypeScript is loaded directly by Pi.
Quick start
- Install the package (above).
- Run
/loginand pick Lumo (local). - Paste your tamer's API key (the
server.apiKeyfrom itsconfig.yaml). - Open
/modeland selectlumo,lumo-lite, orlumo-max.
The three models appear in /model immediately after login. lumo-max is the recommended coding tier; lumo-lite is the light/fast tier.
Models
| Model | Context | Max output | Thinking | Images |
|---|---|---|---|---|
lumo |
262,144 | 32,768 | off / high (binary) | yes |
lumo-lite |
262,144 | 32,768 | off / high (binary) | yes |
lumo-max |
262,144 | 32,768 | off / high (binary) | yes, via describe_image |
Usage notes
- Tool calls work end-to-end against lumo-tamer's OpenAI-compatible API. They require tamer
>= 0.7.0(JSON-fence detection fixes are mainline since 0.7.0) andcustomTools.enabled: true. - Thinking:
/thinkingmaps Pi's levels onto Lumo's binary mode (off/minimal→none;low/medium/high→high) viareasoning_effort. To see Lumo's thinking in Pi, setreasoning.surfaceThinking: truein the tamer'sconfig.yaml. - Images: attach images as usual — Pi sends them as
image_urldata URLs and the tamer forwards them end-to-end encrypted. Limits live tamer-side: 4 MB per image, 10 images per request counted over the whole conversation history. - Guardrails: Proton Lumo has aggressive anti-prompt-injection behavior — it may refuse requests that look like secret/env exfiltration. This is normal; rephrase the request.
Lumo run prompt adaptation
For runs on a lumo-* model, this extension replaces Pi's full harness prompt with a compact coding-agent prompt and narrows the active tools to the coding core (read, bash, edit, write). Reason: Lumo 2.0's built-in consumer identity rejects the full harness framing ("I don't have pi:bash…") and lumo-tamer's own docs name many tools plus long instructions as confusion drivers for custom tool calls.
The compact prompt keeps project context reachable: it directs Lumo to read AGENTS.md (and CONVENTIONS.md when present) in the working directory before changing code.
Set LUMO_TAMER_TOOLS=all in the environment to keep every active tool (including MCP tools) declared and executable for Lumo runs. Runs on other providers are never touched.
Status
v0.1.x shipped Phase 1: native provider registration, the 3-model catalog, and no-hang startup. v0.2.0 adds image input, thinking control, and the Lumo run prompt adaptation.
Coming soon:
- Client-side auto-shim so tool calls also work on unpatched tamer servers (e.g. the Home Assistant add-on image).
- Guided multi-instance auth (
/lumo auth) for managing multiple named endpoints (e.g.local+ha). - The
/lumomanagement commands and the stream-fallback escape hatch.
For contributors
The branch topology is: feature/* → develop → main → release.
- Branch from
develop:git checkout develop && git pull git checkout -b feature/my-change - Commit and push your branch (external contributors: fork the repo first).
- Open a Merge Request on Codeberg targeting
develop— notmain. CI runs the test suite on every MR; it must pass before merge. - The maintainer reviews and merges into
develop. Repeated small MRs are welcome. - Releases are maintainer-only: an MR from
developintomainis opened when a release is due; after merge the maintainer tags the release, which publishes to npm automatically:# on main, after the release MR is merged: npm version patch # bumps package.json, commits, tags vX.Y.Z git push --follow-tags # Forgejo Actions tests + publishes to npmjs.com
Direct pushes to main are blocked; develop accepts maintainer pushes only —
everything else lands through MRs.
Release
After the release MR develop → main is merged:
git checkout main && git pull
npm version patch # 0.1.1 → 0.1.2
git push --follow-tags # tag push triggers publish.yml → npmjs.com
License
GPL-3.0