Dashboard › opencode › Distillation
cb125c79-8336-47b0-80f6-4c0ee615eb9b["lore_tm_v1_x2y_wUiH2Eu5edhxGmQdGLlGDwYi0knlXzaoMMDIrRc"]
compaction in /home/byk/Code/opencode-lore/packages/gateway/src/compaction.ts, at lines 4, 10, 20, 25, 33, 35, 76, 93, 107, 114, 138, 164, 165, 265, 266, 271, 287, 303, 319, 346, 479, 483, 492, and 578./home/byk/Code/opencode-lore/packages/gateway/src/compaction.ts: system-prompt and last-user-message indicators (lines 20, 25); template-section-header detection (lines 33–35); usage scaling to prevent premature client auto-compaction (lines 76, 93); Claude Code’s reserved summary-output tokens and cost-tracker counterfactual estimates (lines 107, 114, 138); Claude Code metering against a 200K window (lines 164–165); structural session-signal detection independent of prompt format (lines 265–271); request detection and reason reporting (lines 287, 303, 319, 346); and deterministic offline compaction assembly from Lore memory into a GatewayResponse (lines 479, 483, 492, 578).