From 6aac7bb8e3fa1831ea86f8472adfbcb01340e475 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Wed, 17 Dec 2025 23:17:27 +0800 Subject: [PATCH] refactor: Replace exact deduplication with intelligent intent-based merging in lite-plan MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Simplify clarification question deduplication to use Claude's native intelligence for identifying similar intents and merging questions across exploration angles. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .claude/commands/workflow/lite-plan.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.claude/commands/workflow/lite-plan.md b/.claude/commands/workflow/lite-plan.md index d575869d..f346446e 100644 --- a/.claude/commands/workflow/lite-plan.md +++ b/.claude/commands/workflow/lite-plan.md @@ -309,14 +309,11 @@ explorations.forEach(exp => { } }) -// Deduplicate exact same questions only -const seen = new Set() -const dedupedClarifications = allClarifications.filter(c => { - const key = c.question.toLowerCase() - if (seen.has(key)) return false - seen.add(key) - return true -}) +// Intelligent deduplication: analyze allClarifications by intent +// - Identify questions with similar intent across different angles +// - Merge similar questions: combine options, consolidate context +// - Produce dedupedClarifications with unique intents only +const dedupedClarifications = intelligentMerge(allClarifications) // Multi-round clarification: batch questions (max 4 per round) if (dedupedClarifications.length > 0) {