Dashboard › opencode › Distillation
27a17ec6-87e6-4a54-8ab2-077df4e9f14e["lore_tm_v1_OZ-JFk4A3r92ibmBL7JaK2mqtSo5dqA_RMObWIs_f9c","lore_tm_v1_3MvLPzaFvwkTYytKgM_6UGyNI3dVPU-RaecS7rGK41Y","lore_tm_v1_8uQOwjqGp7nVa-66MQyu3I1eBeWGrC6sqEdRokiGCQE","lore_tm_v1_s8rw8TlDo-uMWtfJkzcwXHNJx9O905h0Rq3Kh76o4qo"]
mode: "subagent" with hidden: true, so each one never surfaces in the host project’s agent/skill picker; OpenCode honors hidden only for subagent-mode agents, while its default mode: "all" would expose them in both the primary Tab picker and @ subagent picker./home/byk/Code/opencode-lore/packages/opencode/test/index.test.ts verifies three hidden workers in this exact order: 1. lore-distill — { mode: "subagent", hidden: true, description: "Lore memory distillation worker" }; 2. lore-curator — { mode: "subagent", hidden: true, description: "Lore knowledge curator worker" }; 3. lore-query-expand — { mode: "subagent", hidden: true, description: "Lore query expansion worker" }./home/byk/Code/opencode-lore/packages/opencode/test/index.test.ts also verifies the config hook sets cfg.compaction to { auto: false, prune: false } and preserves an existing "my-agent": { hidden: false, description: "Custom" } while adding Lore workers.applyLoreProviderConfig(cfg, "http://127.0.0.1:3207") pins options.baseURL to http://127.0.0.1:3207/v1 for openai, anthropic, google, and mistral; this prevents an Anthropic /messages versus /v1/messages gateway 404 and handles providers for which resolveSDK() bypasses environment variables or no base-URL environment variable exists.applyLoreProviderConfig deep-merges provider options: an Anthropic defaultHeaders: { "X-Custom": "value" } remains intact while baseURL is pinned to http://127.0.0.1:3207/v1./home/byk/Code/opencode-lore/packages/opencode/test/index.test.ts creates temporary plugin directories named __tmp_plugin_${Date.now()}__, initializes LorePlugin with project ID test, serverUrl: new URL("http://localhost:0"), and removes the directory recursively with force: true during cleanup./home/byk/Code/opencode-lore/packages/opencode/package.json for @loreai/opencode version 0.40.0, an ESM package licensed FSL-1.1-Apache-2.0, described as “Three-tier memory architecture for OpenCode — distillation, not summarization,” authored by BYK.@loreai/opencode uses ./src/index.ts as main, types, and all "." export conditions (types, bun, and default); it ships raw TypeScript with scripts "typecheck": "tsc --noEmit" and "build": "echo '@loreai/opencode ships raw TS — no build step needed'".@loreai/opencode has peer dependency @opencode-ai/plugin >=1.1.0; workspace dependencies @loreai/core and @loreai/gateway; dev dependencies @opencode-ai/plugin ^1.1.39, @opencode-ai/sdk ^1.1.39, and @types/bun ^1.2.0.@loreai/opencode publishes src/, README.md, and LICENSE with public access; repository is git+https://github.com/BYK/loreai.git, directory packages/opencode; keywords are ordered opencode, plugin, memory, agent, distillation, llm.feat/nightly-release-channel, the current changes are unrelated to nightly, and they need a new branch.feat/nightly-release-channel.AGENTS.md content, likely produced by Lore distillation, should be included with the changes.permalink.resolveOrg({ cwd }) first.useTestConfigDir("test-issue-utils-", { isolateProjectRoot: true }) have no DSN in the isolated directory, so resolveOrg({ cwd }) should return null and resolution should fall back to unscoped getIssue; the existing numeric-ID failure test should continue throwing because its mock response has no permalink.resolveOrg({ cwd }) now runs first; with no region cache for an anonymous organization, the DB lookup should not trigger HTTP calls.ResolutionError from ../../../src/lib/errors.js, use setAuthToken("test-token"), cache "my-org" at DEFAULT_SENTRY_URL through setOrgRegion, and use test config directories from useTestConfigDir.404 for issue 123456789 throws ResolutionError, includes the ID and “not found,” avoids “is required,” and suggests the short-ID form project>-123456789; a 500 propagates unchanged rather than becoming ResolutionError./home/byk/Code/opencode-lore/packages/core/test/setup.ts, never the production DB./home/byk/Code/opencode-lore/quality/REVIEW.md.>=22.5, TypeScript, pnpm workspaces, and SQLite in WAL mode with FTS5; the production database is located at ~/.local/share/lore/lore.db.CHANGELOG.md must never be manually edited. Releases are initiated with gh workflow run release.yml -f version=auto or an explicit version such as gh workflow run release.yml -f version=0.23.0./home/byk/Code/opencode-v2-pilot/packages/core/src/config/plugin/agent.ts defines sourceDirectories = ["agent", "agents", "mode", "modes"], decodes current ConfigAgent.Info and legacy ConfigAgentV1.Info, and emits { agents: { [name]: file.primary ? { ...agent, mode: "primary" } : agent } }; /home/byk/Code/opencode-v2-pilot/packages/core/src/config/normalize.ts decodes legacy singular agent and mode, migrates modes to mode: "primary", decodes native plural agents, and diagnoses unsupported singular agent.