loki-mode 11.120.0 → 11.121.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.
Files changed (182) hide show
  1. package/.github/actions/issue-to-pr/action.yml +1 -1
  2. package/README.md +3 -2
  3. package/SKILL.md +18 -30
  4. package/VERSION +1 -1
  5. package/agents/custom_agents.py +1 -1
  6. package/api/openapi.yaml +3 -7
  7. package/api/routes/health.ts +5 -10
  8. package/api/routes/sessions.ts +12 -3
  9. package/api/server.js +6 -2
  10. package/api/services/cli-bridge.ts +1 -1
  11. package/api/types/api.ts +3 -5
  12. package/assets/welcome/welcome.html +1 -1
  13. package/autonomy/completion-council.sh +3 -56
  14. package/autonomy/context-tracker.py +10 -25
  15. package/autonomy/council-v2.sh +0 -28
  16. package/autonomy/grill.sh +3 -25
  17. package/autonomy/lib/chat.sh +3 -6
  18. package/autonomy/lib/claude-flags.sh +1 -1
  19. package/autonomy/lib/contract-scaffold/README.md +2 -2
  20. package/autonomy/lib/cost-summary.py +2 -2
  21. package/autonomy/lib/done-recognition.sh +1 -1
  22. package/autonomy/lib/efficiency_cost.py +1 -1
  23. package/autonomy/lib/effort_estimator.py +0 -4
  24. package/autonomy/lib/help-core.sh +6 -4
  25. package/autonomy/lib/iteration_attribution.py +1 -1
  26. package/autonomy/lib/mcp-config.sh +7 -34
  27. package/autonomy/lib/os_sandbox.py +2 -5
  28. package/autonomy/lib/outcome_ledger.py +1 -1
  29. package/autonomy/lib/project-graph.sh +1 -1
  30. package/autonomy/lib/proof-generator.py +1 -2
  31. package/autonomy/lib/scaffold-hook.sh +3 -7
  32. package/autonomy/lib/setup-requirements.json +1 -4
  33. package/autonomy/lib/skill-link-heal.sh +1 -1
  34. package/autonomy/lib/telemetry-schema.json +3 -3
  35. package/autonomy/lib/wiki_llm.py +1 -4
  36. package/autonomy/loki +95 -336
  37. package/autonomy/migration-agents.sh +1 -1
  38. package/autonomy/notification-checker.py +2 -2
  39. package/autonomy/prd-checklist.sh +1 -1
  40. package/autonomy/provider-offer.sh +7 -11
  41. package/autonomy/quickstart.sh +3 -11
  42. package/autonomy/route.sh +6 -6
  43. package/autonomy/run.sh +79 -348
  44. package/autonomy/sandbox.sh +8 -39
  45. package/autonomy/setup-wizard.sh +5 -5
  46. package/bin/loki +34 -25
  47. package/completions/_loki +4 -4
  48. package/completions/loki.bash +2 -4
  49. package/dashboard/__init__.py +1 -1
  50. package/dashboard/api_start.py +36 -6
  51. package/dashboard/api_v2.py +1 -1
  52. package/dashboard/build_supervisor.py +1 -5
  53. package/dashboard/server.py +18 -26
  54. package/docs/ARCHITECTURE.md +13 -14
  55. package/docs/CLI-REFERENCE.md +1 -1
  56. package/docs/COMPARE-OPENCODE.md +7 -6
  57. package/docs/COMPONENTS.md +6 -11
  58. package/docs/DOCKER.md +11 -10
  59. package/docs/INSTALLATION.md +5 -8
  60. package/docs/OPEN-CORE-BOUNDARY.md +1 -1
  61. package/docs/PRIVACY.md +2 -2
  62. package/docs/QUICKSTART.md +2 -2
  63. package/docs/TOOLS.md +3 -3
  64. package/docs/air-gapped.md +3 -3
  65. package/docs/alternative-installations.md +20 -10
  66. package/docs/cost-controls.md +0 -3
  67. package/docs/dev/architecture-reference.md +9 -13
  68. package/docs/dev/project-structure.md +1 -4
  69. package/docs/environment-variables.md +8 -10
  70. package/docs/exit-codes.md +5 -5
  71. package/docs/network-security.md +3 -6
  72. package/docs/v10/GUIDE.md +45 -34
  73. package/integrations/openclaw/README.md +1 -1
  74. package/integrations/openclaw/SKILL.md +3 -3
  75. package/learning/emit.sh +1 -1
  76. package/loki-ts/data/child-env.json +0 -10
  77. package/loki-ts/data/finding-schema.json +2 -2
  78. package/loki-ts/dist/cockpit.js +1 -1
  79. package/loki-ts/dist/loki.js +1348 -1354
  80. package/magic/core/debate.py +4 -11
  81. package/magic/core/generator.py +5 -18
  82. package/mcp/__init__.py +1 -1
  83. package/mcp/lsp_proxy.py +3 -3
  84. package/mcp/server.py +1 -1
  85. package/package.json +2 -3
  86. package/packages/control-plane/dist/ask-tools-server.js +1 -3
  87. package/packages/control-plane/dist/server.js +171 -395
  88. package/packages/control-plane/src/ask/invoke.ts +5 -13
  89. package/packages/control-plane/src/ask/parse.ts +3 -25
  90. package/packages/control-plane/src/ask/worker.ts +1 -2
  91. package/packages/control-plane/src/db/fixture-cleanup.ts +1 -1
  92. package/packages/control-plane/src/server/routes/ask.ts +3 -2
  93. package/packages/control-plane/src/server/routes/cost_ledger.ts +0 -1
  94. package/packages/control-plane/src/server/routes/providers.ts +4 -9
  95. package/packages/control-plane/src/server/spawn.ts +8 -4
  96. package/packages/control-plane/ui/dist/assets/{index-C4nb1aRV.js → index-Dy80VLtj.js} +22 -22
  97. package/packages/control-plane/ui/dist/index.html +1 -1
  98. package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
  99. package/providers/loader.sh +23 -4
  100. package/providers/model_catalog.json +2 -104
  101. package/providers/models.sh +10 -11
  102. package/providers/opencode.sh +3 -6
  103. package/references/quality-control.md +1 -1
  104. package/schemas/loki-yaml.schema.json +1 -1
  105. package/skills/model-selection.md +27 -56
  106. package/skills/providers.md +54 -221
  107. package/skills/quality-gates.md +11 -41
  108. package/skills/testing.md +1 -1
  109. package/skills/troubleshooting.md +1 -2
  110. package/src/integrations/github/action-handler.js +2 -4
  111. package/src/protocols/tools/start-project.js +1 -1
  112. package/tools/calibration-audit.py +1 -1
  113. package/tools/index-codebase.py +1 -2
  114. package/tools/preflight.sh +2 -2
  115. package/tools/probe-model-catalog.py +1 -13
  116. package/tools/regen-state-machine-refs.py +1 -2
  117. package/tools/token-guard.py +1 -1
  118. package/web-app/dist/assets/{AdminPage-D1_vz1LQ.js → AdminPage-BfxkhFXl.js} +1 -1
  119. package/web-app/dist/assets/{Avatar-BefQj_9m.js → Avatar-xV4rK0ps.js} +1 -1
  120. package/web-app/dist/assets/{Badge-BcAowN-N.js → Badge-Ds_E82Ka.js} +1 -1
  121. package/web-app/dist/assets/{Button-BeVwFkYh.js → Button-BXAwY0ni.js} +1 -1
  122. package/web-app/dist/assets/{CockpitPage-Q-sO8Psm.js → CockpitPage-y3R9sk_M.js} +1 -1
  123. package/web-app/dist/assets/ComparePage-BGbCno4C.js +1 -0
  124. package/web-app/dist/assets/{ErrorBoundary-DdIh2DlF.js → ErrorBoundary-DGqkzHdy.js} +1 -1
  125. package/web-app/dist/assets/{EvidenceReceiptPanel-cf2Jhgl3.js → EvidenceReceiptPanel-Bj57TWoJ.js} +1 -1
  126. package/web-app/dist/assets/{GitHubIssuesPanel-SfgkosoM.js → GitHubIssuesPanel-CVbtUCRI.js} +1 -1
  127. package/web-app/dist/assets/{GitHubPRsPanel-DsUqn99r.js → GitHubPRsPanel-DuNxI0k8.js} +1 -1
  128. package/web-app/dist/assets/{HomePage-C6PCzqqg.js → HomePage-DogFuRvt.js} +2 -2
  129. package/web-app/dist/assets/{LoginPage-Bqci5QVa.js → LoginPage-U-r-YNKC.js} +1 -1
  130. package/web-app/dist/assets/{MagicPage-NO5PIrOb.js → MagicPage-C5iDqK4d.js} +1 -1
  131. package/web-app/dist/assets/{MetricsPage-B0oveHbr.js → MetricsPage-COVYOGfr.js} +1 -1
  132. package/web-app/dist/assets/{NotFoundPage-CDh2DiQC.js → NotFoundPage-CZii6Z0s.js} +1 -1
  133. package/web-app/dist/assets/{ProjectPage-CrJ_t9m_.js → ProjectPage-QwOZzVqj.js} +25 -25
  134. package/web-app/dist/assets/{ProjectsPage-UPhA-lpV.js → ProjectsPage-BcxVfXVW.js} +1 -1
  135. package/web-app/dist/assets/SettingsPage-CBY9JiAE.js +10 -0
  136. package/web-app/dist/assets/{ShowcasePage-sZmG4qo4.js → ShowcasePage-D1YPQOp7.js} +1 -1
  137. package/web-app/dist/assets/SystemSettingsPage-DcpAC9Lg.js +1 -0
  138. package/web-app/dist/assets/{TeamsPage-DFuLa1I9.js → TeamsPage-BTiJPkD4.js} +1 -1
  139. package/web-app/dist/assets/{TemplatesPage-C_U8lRMD.js → TemplatesPage-LUa3bH-A.js} +1 -1
  140. package/web-app/dist/assets/{TerminalOutput-DdU-3V0-.js → TerminalOutput-BM8LH-RG.js} +1 -1
  141. package/web-app/dist/assets/{activity-BwXV9-sA.js → activity-mZHuLoR5.js} +1 -1
  142. package/web-app/dist/assets/{bell-DF148FeB.js → bell-BR_y_nMB.js} +1 -1
  143. package/web-app/dist/assets/{bot-BM1t71_O.js → bot-Ct3caGMX.js} +1 -1
  144. package/web-app/dist/assets/{check-DHJPb450.js → check-DuQpq9PN.js} +1 -1
  145. package/web-app/dist/assets/{chevron-left-DZIgwXb6.js → chevron-left-CWSfVWba.js} +1 -1
  146. package/web-app/dist/assets/{circle-alert-31lHNmy0.js → circle-alert-C7TCj9Jm.js} +1 -1
  147. package/web-app/dist/assets/{clock-D4QAxoCy.js → clock-BFsj3bRT.js} +1 -1
  148. package/web-app/dist/assets/{cloud-Dd2iypzJ.js → cloud-78sYPXff.js} +1 -1
  149. package/web-app/dist/assets/{code-xml-CnUOPwx8.js → code-xml-DuwBCDz-.js} +1 -1
  150. package/web-app/dist/assets/{database-Dhpbplpo.js → database-CwRTYKVV.js} +1 -1
  151. package/web-app/dist/assets/{dollar-sign-DCt7L7Pk.js → dollar-sign-COXAsjgd.js} +1 -1
  152. package/web-app/dist/assets/{file-code-corner-D2SPiEH7.js → file-code-corner-A8LPVBBy.js} +1 -1
  153. package/web-app/dist/assets/{file-plus-cCrpp-pe.js → file-plus-D9IXE7YW.js} +1 -1
  154. package/web-app/dist/assets/{globe-Cn6TYK_z.js → globe-Ce6xgdLR.js} +1 -1
  155. package/web-app/dist/assets/{hammer-sMLkpUw2.js → hammer-Dtq836Al.js} +1 -1
  156. package/web-app/dist/assets/{index-Dgb8Kves.js → index-uce16-nn.js} +16 -16
  157. package/web-app/dist/assets/{layers-DuPguIVU.js → layers-BOQdqOXk.js} +1 -1
  158. package/web-app/dist/assets/{loader-circle-BBhsXs18.js → loader-circle-D3y4SHAn.js} +1 -1
  159. package/web-app/dist/assets/{lock-n-qJvU_o.js → lock-miFONHLo.js} +1 -1
  160. package/web-app/dist/assets/{package-cDxKfjAD.js → package-ckZFIHTG.js} +1 -1
  161. package/web-app/dist/assets/{plus-COk5sQxp.js → plus-COJKSbOp.js} +1 -1
  162. package/web-app/dist/assets/{refresh-cw--VKVhvpo.js → refresh-cw-rPt-Oa4a.js} +1 -1
  163. package/web-app/dist/assets/{rotate-ccw-DvZ6KExW.js → rotate-ccw-Dy50K31A.js} +1 -1
  164. package/web-app/dist/assets/{scroll-text-HRyHuQUy.js → scroll-text-CbczPkkS.js} +1 -1
  165. package/web-app/dist/assets/{server-CoZSZtid.js → server-HkfTEf2O.js} +1 -1
  166. package/web-app/dist/assets/{shield-alert--WkXdHlN.js → shield-alert-DjKF0yba.js} +1 -1
  167. package/web-app/dist/assets/{thumbs-up-YeW2Lb8g.js → thumbs-up-aObjUDQm.js} +1 -1
  168. package/web-app/dist/assets/{trash-2-DuhNrOPo.js → trash-2-CQfI6Z-c.js} +1 -1
  169. package/web-app/dist/assets/{trending-down-55EMrZu6.js → trending-down-CP7J5aPV.js} +1 -1
  170. package/web-app/dist/assets/{trending-up-BaUDEQ-n.js → trending-up-CTJHoPnm.js} +1 -1
  171. package/web-app/dist/assets/{upload-BrHq6BXI.js → upload-i1zoXd2k.js} +1 -1
  172. package/web-app/dist/assets/{usePolling-BEtK-_qo.js → usePolling-CZG-IV1Y.js} +1 -1
  173. package/web-app/dist/assets/{user-DL5XlCBR.js → user-CJwbwmPE.js} +1 -1
  174. package/web-app/dist/index.html +1 -1
  175. package/web-app/server.py +26 -14
  176. package/autonomy/lib/codex-usage.py +0 -174
  177. package/providers/aider.sh +0 -191
  178. package/providers/cline.sh +0 -176
  179. package/providers/codex.sh +0 -408
  180. package/web-app/dist/assets/ComparePage-CiJ3FrSl.js +0 -1
  181. package/web-app/dist/assets/SettingsPage-DKO1LhLq.js +0 -10
  182. package/web-app/dist/assets/SystemSettingsPage-Drvx9eXK.js +0 -1
package/docs/v10/GUIDE.md CHANGED
@@ -23,7 +23,7 @@ before the routing decision, so these all run on Loki 10:
23
23
 
24
24
  ```
25
25
  loki start prd.md loki start --no-pr prd.md
26
- loki start owner/repo#123 loki start --provider codex owner/repo#123
26
+ loki start owner/repo#123 loki start --provider opencode owner/repo#123
27
27
  loki start "fix the login bug" loki start --no-pr "fix the login bug"
28
28
  loki start fixit loki quick -v "fix the login bug"
29
29
  ```
@@ -43,8 +43,14 @@ empty folder they create the repository first.
43
43
 
44
44
  A flag Loki 10 does not support (for example `--simple`, `--parallel`,
45
45
  `--github`, `--sandbox`, `--max-iterations`) is refused with exit 2 and a line
46
- naming its replacement. A provider other than claude, codex, cline, aider or
47
- opencode, or a machine with no working bun, also exits 2 with the fix.
46
+ naming its replacement. A provider other than claude or opencode, or a
47
+ machine with no working bun, also exits 2 with the fix. The removed providers
48
+ (codex, cline, aider, gemini) exit 2 with one line, from `--provider` or
49
+ `LOKI_PROVIDER`, for every command:
50
+
51
+ ```
52
+ loki: provider 'codex' is no longer supported. Supported providers: claude (Claude Code CLI, or an Anthropic API key through the Agent SDK) and opencode (any model, including OpenRouter via OPENROUTER_API_KEY). Switch with --provider claude or --provider opencode, or unset LOKI_PROVIDER.
53
+ ```
48
54
 
49
55
  The previous loop (autonomy/run.sh) runs only when you pass `--engine legacy`
50
56
  or set `LOKI_ENGINE=legacy` (the flag wins over the variable), or when the PRD
@@ -101,8 +107,9 @@ loki quick "fix the login redirect loop"
101
107
  ```
102
108
 
103
109
  If bun is not installed, or LOKI_PROVIDER names a provider the v10 engine
104
- has no invoker for (anything but claude, codex, cline, aider, opencode), these entry
105
- points fall back to the legacy engine with a one-line notice instead of failing.
110
+ has no invoker for (anything but claude or opencode), these entry points exit 2
111
+ with the fix; a removed provider (codex, cline, aider, gemini) prints the
112
+ migration line above.
106
113
 
107
114
  Issue refs work the same way:
108
115
 
@@ -196,8 +203,8 @@ Define child agents as markdown with YAML frontmatter in `.loki/agents/<name>.md
196
203
  over a user agent of the same name. The body is the system prompt.
197
204
 
198
205
  Frontmatter keys: `name` (must equal the file name without `.md`),
199
- `description` (required), `model`, `provider` (`claude` by default; `codex`,
200
- `cline`, `aider` or `opencode`), `tools` (allow list), `deny` (deny list) and
206
+ `description` (required), `model`, `provider` (`claude` by default, or
207
+ `opencode`), `tools` (allow list), `deny` (deny list) and
201
208
  `permission` (`plan` default, `edit` or `full`).
202
209
 
203
210
  ```
@@ -246,7 +253,7 @@ loki doctor --fix # create state dirs and a default config; prints exact com
246
253
  loki config list # also: get <key>, set <key> <value>, path
247
254
  ```
248
255
 
249
- `loki setup` flags: `--provider claude|codex|cline|aider|opencode`,
256
+ `loki setup` flags: `--provider claude|opencode`,
250
257
  `--model`, `--budget USD` and `--global`. `loki doctor --fix` never installs
251
258
  system packages and never runs sudo. Prerequisites are in
252
259
  [INSTALLATION.md](../INSTALLATION.md).
@@ -404,38 +411,24 @@ receipt with no signing key configured (or a key that failed to load) reads
404
411
  | Provider | Cost measured | Spend cap enforced | Guardrail scan | Kill blocking enforced |
405
412
  |----------|---------------|--------------------|----------------|------------------------|
406
413
  | claude | yes (provider-reported) | yes | native | yes |
407
- | codex | yes (parsed or estimated) | yes | yes | no |
408
- | cline | yes (parsed or estimated) | yes | yes | no |
409
- | aider | yes (reported or estimated) | yes | yes | no |
410
414
  | opencode | no | no (cost not measured); wall clock limit still applies | yes | no |
411
415
 
412
- Claude Code is the default and the only Tier-1 provider; the others are
413
- optional. Select one with `--provider <name>` or `LOKI_PROVIDER`.
414
-
415
- ### Cost and the spend cap on non-Claude providers
416
-
417
- For codex, cline and aider, engine10 reads token usage from the CLI output
418
- (aider's `Cost: $X session` line is used as-is). If the CLI prints no usage,
419
- cost is estimated from prompt and response sizes (about 4 characters per
420
- token) with the built-in price table (`loki-ts/src/providers/price_table.ts`).
421
- A model not in the table prices at a mid-range default of $2 per 1M input
422
- tokens and $10 per 1M output tokens. Estimated figures carry `estimated: true`
423
- and `cost_basis` (`provider-tokens` or `size-estimate`) on the `cost` event in
424
- `events.jsonl`, and the efficiency record has `cost_source: "estimated"`.
425
- Estimates are approximate. The cap in `--max-cost` applies unchanged. A run
426
- with no prompt and no output stays `not measured`, never `$0.00`.
416
+ Claude Code is the default and the only Tier-1 provider. It runs through the
417
+ `claude` CLI, or, for API-key users, through the Anthropic Agent SDK
418
+ (`@anthropic-ai/claude-agent-sdk`) with `ANTHROPIC_API_KEY`; both are
419
+ `--provider claude`. opencode is the optional model-agnostic provider. Select
420
+ one with `--provider <name>` or `LOKI_PROVIDER`. codex, cline, aider and gemini
421
+ were removed.
427
422
 
428
423
  ### Guardrails on non-Claude providers
429
424
 
430
- With codex, cline, aider or opencode, engine10 enforces the wall-clock limit
425
+ With opencode, engine10 enforces the wall-clock limit
431
426
  and `BUDGET_LIMIT` (for example `BUDGET_LIMIT=5 loki start prd.md`) by killing
432
427
  the process group. After each iteration it scans the diff and reverts and
433
428
  fails the iteration on mass deletion of tracked files, `.git/config` changes,
434
429
  new git hooks, and symlinks or paths outside the project (a `guard.violation`
435
- event). Native flags are used where the CLI has them: codex runs with
436
- `--sandbox workspace-write`, aider with `--no-auto-commits`. Cline and
437
- opencode have no sandbox flag. The scan is post-hoc rather than inline, so
438
- receipts still list `kill blocking not enforced` for these providers.
430
+ event). opencode has no sandbox flag. The scan is post-hoc rather than
431
+ inline, so receipts still list `kill blocking not enforced` for opencode.
439
432
 
440
433
  For opencode, a run's Cost line reads `not measured` and the NOT PROVEN line
441
434
  adds the literal entry `kill blocking not enforced`
@@ -446,14 +439,32 @@ engine10 provider (`loki-ts/src/runner/provider_opencode.ts`): install it with
446
439
  `LOKI_OPENCODE_MODEL` (for example `openrouter/deepseek/deepseek-v3.2`; unset
447
440
  uses opencode's own default), passes extra flags from `LOKI_OPENCODE_FLAGS`,
448
441
  and honors `LOKI_OPENCODE_CLI` for the binary path. `LOKI_HOST_GUARD=1` is
449
- incompatible with non-Claude providers.
442
+ incompatible with opencode.
443
+
444
+ #### opencode with OpenRouter
445
+
446
+ opencode reads `OPENROUTER_API_KEY` from the environment (or stores it once
447
+ with `opencode auth login`, choosing OpenRouter). With the key set,
448
+ `opencode models openrouter` lists the OpenRouter models as
449
+ `openrouter/<vendor>/<model>`; without it opencode reports
450
+ `Provider not found: openrouter`. Loki passes the key through unchanged and
451
+ runs `opencode run --auto -m <model> <prompt>`:
452
+
453
+ ```
454
+ export OPENROUTER_API_KEY=sk-or-...
455
+ loki start --provider opencode --model openrouter/deepseek/deepseek-v3.2 ./prd.md
456
+ LOKI_OPENCODE_MODEL=openrouter/<vendor>/<model> loki start --provider opencode ./prd.md
457
+ ```
458
+
459
+ With `--provider opencode`, any `--model` value (including `openrouter/...`)
460
+ becomes opencode's `-m` model.
450
461
 
451
462
  ### Model routes and local models
452
463
 
453
464
  To run OpenRouter or a local model through the Claude harness, so every
454
465
  Tier-1 control (cost, kill blocking, receipts) still applies, set
455
- `LOKI_MODEL_ROUTE=<kind>/<id>` before `loki start`. Selection is by
456
- environment variable; `loki start` has no `--model` flag.
466
+ `LOKI_MODEL_ROUTE=<kind>/<id>` before `loki start`, or pass
467
+ `--model <kind>/<id>` with `--provider claude` (the default).
457
468
 
458
469
  ```
459
470
  LOKI_MODEL_ROUTE=ollama/qwen3-coder loki start prd.md
@@ -79,7 +79,7 @@ Example pipeline:
79
79
 
80
80
  | Env Var | Description | Default |
81
81
  |---------|-------------|---------|
82
- | LOKI_PROVIDER | AI provider (claude/codex/gemini) | claude |
82
+ | LOKI_PROVIDER | AI provider (claude/opencode) | claude |
83
83
  | LOKI_BUDGET_LIMIT | Cost limit in USD | unlimited |
84
84
  | LOKI_MAX_PARALLEL_AGENTS | Max concurrent agents | 10 |
85
85
  | LOKI_COMPLEXITY | Force complexity tier (simple/standard/complex) | auto |
@@ -13,7 +13,7 @@ description: "Launch Loki Mode autonomous SDLC agent. Handles PRD-to-deployment
13
13
 
14
14
  ## Prerequisites
15
15
  - `loki` CLI installed on the host (via `npm install -g loki-mode` or Homebrew)
16
- - One of: Claude Code, Codex CLI, or Gemini CLI installed
16
+ - One of: Claude Code or opencode installed
17
17
  - Corresponding API key set (ANTHROPIC_API_KEY, OPENAI_API_KEY, or GOOGLE_API_KEY)
18
18
 
19
19
  ## How to invoke
@@ -28,7 +28,7 @@ Key flags:
28
28
  - `--bg`: Background mode (session outlives the tool call)
29
29
  - `--yes`: Skip confirmation prompts
30
30
  - `--no-dashboard`: Avoid port conflicts in sandboxed environments
31
- - `--provider <claude|codex|gemini>`: Select AI provider (default: claude)
31
+ - `--provider <claude|opencode>`: Select AI provider (default: claude)
32
32
  - `--budget <amount>`: Set cost limit in USD (auto-pause when exceeded)
33
33
 
34
34
  ### Monitor progress
@@ -42,7 +42,7 @@ The JSON output contains:
42
42
  - `status`: inactive, running, paused, stopped, completed, unknown
43
43
  - `phase`: Current SDLC phase (e.g., BOOTSTRAP, DISCOVERY, ARCHITECTURE, DEVELOPMENT, QA, DEPLOYMENT)
44
44
  - `iteration`: Current iteration number
45
- - `provider`: Which AI provider is active (claude, codex, gemini)
45
+ - `provider`: Which AI provider is active (claude, opencode)
46
46
  - `pid`: Process ID of the running session (null if not running)
47
47
  - `elapsed_time`: Seconds since session start
48
48
  - `dashboard_url`: URL of the web dashboard (null if disabled)
package/learning/emit.sh CHANGED
@@ -48,7 +48,7 @@
48
48
  # Examples:
49
49
  # # User preference signal
50
50
  # ./emit.sh user_preference --source cli --action "provider_selection" \
51
- # --key "provider" --value "claude" --rejected '["codex", "gemini"]'
51
+ # --key "provider" --value "claude" --rejected '["opencode"]'
52
52
  #
53
53
  # # Error pattern signal
54
54
  # ./emit.sh error_pattern --source cli --action "cmd_start" \
@@ -8,16 +8,12 @@
8
8
  "LOKI_CLAUDE_MODEL_FAST",
9
9
  "LOKI_CLAUDE_MODEL_PLANNING",
10
10
  "LOKI_CLAUDE_TASK_BUDGET",
11
- "LOKI_CODEX_MODEL",
12
- "LOKI_CODEX_REASONING_EFFORT",
13
- "LOKI_CODEX_WEB_SEARCH",
14
11
  "LOKI_COMPLEXITY",
15
12
  "LOKI_COUNCIL_ENABLED",
16
13
  "LOKI_COUNCIL_SIZE",
17
14
  "LOKI_COUNCIL_TIMEOUT_MS",
18
15
  "LOKI_ENTERPRISE_AUTH",
19
16
  "LOKI_FIRST_PASS_EXCELLENCE",
20
- "LOKI_GEMINI_MODEL",
21
17
  "LOKI_HOST_GUARD",
22
18
  "LOKI_HOST_GUARD_SETTINGS_JSON",
23
19
  "LOKI_LEGACY_BASH",
@@ -41,8 +37,6 @@
41
37
  "LOKI_ADVISOR_SCOPE",
42
38
  "LOKI_AGENTS_PROJECT_DIR",
43
39
  "LOKI_AGENTS_USER_DIR",
44
- "LOKI_AIDER_FLAGS",
45
- "LOKI_AIDER_MODEL",
46
40
  "LOKI_AI_MARKING",
47
41
  "LOKI_ALLOW_AGENT_GITHUB_TOKEN",
48
42
  "LOKI_ALLOW_HAIKU",
@@ -63,12 +57,9 @@
63
57
  "LOKI_CAVEMAN_USER_MODE",
64
58
  "LOKI_CAVEMAN_VERSION",
65
59
  "LOKI_CHANGE_TIER",
66
- "LOKI_CLINE_MODEL",
67
60
  "LOKI_CLI_VERSION",
68
61
  "LOKI_COCKPIT_PROTOCOL",
69
- "LOKI_CODEX_OUTPUT_LAST",
70
62
  "LOKI_COMMIT_WALL",
71
- "LOKI_CONFIDENCE_SPIKE",
72
63
  "LOKI_CONFIRM",
73
64
  "LOKI_CONTRACT",
74
65
  "LOKI_CONTROL",
@@ -268,7 +259,6 @@
268
259
  "LOKI_REVIEW_PROVIDER",
269
260
  "LOKI_REVIEW_STAGGER_MS",
270
261
  "LOKI_REVIEW_TOOL_GUARD",
271
- "LOKI_REVIEW_UNAVAILABLE_BLOCK",
272
262
  "LOKI_RISK_OVERRIDE_REASON",
273
263
  "LOKI_RISK_TIER",
274
264
  "LOKI_ROUTER",
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "$id": "https://loki-mode.dev/schemas/finding.json",
4
4
  "title": "Council Multi-Finding Response",
5
- "description": "Phase C (v7.5.20) JSON contract Claude Code must emit when invoked with --agents <voter-set> and --json-schema. Top-level is an object with a 'findings' array, one entry per dispatched voter. Each finding describes a single voter's verdict on the current iteration. NOTE on reconciliation with the existing AgentVerdict type (loki-ts/src/runner/council.ts:128-133): the schema field 'vote' maps onto AgentVerdict.verdict; the schema field 'confidence' is required at emission time but is NOT carried onto AgentVerdict (validateFinding drops it). Optional 'severity' and 'suggested_action' top-level per-finding fields are likewise dropped from AgentVerdict. The schema is the authoritative shape Claude must produce; AgentVerdict is the simplified shape internal council logic consumes.",
5
+ "description": "Phase C (v7.5.20) JSON contract Claude Code must emit when invoked with --agents <voter-set> and --json-schema. Top-level is an object with a 'findings' array, one entry per dispatched voter. Each finding describes a single voter's verdict on the current iteration. NOTE on reconciliation with the existing AgentVerdict type (loki-ts/src/council/finding_schema.ts): the schema field 'vote' maps onto AgentVerdict.verdict; the schema field 'confidence' is required at emission time but is NOT carried onto AgentVerdict (validateFinding drops it). Optional 'severity' and 'suggested_action' top-level per-finding fields are likewise dropped from AgentVerdict. The schema is the authoritative shape Claude must produce; AgentVerdict is the simplified shape internal council logic consumes.",
6
6
  "type": "object",
7
7
  "additionalProperties": false,
8
8
  "required": ["findings"],
@@ -10,7 +10,7 @@
10
10
  "findings": {
11
11
  "type": "array",
12
12
  "minItems": 1,
13
- "description": "One finding per dispatched council voter. minItems is intentionally kept at 1 because this schema is SHARED with non-council consumers (loki-ts council.ts validateFinding and loki_finding_schema_path). It is NOT raised to the council size, since doing so would break those consumers. The real quorum gate lives in autonomy/lib/voter-agents.sh: the embedded parser judges the verdict against the EXPECTED council size (COUNCIL_SIZE) and forces CONTINUE when fewer voters respond than expected (fail closed). completion-council.sh additionally asserts full quorum (total_members == COUNCIL_SIZE) before honoring a COMPLETE verdict. WAVE13: a degraded response that returns fewer findings than the council size can NEVER produce COMPLETE.",
13
+ "description": "One finding per dispatched council voter. minItems is intentionally kept at 1 because this schema is SHARED with non-council consumers (loki-ts council/finding_schema.ts validateFinding and loki_finding_schema_path). It is NOT raised to the council size, since doing so would break those consumers. The real quorum gate lives in autonomy/lib/voter-agents.sh: the embedded parser judges the verdict against the EXPECTED council size (COUNCIL_SIZE) and forces CONTINUE when fewer voters respond than expected (fail closed). completion-council.sh additionally asserts full quorum (total_members == COUNCIL_SIZE) before honoring a COMPLETE verdict. WAVE13: a degraded response that returns fewer findings than the council size can NEVER produce COMPLETE.",
14
14
  "items": {
15
15
  "type": "object",
16
16
  "additionalProperties": false,
@@ -16,4 +16,4 @@ var BJ=Object.defineProperty;var HJ=(J)=>J;function FJ(J,Q){this[J]=HJ.bind(null
16
16
  `),3}let K=WJ()-2,V=await zJ(G,{protocol:Q,forceText:Z,cols:K});if($)try{let{writeFileSync:q}=await import("fs");q($,V.svg)}catch{}if(V.kind==="image"&&V.data)return process.stdout.write(V.data),0;return process.stderr.write(`FALLBACK ${V.reason||"image unavailable"}
17
17
  `),3}if(import.meta.main)eJ().then((J)=>process.exit(J));export{eJ as main};
18
18
 
19
- //# debugId=3D7AE784FC80270648681F4B5422E5D0
19
+ //# debugId=F0F3C5565646396715416D166377898F