/** * CompactCommand - Trigger context compaction * DD ยง17. */ export function compactCommand(target_tokens?: number): void { const tokens = target_tokens || 80000 console.log(`Context compaction requested: target ~${tokens} tokens`) console.log('Compaction will:') console.log(' 1. Summarize conversation history') console.log(' 2. Keep recent messages intact') console.log(' 3. Insert compaction marker') console.log(`Target: ${tokens} tokens (handled by Compactor worker automatically)`) }