Dashboard › opencode › Distillation
a1eadc1f-e0a0-434e-81ba-3958ce9bc5da["lore_tm_v1_cx7MWl0ZQuH_kn1-b1e6hJY71I-ZgrttczAjLrYPczA"]
Date: September 8, 2026
/home/byk/Code/opencode-lore/packages/opencode/test/index.test.ts lines 11-51 define createMockClient() and initPlugin(): the mock stubs tui.showToast plus session.get, session.list, session.create, session.messages, session.message, and session.prompt; plugin initialization uses a timestamped __tmp_plugin_${Date.now()}__ directory, project ID "test", serverUrl: new URL("http://localhost:0"), and a recursive forced cleanup./home/byk/Code/opencode-lore/packages/opencode/test/index.test.ts lines 54-65 test that the LorePlugin config hook disables built-in compaction by setting cfg.compaction exactly to { auto: false, prune: false }./home/byk/Code/opencode-lore/packages/opencode/test/index.test.ts lines 67-91 test registration of 3 hidden worker agents: "lore-distill" with { mode: "subagent", hidden: true, description: "Lore memory distillation worker" }; "lore-curator" with { mode: "subagent", hidden: true, description: "Lore knowledge curator worker" }; and "lore-query-expand" with { mode: "subagent", hidden: true, description: "Lore query expansion worker" }.hidden only for agents in mode: "subagent"; every internal worker must therefore explicitly use mode: "subagent" rather than "all" or "primary", so it never surfaces in the host project's agent/skill picker.