docs: what pi, omp and opencode offer on the two Liquid AI lanes

docs/pi.md has its line for Liquid AI LFM3 (off and high alone, the proxy's v6.61 translation, omp's high and
minimal) and says what LFM2.5 24B-A2B gets (high alone, no field), read in pi 1.2.0's source with no session run
on either lane yet. docs/opencode.md names the lfm25 and lfm3 providers, their variants and their limits (74,000
and 32,000 at LFM2.5's 131,072 window, the flash lane's pair at LFM3's 262,144), text only.
docs/agents-and-network.md lists the two among the repo's provider names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hasan BasbunarandClaude Opus 5.5 committed 2026-11-19 15:38:53 +01:00
1 parent 7ad3b8a1d1
commit 4b0668fbc6
3 files changed
+6 -5

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ opencode reads its permission rules in order and the last one that matches wins,
- The config `install.sh` generates (`~/.config/qwen38/opencode.json`), which `oc` and the Agent tab load over your own: there the rules come after your global config's, but for a key added after the block in a global config that holds it too (this repo's copy does), until the next install puts the block last again.
- Your global config (`~/.config/opencode/opencode.json`), which plain `opencode` reads, when it is this repo's copy or lists this repo's providers. A key you add after the block later overrides it, and the next install puts it last again. A pattern you set inside it stays as you set it.
- A config of your own, in which none of this repo's provider names (`qwen38`, `flashnext`, `kolibri`, `nemotron`, `nemotron-super`, `flash-local`, `ornith-122b`, `flash-unsloth`) shows, never gets the rules: `oc` and the Agent tab still get the rules, and for plain `opencode` the block above is the one to add, as the last member of your `"permission"`.
- A config of your own, in which none of this repo's provider names (`qwen38`, `flashnext`, `kolibri`, `nemotron`, `nemotron-super`, `flash-local`, `ornith-122b`, `flash-unsloth`, `lfm25`, `lfm3`) shows, never gets the rules: `oc` and the Agent tab still get the rules, and for plain `opencode` the block above is the one to add, as the last member of your `"permission"`.
- With `AGENT_AUTO=1`, the Agent tab's unit repeats the rules after its `"*": "allow"`, under `"*bash"`.
Checked on the box on 2026-10-28 with opencode 1.19.4 and the FP4-Local lane: a shell command naming an aliyuncs.com host was refused under `--yolo` and under the new `AGENT_AUTO` value, and ran under the old one (`{"*":"allow"}` alone). On 2026-10-30 opencode 1.19.4 and 1.19.5 refused it the
+4 -4
View File
@@ -2,7 +2,7 @@
What the installer writes for [opencode](https://opencode.ai), why each piece is there, and how to opt out.
The installer writes a complete, ready-to-use [opencode](https://opencode.ai) config at `~/.config/qwen38/opencode.json` (the API key is referenced via `{file:...}`, no secret inside). It contains one provider per installed lane (`qwen38` for the 27B, `flashnext` for flash, `flash-local`, `flash-unsloth`, `kolibri`, `nemotron`, `nemotron-super` and `ornith-122b`), the four Qwen ones with `lean` / `low` / `medium` / `xhigh` reasoning-effort variants (no variant = the patched template's default, `lean`, or Qwen's `xhigh` on a box installed with `LEAN_DEFAULT=0`, and on the Qwen3.8 Flash-Next FP4-Local lane installed with `FLASH_LOCAL_EFFORT=xhigh`, its model card's default (that lane's variants list `xhigh` first whatever its default: the order decides no request); the vLLM ones offer `none` / `low` / `medium` / `high`, but Ornith's `none` / `high`, as its template turns reasoning on or off and nothing between), and its default model follows the installed target (`./switch-model.sh` re-points it on every switch):
The installer writes a complete, ready-to-use [opencode](https://opencode.ai) config at `~/.config/qwen38/opencode.json` (the API key is referenced via `{file:...}`, no secret inside). It contains one provider per installed lane (`qwen38` for the 27B, `flashnext` for flash, `flash-local`, `flash-unsloth`, `kolibri`, `nemotron`, `nemotron-super`, `ornith-122b`, `lfm25` and `lfm3`), the four Qwen ones with `lean` / `low` / `medium` / `xhigh` reasoning-effort variants (no variant = the patched template's default, `lean`, or Qwen's `xhigh` on a box installed with `LEAN_DEFAULT=0`, and on the Qwen3.8 Flash-Next FP4-Local lane installed with `FLASH_LOCAL_EFFORT=xhigh`, its model card's default (that lane's variants list `xhigh` first whatever its default: the order decides no request); the vLLM ones offer `none` / `low` / `medium` / `high`, but Ornith's `none` / `high`, as its template turns reasoning on or off and nothing between, and Liquid AI LFM3's `high` / `none` for the same reason, while Liquid AI LFM2.5 24B-A2B's offers none, as its template reasons before every answer and reads no switch and no level), and its default model follows the installed target (`./switch-model.sh` re-points it on every switch):
A box with no opencode config of its own gets this one as `~/.config/opencode/opencode.json`
(since v1.18.4: before, it was printed as a `cp` command, and a first install left opencode,
@@ -10,7 +10,7 @@ A box with no opencode config of its own gets this one as `~/.config/opencode/op
A config you already have is kept: the installer merges the served lane's limits into it,
and adds the provider of a lane installed since (the 27B first, the flash lane later) when
it already has one of this repo's providers. When it has none of them, the installer says
so and leaves it alone: merge this repo's provider blocks (`qwen38`, `flashnext`, `flash-local`, `flash-unsloth`, `kolibri`, `nemotron`, `nemotron-super`, `ornith-122b`) from
so and leaves it alone: merge this repo's provider blocks (`qwen38`, `flashnext`, `flash-local`, `flash-unsloth`, `kolibri`, `nemotron`, `nemotron-super`, `ornith-122b`, `lfm25`, `lfm3`) from
`~/.config/qwen38/opencode.json` into it yourself.
```bash
@@ -114,10 +114,10 @@ Do not want any of it? `./install.sh --no-opencode` (one-liner: `| bash -s -- --
What the shipped config gets right for you:
1. **The hidden 32K output cap**: opencode sends `max_tokens = min(limit.output, OPENCODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX or 32000)`. Without that env var, a long thinking phase hits 32000 tokens, the turn ends silently (`finish_reason: length`, no text, no tool call) and you have to re-prompt. The installer ships an **`oc` launcher** (`~/.local/bin/oc`, skipped if an unrelated `oc` binary exists) that exports the right value and execs `opencode --yolo`: launch with `oc` instead of `opencode` and the cap sits above every output limit this repo declares, on every target and in either context mode. It is deliberately a ceiling rather than the installed target's own number, because `limit.output` is what follows a model switch: a ceiling copied from the installed target survives the switch and cuts the next lane's turn in the same silence (`./oc-limits.sh --max-out` is where both installers read it). Note that opencode's defaults already run every tool, the shell included, without asking, and `--yolo` also approves what would ask (how the reference box runs): for a prompt before each shell command, put `"*": "ask"` in the `"bash"` object of your config and start plain `opencode` ([agents and the network](agents-and-network.md)).
2. **Limits that can never 400**: the server rejects any request where `input + max_tokens` exceeds the window (no clamping), and the prompt opencode sends can reach its compaction point (`limit.input` minus 20,000) plus one agent step (up to 43,863 tokens measured on this box). So the config ships `context/input 173000, output 64000` in native mode (173,000 - 20,000 + 43,863 + 64,000 = 260,863, under 262,144, whether the 32K cap is lifted or not), `205000/32000` on the flash lane, and `700000/200000` in 1m mode as a starting pair. Until v1.18.7 the native pair was 194048/64000 and the flash one 225000/32000: both fitted a prompt of exactly `context`, not the one a large step brings past compaction, so a request in that band got a 400 that opencode then compacted on. The 1m pair is a starting pair, which the installer then fits to the pool the boot actually got (`oc-fit-limits.py`, after step 9): the pool changes from boot to boot (832,993 to 922,094 tokens over sixteen 27B boots on the reference box), and that pair does not fit the smaller ones. Since v1.18.2 the cockpit does the same fit by itself after a switch and a Start. Both fits hold the same window rule, and on a 262,144 window they never go above the lane's pair above (v1.18.7).
2. **Limits that can never 400**: the server rejects any request where `input + max_tokens` exceeds the window (no clamping), and the prompt opencode sends can reach its compaction point (`limit.input` minus 20,000) plus one agent step (up to 43,863 tokens measured on this box). So the config ships `context/input 173000, output 64000` in native mode (173,000 - 20,000 + 43,863 + 64,000 = 260,863, under 262,144, whether the 32K cap is lifted or not), `205000/32000` on the flash lane (and on the Liquid AI LFM3 lane, whose window is the same 262,144), `74000/32000` on the Liquid AI LFM2.5 24B-A2B lane, whose window is 131,072 (74,000 - 20,000 + 43,863 + 32,000 = 129,863), and `700000/200000` in 1m mode as a starting pair. Until v1.18.7 the native pair was 194048/64000 and the flash one 225000/32000: both fitted a prompt of exactly `context`, not the one a large step brings past compaction, so a request in that band got a 400 that opencode then compacted on. The 1m pair is a starting pair, which the installer then fits to the pool the boot actually got (`oc-fit-limits.py`, after step 9): the pool changes from boot to boot (832,993 to 922,094 tokens over sixteen 27B boots on the reference box), and that pair does not fit the smaller ones. Since v1.18.2 the cockpit does the same fit by itself after a switch and a Start. Both fits hold the same window rule, and on a 262,144 window they never go above the lane's pair above (v1.18.7).
3. **Reasoning-effort variants**: the generated config declares `lean`, `low`, `medium` and `xhigh` variants (ctrl+t in the TUI), `lean` first because it is what a turn that picks none gets: the patched template's default since v1.13, measured in [LEAN.md](../LEAN.md) (`LEAN_DEFAULT=0 ./install.sh` keeps Qwen's `xhigh` as the default and still offers `lean`). This works because the patched template accepts `lean` and maps other clients' effort tiers (`max`/`high` → `xhigh`, `minimal` → `low`, [contributed by helge](https://forums.developer.nvidia.com/t/380257/10)); any client sending an unmapped tier would get a 500 on the stock template.
4. **Mid-conversation system messages**: some agent clients inject system messages after turn 1, and opencode 1.19.4 sends two before the first user message; the stock template raises `System message must be at the beginning`. Patched to render them as `<system-reminder>` blocks, on every lane whose template raises it: the 27B, the two flash lanes and, since v1.40.2, Ornith.
5. **Vision declared**: `attachment` + `modalities` are set, so image attachments and on-disk image reads work end to end (the model is natively multimodal).
5. **Vision declared**: `attachment` + `modalities` are set, so image attachments and on-disk image reads work end to end (the model is natively multimodal). The two Liquid AI lanes read no image, and their providers declare text only.
On service installs the generated config points at the **keepalive proxy port** (`PORT+1`), not the server directly, and that is deliberate: SGLang buffers tool-call arguments while they stream (127 s of measured silence on one 400-line file write, at native context), and opencode drops a stream after roughly 140-180 s without a real chunk. The proxy (`qwen38-keepalive.service`, vendored `keepalive-proxy.py`) fills those silences with protocol-correct keepalives, at SSE event boundaries only, and makes sure a client that gives up does not leave a generation running (v6.14: it names every request with `x-override-rid` so it can abort one that has not produced anything yet, aborts before closing the socket, and drains the answer where the engine offers no rid to abort with). Since v1.22.5 (proxy v6.31) it also keeps a stream the engine has not started: SGLang sends a stream's headers with its first chunk, after the queue and the prefill, and opencode 1.18.32 gives up on a response whose headers have not come in 300 s (`headerTimeout`, its default) and sends the request again, while the engine keeps the one it gave up on queued. The proxy opens such a stream itself after 10 s and keeps it alive until the engine answers, and a caller that leaves before then has its request ended in the engine. Several agents at once (opencode's sub-agents, or several sessions) share the lane's KV pool, and past it every turn computes its whole prompt again: keep the sum of their contexts under the pool ([flash-lane.md](flash-lane.md#several-agents-at-once-their-contexts-share-one-pool) has the measurements). With `./install.sh --no-service` there is no proxy: the config then points at the server directly, and huge single-file writes may abort. One more caveat, measured: SGLang's `--api-key` only accepts `Authorization: Bearer`, **not** `x-api-key`.
+1
View File
@@ -34,6 +34,7 @@ The patched template reads `reasoning_effort`: `lean` is its default (`xhigh` on
- **Kolibri.** Its template reads `none`, `low`, `medium` or `high`, and vLLM hands it the top-level field: pi sends it, with `thinkingLevelMap` taking `off` to `none` (with no field Kolibri reasons at `high`), `minimal` to `low` and `xhigh` to `high`, and its level starts at `high`, what Kolibri does unasked. omp offers `none` as `minimal` (`reasoningEffortMap`), and starts at `high` too.
- **Nemotron** (Bolt, and Super VL, whose template reads the same two). Its template reads `enable_thinking` and `medium_effort`, and no effort level: pi sends the top-level field as for Kolibri (`thinkingLevelMap` taking `off` to `none`, `minimal` to `low` and `xhigh` to `high`), its level starts at `high`, Bolt's full reasoning, and the proxy says each level in the template's words (v6.40): `none` and `minimal` turn the reasoning off, `low` and `medium` ask its shorter one, `high` its default. omp sends its pick in `chat_template_kwargs.reasoning_effort`, which the proxy translates the same way.
- **Ornith 1.5 122B.** Its template reads `enable_thinking` alone, and no effort level: pi sends the top-level field, `thinkingLevelMap` taking `off` to `none` and its other levels as they are, its level starts at `high`, the full reasoning Ornith does unasked, and the proxy says each level in the template's words (v6.45): `none` and `minimal` turn the reasoning off, every other level keeps it whole. omp offers `high` and `minimal`, its `minimal` sent as `none` (`reasoningEffortMap`), starts at `high`, and sends its pick in `chat_template_kwargs.reasoning_effort`, which the proxy translates the same way.
- **Liquid AI LFM3.** Its template reads `enable_thinking` alone (true by default), and no effort level, as Ornith's does: pi offers `off` and `high` alone, the two states the model holds (`thinkingLevelMap` taking `off` to `none` and every other level to `null`, which pi hides), sends the top-level field, its level starts at `high`, the reasoning LFM3 does unasked, and the proxy says each level in the template's words as on Ornith (v6.61): `none` and `minimal` turn the reasoning off, every other level keeps it. omp offers `high` and `minimal`, its `minimal` sent as `none` (`reasoningEffortMap`), starts at `high`, and sends its pick in `chat_template_kwargs.reasoning_effort`, which the proxy translates the same way. Liquid AI's other lane, LFM2.5 24B-A2B, reasons before every answer, and its template reads no switch and no level: pi offers `high` alone, starts there and sends no effort field (`supportsReasoningEffort: false`), and omp gets `high` as its one effort and its default, though omp 18.4.9 offers `off` and `auto` beside a reasoning model's efforts whatever its file says. What pi shows on these two lanes was read in pi 1.2.0's source (`getSupportedThinkingLevels`). No pi or omp session has run on either lane yet.
- **omp.** Its picker goes through the same enum, and `compat.reasoningEffortMap` translates the pick for the provider: the generator gives it `efforts: [minimal, low, medium, xhigh]` with `minimal` mapped to `lean`, and as its default the installed template's own: `minimal` (`lean`), or `xhigh` on a box installed with `LEAN_DEFAULT=0` and on the Qwen3.8 Flash-Next FP4-Local lane installed with `FLASH_LOCAL_EFFORT=xhigh` (pi-gen.py reads the template beside the configs it writes and, for that lane, the choice its installer keeps there; omp sends its default level on every request), the same ladder (`lean/low/medium/xhigh`) the artifact's `variants` declare; `off` lands on `lean`, and a level the list does not hold on the nearest one below it (`high` on `medium`, `max` on `xhigh`). `compat.qwenTemplateReasoningEffort` routes the mapped level onto `chat_template_kwargs.reasoning_effort` (it ships on by default for Qwen 3.8+ ids on LM Studio, llama.cpp discovery and vLLM only, none of them this proxy's provider id: without it the picker moved and nothing was sent), and `compat.thinkingFormat: qwen-chat-template`, omp's dialect for vLLM and SGLang, sends it there alone: omp's default dialect also sent a top-level `lean`, a 400 on every request at the default level until the proxy dropped that copy (v6.30, v1.22.1; checked with omp in its default dialect, a 400 through v6.29 and an answer through v6.30).
`images.autoResize` (on) plus a generated 1568×1568 / 512 KiB per-model `resize` cap keep an attachment from blowing the prompt past the lane. Compaction follows the artifact: `keepRecentTokens` = opencode's `preserve_recent_tokens`, and each lane's `reserveTokens` = that lane's output cap.