Dashboard › opencode-lore › Distillation
2fcc6c5a-aedd-497b-b596-1bb07240c13f["lore_tm_v1_zMh-uEJQyQWntYa1hvhFjVbu3ekf6JkjD3G5MqmRv8o","lore_tm_v1_9Za98NT3D5xQ5myatgK5CAiaDV9_jW_gD6s6m16XID8","lore_tm_v1_hKWKe-QYnVPyRqvg5T_I9zR_4E5s01WX7kQmMSF8u9k","lore_tm_v1_jQPy2REXQ38xTjWLb-J2JfwP05wQyaPGKhfrnEObwmI","lore_tm_v1_Z2lDJiNV28J-6h34cKdpPG-RVqe45Bveglb6RFTRQYg"]
Date: September 16, 2026
lore recall --project /home/byk/Code/opencode-lore --scope project ... or local /ui/search.packages/core/test/setup.tsβnever the production DB.CHANGELOG.md; Craft handles both automatically.pnpm@10.28.0, license FSL-1.1-Apache-2.0, root test script vitest run, build script pnpm -r run build, docs check tsx scripts/generate-config-docs.ts --check && tsx scripts/generate-env-docs.ts --check, social check node scripts/check-social-meta.mjs, formatter oxfmt, and premutation script pnpm --filter @loreai/gateway run bundle.@loreai/core at packages/core/ provides the shared memory engine; @loreai/gateway at packages/gateway/ provides the transparent LLM proxy, lore CLI, and web dashboard; @loreai/opencode at packages/opencode/ is the OpenCode lifecycle adapter using @opencode-ai/plugin; @loreai/pi at packages/pi/ is the Pi coding-agent extension adapter.packages/gateway/src/cli/bin.ts β packages/gateway/src/cli/main.ts (_cli()).packages/core/src/gradient.ts: transform() runs on every message transform, with Layer 0 full passthrough, Layer 1 distilled prefix plus compressed raw content, Layer 2 aggressive tool-output stripping, and Layer 3 emergency compression; limits are dynamically calibrated from real API token counts with model-pricing-aware caps.packages/core/src/curator.ts, periodically producing create/update/delete operations from conversation plus existing entries; 2. regex-based Pattern Extraction in packages/core/src/pattern-extract.ts, running after each distillation without an LLM; 3. File Import in packages/core/src/agents-file.ts, parsing .lore.md markers of the form <!-- lore:UUID --> and upserting into the DB; 4. curator.ts consolidate(), where an LLM merges/trims entries after the count exceeds maxEntries of 25.temporal.store() β temporal_messages SQLite/FTS5; distillation.run() β observer LLM β generation-0 distillations; metaDistill() β reflector LLM β generation-1+ distillations while generation 0 is archived rather than deleted; curator.run() β curator LLM β knowledge; exportLoreFile() β project-root .lore.md; exportToFile() β AGENTS.md pointer; next-session importLoreFile() imports changed .lore.md; forSession() plus formatKnowledge() injects system-prompt knowledge; searchRecall powers recall-tool results.packages/gateway/script/build.ts produces the gateway CJS bundle, script/bundle.ts creates the standalone binary, and packages/core/script/build.ts produces Node.js-compatible CJS output.gh workflow run release.yml -f version=0.23.0.packages/gateway/src/pipeline.ts and packages/gateway/test/openai-responses-recall-aware-stream.test.ts.zkttmwun / commit 05d9998321f5fcd782163bb35c25cf5470de13e9, description fix(responses): close reference lifecycle gaps; parent was wywumkpt / 8063355c, bookmark fix/responses-private-references-v2, description fix(responses): keep item references private. Tree/hash output also included 84d3826b2c49e60fe7cd33552cb69bde73f65530713b93a4dd3140dd9a7ce30f.fix/responses-private-references had conflicts and suggested jj bookmark list for details or jj bookmark set <name> -r <rev> to resolve them; no resolution was performed in this segment.vitest run -- --printConsoleTrace chain with shell PID 614547, Vitest PID 614548, and worker PIDs 614588, 614591, and 614593, running for about 01:15β01:16 under /home/byk/Code/opencode-lore-codex-reasoning, not the reference-v2 tree named in the process-search regex.24.16.0 and Vitest 4.1.8; the inspection command searched for /home/byk/Code/opencode-lore-responses-reference-v2|vitest|oxlint|oxfmt|tsc|packages/gateway/script/bundle.