loki-mode 8.6.0 → 8.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,15 +37,47 @@ interact and why hitting one is a failure rather than a success.
37
37
 
38
38
  | Variable | Default | Effect |
39
39
  |---|---|---|
40
- | `LOKI_PROVIDER` | `claude` | `claude`, `cline`, `codex`, or `aider`. |
40
+ | `LOKI_PROVIDER` | `claude` | `claude`, `cline`, `codex`, `aider`, or `opencode`. |
41
+ | `LOKI_SESSION_MODEL` | `medium` | The capability tier for the run: `small`, `medium`, or `high`. See below. |
41
42
  | `LOKI_MAX_TIER` | unlimited | Caps model tier, so a run cannot escalate past what you are willing to pay for. |
42
- | `LOKI_TIER` | per-phase default | Forces a specific tier for the run. |
43
- | `LOKI_SESSION_MODEL` | provider default | Pins the session model explicitly. |
44
43
  | `LOKI_MODEL_OVERRIDE` | unset | Overrides the resolved model outright. |
44
+ | `LOKI_TIER` | `oss` | **Not a model setting.** The open-core licensing seam. Leave it unset. |
45
+
46
+ ### Picking a model without naming one
47
+
48
+ You do not need to know any vendor's model names. Ask for a capability class
49
+ and each provider supplies its own latest model in that class:
50
+
51
+ | Tier | Means | Claude | Codex | Cline / Aider / OpenCode |
52
+ |---|---|---|---|---|
53
+ | `small` | cheap and fast | `claude-haiku-4-5` | account default | `deepseek-chat` |
54
+ | `medium` | the workhorse (**default**) | `claude-sonnet-5` | account default | `deepseek-v3.2` |
55
+ | `high` | the most capable | `claude-opus-4-8` | account default | `deepseek-v3.2` |
56
+
57
+ ```bash
58
+ LOKI_SESSION_MODEL=small loki start ./prd.md # or: loki start --session-model small ./prd.md
59
+ ```
60
+
61
+ `medium` is the default and resolves to the same model today's builds already
62
+ use, so setting it explicitly changes nothing. The older spellings
63
+ (`fast`/`development`/`planning`, and the Claude aliases `haiku`/`sonnet`/
64
+ `opus`) still work and are unchanged.
65
+
66
+ **To see what a tier actually resolves to on your machine, run `loki provider
67
+ models`.** It prints the dispatched model per tier per provider along with
68
+ which environment variable set it, so you can verify what you will really get
69
+ rather than trusting the table above. Codex deliberately shows a provider
70
+ default: it sends no `--model` flag and lets Codex pick a model appropriate to
71
+ your account, because a hardcoded name breaks ChatGPT-account users.
72
+
73
+ Override a single tier for one provider with `LOKI_<PROVIDER>_MODEL_<TIER>`
74
+ (for example `LOKI_CLAUDE_MODEL_FAST=claude-haiku-4-5`), or every tier at once
75
+ with `LOKI_<PROVIDER>_MODEL`.
45
76
 
46
77
  `LOKI_MAX_TIER` is the cost control worth knowing: it bounds escalation, while
47
78
  `LOKI_BUDGET_LIMIT` bounds total spend. They answer different questions and are
48
- usefully set together.
79
+ usefully set together. Note that `LOKI_MAX_TIER` is a **ceiling** and
80
+ `LOKI_SESSION_MODEL` is a **choice** -- the ceiling still clamps the choice.
49
81
 
50
82
  ## Output volume
51
83